MSPM0G1X0X_G3X0X TI-Driver Library  1.20.01.06
Data Fields
I2CMSPM0_I2CPinCfg Struct Reference

I2C Pin Configuration. More...

#include <I2CMSPM0.h>

Data Fields

uint8_t pinSDA
 
uint8_t pinSCL
 

Detailed Description

I2C Pin Configuration.

Pin configuration that holds non-default pins. The default pin configuration is typically defined in I2CMSPM0_HWAttrs placed in the board file. The pin configuration structure is used by setting the custom void pointer in the I2C_Params to point to this struct. If the custom void pointer is NULL, the I2CMSPM0_HWAttrs pin mapping will be used.

I2C_Handle handle;
I2C_Params i2cParams;
I2C_Params_init(&i2cParams); // sets custom to NULL.
pinCfg.pinSDA = CONFIG_I2C0_SDA1;
pinCfg.pinSCL = CONFIG_I2C0_SCL1;
i2cParams.custom = &pinCfg; //set to NULL if values in I2CMSPM0_HWAttrs to be used.
handle = I2C_open(CONFIG_I2C, &i2cParams);

Field Documentation

§ pinSDA

uint8_t I2CMSPM0_I2CPinCfg::pinSDA

SDA Pincm value

§ pinSCL

uint8_t I2CMSPM0_I2CPinCfg::pinSCL

SCL Pincm value


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