Data Fields
I2CCC26XX_HWAttrsV1 Struct Reference

I2CCC26XX Hardware attributes. More...

#include <I2CCC26XX.h>

Data Fields

I2C_BASE_HWATTRS unsigned long powerMngrId
 
uint32_t swiPriority
 
uint8_t sdaPin
 
uint8_t sdaPinMux
 
uint8_t sclPin
 
uint8_t sclPinMux
 

Detailed Description

I2CCC26XX Hardware attributes.

The baseAddr and intNum fields define the base address and the interrupt number of the I2C peripheral. These values are passed to driverlib APIs and therefore must be populated by driverlib macro definitions. These macros are found in the header files:

The powerMngrId is the Power driver resource ID for the I2C peripheral. These macros are defined in PowerCC26XX.h

intPriority is the I2C peripheral's interrupt priority, as defined by the TI-RTOS kernel. This value is passed unmodified to Hwi_create().

swiPriority is the priority of a TI-RTOS kernel Swi that the I2C driver creates to finalize I2C transfers. See the documentation for the ti.sysbios.knl.Swi module for a description of Swi priorities.

sdaPin and sclPin define the SDA and SCL pin mapping, respectively. These are typically defined with a macro in a header file, which maps to an IOID. For example, CC1350_LAUNCHXL.h defines BOARD_I2C0_SDA0 to be IOID_5.

sdaPinMux and sclPinMux are values drawn from driverlib's IOC module, and map directly to a pin hardware code that selects I2C mode.

A sample structure is shown below:

const I2CCC26XX_HWAttrsV1 i2cCC26xxHWAttrs[CC1350_LAUNCHXL_I2CCOUNT] = {
{
.baseAddr = I2C0_BASE,
.intNum = INT_I2C_IRQ,
.intPriority = ~0,
.swiPriority = 0,
.sdaPin = CONFIG_I2C0_SDA0,
.sdaPinMux = IOC_PORT_MCU_I2C_MSSDA,
.sclPin = CONFIG_I2C0_SCL0,
.sclPinMux = IOC_PORT_MCU_I2C_MSSCL,
},
};

Field Documentation

§ powerMngrId

I2C_BASE_HWATTRS unsigned long I2CCC26XX_HWAttrsV1::powerMngrId

§ swiPriority

uint32_t I2CCC26XX_HWAttrsV1::swiPriority

§ sdaPin

uint8_t I2CCC26XX_HWAttrsV1::sdaPin

§ sdaPinMux

uint8_t I2CCC26XX_HWAttrsV1::sdaPinMux

§ sclPin

uint8_t I2CCC26XX_HWAttrsV1::sclPin

§ sclPinMux

uint8_t I2CCC26XX_HWAttrsV1::sclPinMux

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