 |
Paparazzi UAS
v6.1.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
35 #include "pprzlink/messages.h"
43 #define LM75_I2C_DEV i2c0
48 #ifndef LM75_SLAVE_ADDR
49 #define LM75_SLAVE_ADDR 0x90
67 float flm75_temperature;
72 lm75_temperature >>= 7;
73 if (lm75_temperature & 0x0100) {
74 lm75_temperature |= 0xFE00;
77 flm75_temperature = ((
int16_t) lm75_temperature) / 2.;
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
struct i2c_transaction lm75_trans
@ I2CTransSuccess
transaction successfully finished by I2C driver
short int16_t
Typedef defining 16 bit short type.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
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.
uint8_t lm75_meas_started
@ I2CTransDone
transaction set to done by user level
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.