Interface: tos.platform.msp430.HPLUSARTControl
interface HPLUSARTControlCommands
command void disableSPI()
command void disableUART()
command void enableI2C()
command void enableSPI()
command void enableUART()
command void enableUARTRx()
command void enableUARTTx()
command msp430_usartmode_t getMode()
command bool isI2C()
command result_t isRxIntrPending()
command bool isSPI()
command result_t isTxEmpty()
command result_t isTxIntrPending()
command bool isUART()
command bool isUARTrx()
command bool isUARTtx()
command uint8_t rx()
command void setMode(msp430_usartmode_t mode)
command void setModeI2C()
command void setModeSPI()
command void setModeUART()
command void setModeUART_RX()
command void setModeUART_TX()
command result_t tx(uint8_t data)
Commands - Details
disableI2C
command void disableI2C()
disableRxIntr
command result_t disableRxIntr()
disableSPI
command void disableSPI()
disableTxIntr
command result_t disableTxIntr()
disableUART
command void disableUART()
disableUARTRx
command void disableUARTRx()
disableUARTTx
command void disableUARTTx()
enableI2C
command void enableI2C()
enableRxIntr
command result_t enableRxIntr()
enableSPI
command void enableSPI()
enableTxIntr
command result_t enableTxIntr()
enableUART
command void enableUART()
enableUARTRx
command void enableUARTRx()
enableUARTTx
command void enableUARTTx()
getMode
command msp430_usartmode_t getMode()
isI2C
command bool isI2C()
isRxIntrPending
command result_t isRxIntrPending()
isSPI
command bool isSPI()
isTxEmpty
command result_t isTxEmpty()
isTxIntrPending
command result_t isTxIntrPending()
isUART
command bool isUART()
isUARTrx
command bool isUARTrx()
isUARTtx
command bool isUARTtx()
rx
command uint8_t rx()
- Returns:
-
SUCCESS always.
setClockRate
command void setClockRate(uint16_t baudrate, uint8_t mctl)
setClockSource
command void setClockSource(uint8_t source)
setMode
command void setMode(msp430_usartmode_t mode)
- Returns:
-
SUCCESS if the mode was changed
setModeI2C
command void setModeI2C()
setModeSPI
command void setModeSPI()
setModeUART
command void setModeUART()
setModeUART_RX
command void setModeUART_RX()
setModeUART_TX
command void setModeUART_TX()
tx
command result_t tx(uint8_t data)