I2CCC32XX Hardware attributes. More...
#include <I2CCC32XX.h>
Data Fields | |
unsigned int | baseAddr |
unsigned int | intNum |
unsigned int | intPriority |
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:
unsigned int I2CCC32XX_HWAttrsV1::baseAddr |
I2C Peripheral's base address
unsigned int I2CCC32XX_HWAttrsV1::intNum |
I2C Peripheral's interrupt vector
unsigned int I2CCC32XX_HWAttrsV1::intPriority |
I2C Peripheral's interrupt priority
uint16_t I2CCC32XX_HWAttrsV1::clkPin |
I2C clock pin configuration
uint16_t I2CCC32XX_HWAttrsV1::dataPin |
I2C data pin configuration