|
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"
44 #define TMP_I2C_DEV i2c0
53 #ifndef TMP102_SLAVE_ADDR
54 #define TMP102_SLAVE_ADDR 0x90
58 #define TMP102_CONF1 0x60
60 #define TMP102_CONF2 0xF0
90 tmp_temperature >>= 3;
91 if (tmp_temperature & 0x1000) {
92 tmp_temperature |= 0xE000;
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
@ I2CTransSuccess
transaction successfully finished by I2C driver
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
bool i2c_transmit(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len)
Submit a write only transaction.
void tmp102_periodic(void)
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.
arch independent LED (Light Emitting Diodes) API
I2C transaction structure.
Common code for AP and FBW telemetry.
struct i2c_transaction tmp_trans
#define TMP102_SLAVE_ADDR
@ I2CTransDone
transaction set to done by user level