Interface: moteiv.tos.platform.msp430.dma.HPLDMAChannelControl

interface HPLDMAChannelControl

Interface for controlling each DMA channel on the MSP430 microcontroller. Users should access the DMA through the HAL interfaces provided by MSP430DMAC.

Author:
Ben Greenstein <ben@cs.ucla.edu>

Commands
command bool aborted()
command void clearTrigger()
command void disableDMA()
command void disableInterrupt()
command void enableDMA()
command void enableInterrupt()
command void *getDestination()
command int getSize()
command void *getSource()
command dma_channel_state_t getState()
command dma_channel_trigger_t getTrigger()
command bool interruptPending()
command void reset()
command void setBlockMode()
command void setBurstMode()
command void setByteToByte()
command void setByteToWord()
command void setDst(void *daddr)
command void setDstDecrement()
command void setDstIncrement()
command void setDstNoIncrement()
command void setEdgeSensitive()
command void setLevelSensitive()
command void setRepeatedBlockMode()
command void setRepeatedBurstMode()
command void setRepeatedSingleMode()
command void setSingleMode()
command void setSize(uint16_t sz)
command void setSrc(void *saddr)
command void setSrcDecrement()
command void setSrcIncrement()
command void setSrcNoIncrement()
command void setState(dma_channel_state_t s, dma_channel_trigger_t t, void *src, void *dest, int size)
command void setStateRaw(uint16_t state, uint16_t trigger, void *src, void *dest, int size)
command result_t setTrigger(dma_trigger_t trigger)
command void setWordToByte()
command void setWordToWord()
command void triggerDMA()

Events
event void transferDone(result_t success)

Commands - Details

aborted

command bool aborted()

clearTrigger

command void clearTrigger()

disableDMA

command void disableDMA()

disableInterrupt

command void disableInterrupt()

enableDMA

command void enableDMA()

enableInterrupt

command void enableInterrupt()

getDestination

command void *getDestination()

getSize

command int getSize()

getSource

command void *getSource()

getState

command dma_channel_state_t getState()

getTrigger

command dma_channel_trigger_t getTrigger()

interruptPending

command bool interruptPending()

reset

command void reset()

setBlockMode

command void setBlockMode()

setBurstMode

command void setBurstMode()

setByteToByte

command void setByteToByte()

setByteToWord

command void setByteToWord()

setDst

command void setDst(void *daddr)

setDstDecrement

command void setDstDecrement()

setDstIncrement

command void setDstIncrement()

setDstNoIncrement

command void setDstNoIncrement()

setEdgeSensitive

command void setEdgeSensitive()

setLevelSensitive

command void setLevelSensitive()

setRepeatedBlockMode

command void setRepeatedBlockMode()

setRepeatedBurstMode

command void setRepeatedBurstMode()

setRepeatedSingleMode

command void setRepeatedSingleMode()

setSingleMode

command void setSingleMode()

setSize

command void setSize(uint16_t sz)

setSrc

command void setSrc(void *saddr)

setSrcDecrement

command void setSrcDecrement()

setSrcIncrement

command void setSrcIncrement()

setSrcNoIncrement

command void setSrcNoIncrement()

setState

command void setState(dma_channel_state_t s, dma_channel_trigger_t t, void *src, void *dest, int size)

setStateRaw

command void setStateRaw(uint16_t state, uint16_t trigger, void *src, void *dest, int size)

setTrigger

command result_t setTrigger(dma_trigger_t trigger)

setWordToByte

command void setWordToByte()

setWordToWord

command void setWordToWord()

triggerDMA

command void triggerDMA()

Events - Details

transferDone

event void transferDone(result_t success)