|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
110 #define Int16FromBuf(_buf,_idx) ((int16_t)(_buf[_idx] | (_buf[_idx+1] << 8)))
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
#define IST8310_REG_CNTL4
void ist8310_configure(struct IST8310 *ist)
bool initialized
config done flag
enum IST8310ConfStatus init_status
init status
@ I2CTransFailed
transaction failed
void ist8310_init(struct IST8310 *ist, struct i2c_periph *i2c_p, uint8_t addr)
Initialize IST8310 struct.
Default IST8310 structure.
#define IST8310_CNTL4_SRPD
@ I2CTransSuccess
transaction successfully finished by I2C driver
#define IST8310_CNTL3_SAMPAVG_16
bool i2c_transmit(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len)
Submit a write only transaction.
#define Int16FromBuf(_buf, _idx)
void ist8310_event(struct IST8310 *ist)
#define IST8310_REG_CNTL1
bool i2c_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.
enum I2CTransactionStatus status
Transaction status.
#define IST8310_REG_DATA_XL
volatile bool data_available
data ready flag
uint8_t slave_addr
Slave address.
struct i2c_transaction i2c_trans
i2c transaction used for communication with the ist8310
void ist8310_read(struct IST8310 *ist)
struct i2c_periph * i2c_p
peripheral used for communcation
@ I2CTransDone
transaction set to done by user level
#define IST8310_REG_CNTL3
enum IST8310Status status
main status
#define IST8310_CNTL1_ODR_SINGLE