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;
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
bool_t 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.
transaction set to done by user level
bool_t i2c_transmit(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len)
Submit a write only transaction.
I2C transaction structure.
enum I2CTransactionStatus status
Transaction status.
#define DefaultChannel
SITL.
struct i2c_transaction tmp_trans
void tmp102_periodic(void)
Common code for AP and FBW telemetry.
arch independent LED (Light Emitting Diodes) API
#define TMP102_SLAVE_ADDR
Architecture independent I2C (Inter-Integrated Circuit Bus) API.