|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
35 #include "pprzlink/messages.h"
46 #define GP2Y_I2C_DEV i2c0
49 #define GP2Y_SLAVE_ADDR 0xED
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
float dust_gp2y_density_f
void dust_gp2y_periodic(void)
void dust_gp2y_init(void)
uint16_t dust_gp2y_density
@ I2CTransSuccess
transaction successfully finished by I2C driver
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
Architecture independent timing functions.
enum I2CTransactionStatus status
Transaction status.
struct i2c_transaction gp2y_trans
I2C transaction structure.
Common code for AP and FBW telemetry.
@ I2CTransDone
transaction set to done by user level
volatile uint32_t nb_sec
full seconds since startup
void dust_gp2y_event(void)
bool i2c_receive(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint16_t len)
Submit a read only transaction.