![]() |
![]() |
|
MSPM0L111X TI-Driver Library
2.05.01.00
|
I2C Hardware attributes. More...
#include <I2CMSPM0.h>
Data Fields | |
| I2C_BASE_HWATTRS uint8_t | sdaPincm |
| uint8_t | sdaPinIndex |
| uint32_t | sdaPinMux |
| uint8_t | sclPincm |
| uint8_t | sclPinIndex |
| uint32_t | sclPinMux |
| DL_I2C_CLOCK | clockSource |
| DL_I2C_CLOCK_DIVIDE | clockDivider |
| DL_I2C_RX_FIFO_LEVEL | rxIntFifoThr |
| DL_I2C_TX_FIFO_LEVEL | txIntFifoThr |
| bool | isClockStretchingEnabled |
| uint16_t | i2cClk |
I2C Hardware attributes.
The i2c and intNum fields define the base address and the interrupt number of the I2C peripheral. These values are passed to driverlib APIs and therefore must be populated by driverlib macro definitions.
The powerMngrId is the Power driver resource ID for the I2C peripheral. These macros are defined in PowerMSP.h
intPriority is the I2C peripheral's interrupt priority, This value is passed unmodified to Hwi_create().
sdaPinMux and sclPinMux are values drawn from the GPIO driver. They indicate the function for that specific IO pin that select I2C mode.
A sample structure is shown below:
| I2C_BASE_HWATTRS uint8_t I2CMSPM0_HWAttrs::sdaPincm |
< I2C base hardware attributes SDA Pincm value
| uint8_t I2CMSPM0_HWAttrs::sdaPinIndex |
SDA pin index
| uint32_t I2CMSPM0_HWAttrs::sdaPinMux |
SDA pin function
| uint8_t I2CMSPM0_HWAttrs::sclPincm |
SCL Pincm value
| uint8_t I2CMSPM0_HWAttrs::sclPinIndex |
SCL pin index
| uint32_t I2CMSPM0_HWAttrs::sclPinMux |
SCL pin function
| DL_I2C_CLOCK I2CMSPM0_HWAttrs::clockSource |
I2C clock source
| DL_I2C_CLOCK_DIVIDE I2CMSPM0_HWAttrs::clockDivider |
I2C clock divider to get the required bps
| DL_I2C_RX_FIFO_LEVEL I2CMSPM0_HWAttrs::rxIntFifoThr |
I2C receive FIFO interrupt threshold
| DL_I2C_TX_FIFO_LEVEL I2CMSPM0_HWAttrs::txIntFifoThr |
I2C transmit FIFO interrupt threshold
| bool I2CMSPM0_HWAttrs::isClockStretchingEnabled |
Clock stretching enable/disable flag
| uint16_t I2CMSPM0_HWAttrs::i2cClk |
The clock must be in MHz