Interface: tos.platform.msp430.MSP430I2C

interface MSP430I2C

Author:
Joe Polastre Revision: $Revision: 1.1 $

Commands
command result_t disable() Disable the I2C module (clear the I2CEN bit)
command void disableArbitrationLost()
command void disableGeneralCall()
command void disableNoAck()
command void disableOwnAddr()
command void disableReadyRegAccess()
command void disableReadyRxData()
command void disableReadyTxData()
command void disableStartRecv()
command result_t enable() Enable the I2C module (set the I2CEN bit)
command void enableArbitrationLost()
command void enableGeneralCall()
command void enableNoAck()
command void enableOwnAddr()
command void enableReadyRegAccess()
command void enableReadyRxData()
command void enableReadyTxData()
command void enableStartRecv()
command uint8_t getByteCount() Number of bytes to transmit or receive remaining in master mode.
command uint16_t getData() Get data from the I2C data register when in receive mode.
command result_t isArbitrationLostPending()
command result_t isGeneralCallPending()
command result_t isNoAckPending()
command result_t isOwnAddrPending()
command result_t isReadyRegAccessPending()
command result_t isReadyRxDataPending()
command result_t isReadyTxDataPending()
command result_t isStartRecvPending()
command result_t setAddr10bit() Use 10-bit addressing mode
command result_t setAddr7bit() Use 7-bit addressing mode
command result_t setByteCount(uint8_t value) Set the number of bytes to transmit or receive in master mode.
command result_t setData(uint16_t value) Set the data to transmit in the I2C data register.
command result_t setModeMaster() Set Master I2C mode
command result_t setModeSlave() Set Slave I2C mode
command result_t setOwnAddr(uint16_t addr) Set the MSP430's own address
command result_t setRx() Only valid in Master mode.
command result_t setSlaveAddr(uint16_t addr) Set the slave address of the device for the next i2c bus transaction
command result_t setTx() Only valid in Master mode.

Commands - Details

disable

command result_t disable()

Disable the I2C module (clear the I2CEN bit)

disableArbitrationLost

command void disableArbitrationLost()

disableGeneralCall

command void disableGeneralCall()

disableNoAck

command void disableNoAck()

disableOwnAddr

command void disableOwnAddr()

disableReadyRegAccess

command void disableReadyRegAccess()

disableReadyRxData

command void disableReadyRxData()

disableReadyTxData

command void disableReadyTxData()

disableStartRecv

command void disableStartRecv()

enable

command result_t enable()

Enable the I2C module (set the I2CEN bit)

enableArbitrationLost

command void enableArbitrationLost()

enableGeneralCall

command void enableGeneralCall()

enableNoAck

command void enableNoAck()

enableOwnAddr

command void enableOwnAddr()

enableReadyRegAccess

command void enableReadyRegAccess()

enableReadyRxData

command void enableReadyRxData()

enableReadyTxData

command void enableReadyTxData()

enableStartRecv

command void enableStartRecv()

getByteCount

command uint8_t getByteCount()

Number of bytes to transmit or receive remaining in master mode.

getData

command uint16_t getData()

Get data from the I2C data register when in receive mode.

isArbitrationLostPending

command result_t isArbitrationLostPending()

isGeneralCallPending

command result_t isGeneralCallPending()

isNoAckPending

command result_t isNoAckPending()

isOwnAddrPending

command result_t isOwnAddrPending()

isReadyRegAccessPending

command result_t isReadyRegAccessPending()

isReadyRxDataPending

command result_t isReadyRxDataPending()

isReadyTxDataPending

command result_t isReadyTxDataPending()

isStartRecvPending

command result_t isStartRecvPending()

setAddr10bit

command result_t setAddr10bit()

Use 10-bit addressing mode

setAddr7bit

command result_t setAddr7bit()

Use 7-bit addressing mode

setByteCount

command result_t setByteCount(uint8_t value)

Set the number of bytes to transmit or receive in master mode.

setData

command result_t setData(uint16_t value)

Set the data to transmit in the I2C data register.

setModeMaster

command result_t setModeMaster()

Set Master I2C mode

setModeSlave

command result_t setModeSlave()

Set Slave I2C mode

setOwnAddr

command result_t setOwnAddr(uint16_t addr)

Set the MSP430's own address

setRx

command result_t setRx()

Only valid in Master mode. Set the next i2c bus transaction to receive from a slave device.

setSlaveAddr

command result_t setSlaveAddr(uint16_t addr)

Set the slave address of the device for the next i2c bus transaction

setTx

command result_t setTx()

Only valid in Master mode. Set the next i2c bus transaction to transmit to a slave device.