289 #ifndef ti_drivers_i2c_I2CCC26XX__include
290 #define ti_drivers_i2c_I2CCC26XX__include
303 #define ti_sysbios_family_arm_m3_Hwi__nolocalnames
305 #include <ti/sysbios/family/arm/m3/Hwi.h>
306 #include <ti/sysbios/knl/Swi.h>
307 #include <ti/sysbios/knl/Semaphore.h>
340 typedef unsigned long I2CDataType;
379 typedef enum I2CCC26XX_Mode {
380 I2CCC26XX_IDLE_MODE = 0,
381 I2CCC26XX_WRITE_MODE,
383 I2CCC26XX_BUSBUSY_MODE,
384 I2CCC26XX_ERROR = 0xFF
467 typedef struct I2CCC26XX_Object {
471 volatile I2CCC26XX_Mode mode;
475 ti_sysbios_family_arm_m3_Hwi_Struct hwi;
477 Semaphore_Struct mutex;
478 Semaphore_Struct transferComplete;
486 uint8_t *writeBufIdx;
487 unsigned int writeCountIdx;
489 unsigned int readCountIdx;
503 #undef ti_sysbios_family_arm_m3_Hwi__nolocalnames
uint8_t pinSDA
Definition: I2CCC26XX.h:368
int intNum
Definition: I2CCC26XX.h:435
I2C transaction.
Definition: I2C.h:465
struct I2CCC26XX_I2CPinCfg I2CCC26XX_I2CPinCfg
I2CCC26XX Pin Configuration.
struct I2CCC26XX_HWAttrsV1 I2CCC26XX_HWAttrsV1
I2CCC26XX Hardware attributes.
I2CCC26XX Pin Configuration.
Definition: I2CCC26XX.h:367
Power notify object structure.
Definition: Power.h:113
I2CCC26XX Hardware attributes.
Definition: I2CCC26XX.h:429
uint8_t sclPin
Definition: I2CCC26XX.h:459
enum I2C_TransferMode_ I2C_TransferMode
I2C transfer mode.
unsigned long powerMngrId
Definition: I2CCC26XX.h:433
I2CBaseAddrType baseAddr
Definition: I2CCC26XX.h:431
Device-specific pin & GPIO driver for CC26xx family [def].
The definition of an I2C function table that contains the required set of functions to control a spec...
Definition: I2C.h:594
const I2C_FxnTable I2CCC26XX_fxnTable
underlying data structure for type PIN_State
Definition: PIN.h:687
uint8_t pinSCL
Definition: I2CCC26XX.h:369
void(* I2C_CallbackFxn)(I2C_Handle handle, I2C_Transaction *transaction, bool transferStatus)
I2C callback function.
Definition: I2C.h:507
uint8_t sdaPin
Definition: I2CCC26XX.h:457
uint32_t swiPriority
I2C Swi priority. The higher the number, the higher the priority. The minimum is 0 and the maximum is...
Definition: I2CCC26XX.h:455
unsigned long I2CBaseAddrType
Definition: I2CCC26XX.h:338
uint8_t intPriority
I2C Peripheral's interrupt priority.
Definition: I2CCC26XX.h:449