Data Fields
I2CMSP432_HWAttrsV1 Struct Reference

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
 

Detailed Description

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:

const I2CMSP432_HWAttrs i2cMSP432HWAttrsV1[] = {
{
.baseAddr = EUSCI_B0_BASE,
.intNum = INT_EUSCIB0,
.intPriority = (~0),
.clockSource = EUSCI_B_I2C_CLOCKSOURCE_SMCLK,
}
};

Field Documentation

§ baseAddr

uint32_t I2CMSP432_HWAttrsV1::baseAddr

EUSCI_B_I2C peripheral's base address

§ intNum

uint32_t I2CMSP432_HWAttrsV1::intNum

EUSCI_B_I2C peripheral's interrupt number

§ intPriority

uint32_t I2CMSP432_HWAttrsV1::intPriority

EUSCI_B_I2C peripheral's interrupt priority

§ clockSource

uint8_t I2CMSP432_HWAttrsV1::clockSource

EUSCI_B_I2C clock source

§ clkPin

uint16_t I2CMSP432_HWAttrsV1::clkPin

EUSCI_B_I2C clock pin configuration

§ dataPin

uint16_t I2CMSP432_HWAttrsV1::dataPin

EUSCI_B_I2C data pin configuration


The documentation for this struct was generated from the following file:
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale