![]() |
![]() |
I2CTargetLPF3 Hardware attributes. More...
#include <I2CTargetLPF3.h>
Data Fields | |
I2CTARGET_BASE_HWATTRS PowerLPF3_Resource | powerMngrId |
uint8_t | sdaPin |
uint8_t | sdaPinMux |
uint8_t | sclPin |
uint8_t | sclPinMux |
I2CTargetLPF3 Hardware attributes.
The baseAddr 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. These macros are found in the header files:
The powerMngrId is the Power driver resource ID for the I2C peripheral. These macros are defined in the device specific Power include file.
intPriority is the I2C peripheral's interrupt priority. This value is passed unmodified to HwiP_construct().
sdaPin and sclPin define the SDA and SCL pin mapping, respectively. These are typically defined with a macro in a header file, which maps to an IOID. For example, when using SysConfig, ti_drivers_config.h defines CONFIG_GPIO_I2C_0_SDA to be DIO 0.
sdaPinMux and sclPinMux are values drawn from the GPIO driver. They indicate the function for that specific DIO pin that select I2C mode.
A sample structure is shown below:
I2CTARGET_BASE_HWATTRS PowerLPF3_Resource I2CTargetLPF3_HWAttrs::powerMngrId |
uint8_t I2CTargetLPF3_HWAttrs::sdaPin |
uint8_t I2CTargetLPF3_HWAttrs::sdaPinMux |
uint8_t I2CTargetLPF3_HWAttrs::sclPin |
uint8_t I2CTargetLPF3_HWAttrs::sclPinMux |