81 (data & 0xFF000000) >> 24,
82 (data & 0x00FF0000) >> 16,
83 (data & 0x0000FF00) >> 8,
98 *data = (data_u8[0] << 8) | data_u8[1];
106 *data = (data_u8[0] << 24) |
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
bool i2c_blocking_transceive(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len_w, uint16_t len_r)
Submit a write/read transaction and wait for it to complete.
static const struct usb_device_descriptor dev
uint8_t slave_addr
Slave address.
#define I2C_BUF_LEN
I2C buffer length.
bool i2c_blocking_transmit(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len)
Submit a write only transaction and wait for it to complete.