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) |
|
◆ I2C_BUFFER_SIZE
#define I2C_BUFFER_SIZE 16 |
◆ I2CDevice
◆ i2cJob_t
◆ anonymous enum
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.
◆ I2CDevice
Enumerator |
---|
I2CDEV_1 | |
I2CDEV_2 | |
I2CDEV_MAX | |
Definition at line 24 of file drv_i2c.h.
◆ i2cJobType_t
◆ i2c_queue_job()
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 |
|
) |
| |
◆ i2cGetErrorCounter()
uint16_t i2cGetErrorCounter |
( |
void |
| ) |
|
◆ i2cInit()
◆ i2cRead()
bool i2cRead |
( |
uint8_t |
addr_, |
|
|
uint8_t |
reg, |
|
|
uint8_t |
len, |
|
|
uint8_t * |
buf |
|
) |
| |
◆ i2cWrite()
bool i2cWrite |
( |
uint8_t |
addr_, |
|
|
uint8_t |
reg, |
|
|
uint8_t |
data |
|
) |
| |
◆ i2cWriteBuffer()
bool i2cWriteBuffer |
( |
uint8_t |
addr_, |
|
|
uint8_t |
reg_, |
|
|
uint8_t |
len_, |
|
|
uint8_t * |
data |
|
) |
| |