36 #include "pprzlink/messages.h"
41 #define HTM_I2C_DEV i2c0
44 #define HTM_SLAVE_ADDR 0x28
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
transaction successfully finished by I2C driver
void humid_htm_init(void)
void humid_htm_event(void)
void humid_htm_read(void)
transaction set to done by user level
Architecture independent timing functions.
void humid_htm_start(void)
I2C transaction structure.
enum I2CTransactionStatus status
Transaction status.
bool i2c_transmit(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len)
Submit a write only transaction.
volatile uint32_t nb_sec
full seconds since startup
bool i2c_receive(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint16_t len)
Submit a read only transaction.
Common code for AP and FBW telemetry.
struct i2c_transaction htm_trans
Architecture independent I2C (Inter-Integrated Circuit Bus) API.