volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
uint16_t len_r
Number of bytes to read/receive.
enum I2CTransactionType type
Transaction type.
enum I2CTransactionStatus status
Transaction status.
uint8_t slave_addr
Slave address.
uint8_t len_w
Number of bytes to write/transmit.
static bool i2c_submit(struct i2c_periph *p, struct i2c_transaction *t)
Submit a I2C transaction.
static bool i2c_idle(struct i2c_periph *p)
Check if I2C bus is idle.
static void i2c_setbitrate(struct i2c_periph *p, int bitrate)
Set I2C bitrate.
@ I2CTransSuccess
transaction successfully finished by I2C driver
@ I2CTransFailed
transaction failed
@ I2CTransRx
receive only transaction
@ I2CTransTx
transmit only transaction
@ I2CTransTxRx
transmit and receive transaction
I2C transaction structure.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
void init_i2c_abuse_test(void)
void periodic_50Hz_i2c_abuse_test(void)
volatile uint32_t i2c_abuse_test_bitrate
struct i2c_transaction i2c_test1
void event_i2c_abuse_test(void)
static void i2c_abuse_send_transaction(uint8_t _init)
struct i2c_transaction i2c_test2
volatile uint8_t i2c_abuse_test_counter
arch independent LED (Light Emitting Diodes) API
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.