Go to the source code of this file.
|
void | i2c_queue_job (i2cJobType_t type, uint8_t addr_, uint8_t reg_, uint8_t *data, uint8_t length, volatile uint8_t *status_, void(*CB)(uint8_t)) |
|
uint16_t | i2cGetErrorCounter (void) |
|
void | i2cInit (I2CDevice index) |
|
bool | i2cRead (uint8_t addr_, uint8_t reg, uint8_t len, uint8_t *buf) |
|
bool | i2cWrite (uint8_t addr_, uint8_t reg, uint8_t data) |
|
bool | i2cWriteBuffer (uint8_t addr_, uint8_t reg_, uint8_t len_, uint8_t *data) |
|
#define I2C_BUFFER_SIZE 16 |
Enumerator |
---|
I2C_JOB_DEFAULT |
|
I2C_JOB_QUEUED |
|
I2C_JOB_BUSY |
|
I2C_JOB_COMPLETE |
|
I2C_JOB_ERROR |
|
Definition at line 35 of file drv_i2c.h.
Enumerator |
---|
I2CDEV_1 |
|
I2CDEV_2 |
|
I2CDEV_MAX |
|
Definition at line 24 of file drv_i2c.h.
void i2c_queue_job |
( |
i2cJobType_t |
type, |
|
|
uint8_t |
addr_, |
|
|
uint8_t |
reg_, |
|
|
uint8_t * |
data, |
|
|
uint8_t |
length, |
|
|
volatile uint8_t * |
status_, |
|
|
void(*)(uint8_t) |
CB |
|
) |
| |
uint16_t i2cGetErrorCounter |
( |
void |
| ) |
|
bool i2cRead |
( |
uint8_t |
addr_, |
|
|
uint8_t |
reg, |
|
|
uint8_t |
len, |
|
|
uint8_t * |
buf |
|
) |
| |
bool i2cWrite |
( |
uint8_t |
addr_, |
|
|
uint8_t |
reg, |
|
|
uint8_t |
data |
|
) |
| |
bool i2cWriteBuffer |
( |
uint8_t |
addr_, |
|
|
uint8_t |
reg_, |
|
|
uint8_t |
len_, |
|
|
uint8_t * |
data |
|
) |
| |