52 #ifndef ti_drivers_i2c_I2CCC32XX__include 53 #define ti_drivers_i2c_I2CCC32XX__include 63 #include <ti/drivers/dpl/HwiP.h> 64 #include <ti/drivers/dpl/SemaphoreP.h> 79 #define I2CCC32XX_PIN_01_I2C_SCL 0x100 80 #define I2CCC32XX_PIN_02_I2C_SDA 0x101 81 #define I2CCC32XX_PIN_03_I2C_SCL 0x502 82 #define I2CCC32XX_PIN_04_I2C_SDA 0x503 83 #define I2CCC32XX_PIN_05_I2C_SCL 0x504 84 #define I2CCC32XX_PIN_06_I2C_SDA 0x505 85 #define I2CCC32XX_PIN_16_I2C_SCL 0x90F 86 #define I2CCC32XX_PIN_17_I2C_SDA 0x910 125 typedef enum I2CCC32XX_Mode {
127 I2CCC32XX_IDLE_MODE = 0,
129 I2CCC32XX_WRITE_MODE,
133 I2CCC32XX_ERROR = 0xFF
191 typedef struct I2CCC32XX_Object {
192 SemaphoreP_Handle mutex;
193 SemaphoreP_Handle transferComplete;
195 HwiP_Handle hwiHandle;
200 volatile I2CCC32XX_Mode mode;
204 uint8_t *writeBufIdx;
205 size_t writeCountIdx;
unsigned int intNum
Definition: I2CCC32XX.h:177
I2C_BitRate
Bit rate for an I2C driver instance specified in the I2C_Params.
Definition: I2C.h:518
uint16_t dataPin
Definition: I2CCC32XX.h:183
unsigned int intPriority
Definition: I2CCC32XX.h:179
I2C_TransferMode
Return behavior of I2C_Transfer() specified in the I2C_Params.
Definition: I2C.h:457
struct I2CCC32XX_HWAttrsV1 I2CCC32XX_HWAttrsV1
I2CCC32XX Hardware attributes.
The definition of an I2C function table that contains the required set of functions to control a spec...
Definition: I2C.h:603
Power notify object structure.
Definition: Power.h:443
I2CCC32XX Hardware attributes.
Definition: I2CCC32XX.h:173
unsigned int baseAddr
Definition: I2CCC32XX.h:175
uint16_t clkPin
Definition: I2CCC32XX.h:181
const I2C_FxnTable I2CCC32XX_fxnTable
void(* I2C_CallbackFxn)(I2C_Handle handle, I2C_Transaction *transaction, bool transferStatus)
The definition of a callback function.
Definition: I2C.h:507
Defines a transaction to be used with I2C_transfer()
Definition: I2C.h:380
Inter-Integrated Circuit (I2C) Driver.