Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
National LM75 I2C sensor interface. More...
#include "modules/meteo/temp_lm75.h"
#include "mcu_periph/i2c.h"
#include "led.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "modules/datalink/downlink.h"
Go to the source code of this file.
Macros | |
#define | LM75_I2C_DEV i2c0 |
#define | LM75_SLAVE_ADDR 0x90 |
Functions | |
void | lm75_init (void) |
void | lm75_periodic (void) |
void | lm75_event (void) |
Variables | |
uint8_t | lm75_meas_started |
struct i2c_transaction | lm75_trans |
National LM75 I2C sensor interface.
This reads the values for temperature from the National LM75 sensor through I2C.
Definition in file temp_lm75.c.
#define LM75_I2C_DEV i2c0 |
Definition at line 43 of file temp_lm75.c.
#define LM75_SLAVE_ADDR 0x90 |
Definition at line 49 of file temp_lm75.c.
void lm75_event | ( | void | ) |
Definition at line 63 of file temp_lm75.c.
References i2c_transaction::buf, DefaultChannel, DefaultDevice, I2CTransDone, I2CTransSuccess, lm75_trans, and i2c_transaction::status.
void lm75_init | ( | void | ) |
Definition at line 52 of file temp_lm75.c.
References I2CTransDone, lm75_trans, and i2c_transaction::status.
void lm75_periodic | ( | void | ) |
Definition at line 57 of file temp_lm75.c.
References i2c_transaction::buf, i2c_transceive(), LM75_I2C_DEV, LM75_SLAVE_ADDR, LM75_TEMP_REG, and lm75_trans.
uint8_t lm75_meas_started |
Definition at line 39 of file temp_lm75.c.
struct i2c_transaction lm75_trans |
Definition at line 39 of file temp_lm75.c.
Referenced by lm75_event(), lm75_init(), and lm75_periodic().