|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
112 #define Int16FromBuf(_buf,_idx) ((int16_t)((_buf[_idx+1]<<8) | _buf[_idx]))
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
#define Int16FromBuf(_buf, _idx)
uint16_t len_r
Number of bytes to read/receive.
static void lsm6_set_default_config(struct Lsm6Config *c)
void lsm6_i2c_init(struct Lsm6_I2c *lsm, struct i2c_periph *i2c_p, uint8_t addr)
@ I2CTransTx
transmit only transaction
#define LSM6_REG_CTRL1_XL
@ I2CTransFailed
transaction failed
#define LSM6_REG_ORIENT_CFG_G
#define LSM6_REG_OUTX_L_G
union Lsm6_I2c::@329 data_xl
uint8_t len_w
Number of bytes to write/transmit.
@ I2CTransSuccess
transaction successfully finished by I2C driver
void lsm6_i2c_start_configure(struct Lsm6_I2c *lsm)
bool initialized
config done flag
enum I2CTransactionStatus status
Transaction status.
@ I2CTransTxRx
transmit and receive transaction
uint8_t slave_addr
Slave address.
union Lsm6_I2c::@330 data_g
static void lsm6_i2c_tx_reg(struct Lsm6_I2c *lsm, uint8_t reg, uint8_t val)
static void lsm6_i2c_send_config(struct Lsm6_I2c *lsm)
volatile bool data_available
data ready flag
void lsm6_i2c_read(struct Lsm6_I2c *lsm)
@ I2CTransDone
transaction set to done by user level
static bool i2c_submit(struct i2c_periph *p, struct i2c_transaction *t)
Submit a I2C transaction.
struct i2c_transaction i2c_trans
void lsm6_i2c_event(struct Lsm6_I2c *lsm)
enum I2CTransactionType type
Transaction type.
struct i2c_periph * i2c_p
enum Lsm6ConfStatus init_status
init status