I2CMSP432 Hardware attributes. More...
#include <I2CMSP432.h>
Data Fields | |
uint32_t | baseAddr |
uint32_t | intNum |
uint32_t | intPriority |
uint8_t | clockSource |
uint16_t | clkPin |
uint16_t | dataPin |
I2CMSP432 Hardware attributes.
The baseAddr and intNum fields define the base address and interrupt number of the EUSCI peripheral. And the clockSource field selects the clock to be used by the EUSCI. These values are passed directly to driverlib APIs, and therefore must be populated by driverlib macro definitions, which are found in:
intPriority is the I2C 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 mapping to be used for the SCL and SDA pins, respectively. Macro values defined in this header file should be used for these fields.
An example structure is shown below:
uint32_t I2CMSP432_HWAttrsV1::baseAddr |
EUSCI_B_I2C peripheral's base address
uint32_t I2CMSP432_HWAttrsV1::intNum |
EUSCI_B_I2C peripheral's interrupt number
uint32_t I2CMSP432_HWAttrsV1::intPriority |
EUSCI_B_I2C peripheral's interrupt priority
uint8_t I2CMSP432_HWAttrsV1::clockSource |
EUSCI_B_I2C clock source
uint16_t I2CMSP432_HWAttrsV1::clkPin |
EUSCI_B_I2C clock pin configuration
uint16_t I2CMSP432_HWAttrsV1::dataPin |
EUSCI_B_I2C data pin configuration