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;
Structure used to perform I2C bus transfers.
Definition: I2C.h:431
unsigned int intNum
Definition: I2CCC32XX.h:177
uint16_t dataPin
Definition: I2CCC32XX.h:183
unsigned int intPriority
Definition: I2CCC32XX.h:179
Power notify object structure.
Definition: Power.h:121
enum I2C_TransferMode_ I2C_TransferMode
Specifies the behavior of I2C_Transfer().
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:589
enum I2C_BitRate_ I2C_BitRate
Specifies the standard I2C bus bit rate.
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)
I2C callback function prototype.
Definition: I2C.h:502
Inter-Integrated Circuit driver interface.