Data Fields
I2CCC32XX_HWAttrsV1 Struct Reference

I2CCC32XX Hardware attributes. More...

#include <I2CCC32XX.h>

Data Fields

unsigned int baseAddr
 
unsigned int intNum
 
unsigned int intPriority
 
uint16_t clkPin
 
uint16_t dataPin
 

Detailed Description

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:

const I2CCC32XX_HWAttrsV1 i2cCC32XXHWAttrs[] = {
{
.baseAddr = I2CA0_BASE,
.intNum = INT_I2CA0,
.intPriority = (~0),
}
};

Field Documentation

§ baseAddr

unsigned int I2CCC32XX_HWAttrsV1::baseAddr

I2C Peripheral's base address

§ intNum

unsigned int I2CCC32XX_HWAttrsV1::intNum

I2C Peripheral's interrupt vector

§ intPriority

unsigned int I2CCC32XX_HWAttrsV1::intPriority

I2C Peripheral's interrupt priority

§ clkPin

uint16_t I2CCC32XX_HWAttrsV1::clkPin

I2C clock pin configuration

§ dataPin

uint16_t I2CCC32XX_HWAttrsV1::dataPin

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