31 #include "pprzlink/messages.h"
35 #ifndef GEIGER_CNT_DEV
36 #define GEIGER_CNT_DEV i2c0
39 #define GEIGER_CNT_I2C_ADDR 0x76
Common code for AP and FBW telemetry.
void geiger_counter_periodic(void)
void geiger_counter_init(void)
struct i2c_transaction geiger_trans
void geiger_counter_event(void)
#define GEIGER_CNT_I2C_ADDR
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
enum I2CTransactionStatus status
Transaction status.
bool i2c_receive(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint16_t len)
Submit a read only transaction.
@ I2CTransSuccess
transaction successfully finished by I2C driver
@ I2CTransDone
transaction set to done by user level
I2C transaction structure.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.