I2CCC32XX Hardware attributes. More...
#include <I2CCC32XX.h>
Data Fields | |
I2C_BASE_HWATTRS uint32_t | sclTimeout |
uint16_t | clkPin |
uint16_t | dataPin |
I2CCC32XX Hardware attributes.
The baseAddr and intNum fields define the base address and interrupt number of the I2C peripheral. These values are used by driverlib APIs and therefore must be populated by driverlib macro definitions. These definitions are found in the header files:
intPriority is the I2C peripheral's interrupt priority. This driver uses the ti.dpl interface instead of making OS calls directly, and the corresponding HwiP port handles the interrupt priority in an OS-specific way. For example, in the case of the TI-RTOS kernel port, the intPriority is passed unmodified to Hwi_create() provided by the ti.sysbios.family.arm.m3.Hwi module; so the documentation for the ti.sysbios.family.arm.m3.Hwi module should be referenced for a description of usage of priority.
clkPin and dataPin define the pin multiplexing to be used for the SCL and SDA pins, respectively. Macro values defined in this header file should be used for these fields.
A sample structure is shown below:
I2C_BASE_HWATTRS uint32_t I2CCC32XX_HWAttrsV1::sclTimeout |
SCL low clock timeout specified in I2C clocks
uint16_t I2CCC32XX_HWAttrsV1::clkPin |
uint16_t I2CCC32XX_HWAttrsV1::dataPin |