Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
temp_lm75.c File Reference

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"
+ Include dependency graph for temp_lm75.c:

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
 

Detailed Description

National LM75 I2C sensor interface.

This reads the values for temperature from the National LM75 sensor through I2C.

Definition in file temp_lm75.c.

Macro Definition Documentation

◆ LM75_I2C_DEV

#define LM75_I2C_DEV   i2c0

Definition at line 43 of file temp_lm75.c.

◆ LM75_SLAVE_ADDR

#define LM75_SLAVE_ADDR   0x90

Definition at line 49 of file temp_lm75.c.

Function Documentation

◆ lm75_event()

void lm75_event ( void  )

◆ lm75_init()

void lm75_init ( void  )

Definition at line 52 of file temp_lm75.c.

References I2CTransDone, lm75_trans, and i2c_transaction::status.

◆ lm75_periodic()

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.

+ Here is the call graph for this function:

Variable Documentation

◆ lm75_meas_started

uint8_t lm75_meas_started

Definition at line 39 of file temp_lm75.c.

◆ lm75_trans

struct i2c_transaction lm75_trans

Definition at line 39 of file temp_lm75.c.

Referenced by lm75_event(), lm75_init(), and lm75_periodic().