Paparazzi UAS  v5.15_devel-81-gd13dafb
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 "subsystems/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

#define LM75_I2C_DEV   i2c0

Definition at line 43 of file temp_lm75.c.

Referenced by lm75_periodic().

#define LM75_SLAVE_ADDR   0x90

Definition at line 49 of file temp_lm75.c.

Referenced by lm75_periodic().

Function Documentation

void lm75_event ( void  )
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.

+ Here is the call graph for this function:

Variable Documentation

uint8_t lm75_meas_started

Definition at line 39 of file temp_lm75.c.

struct i2c_transaction lm75_trans

Definition at line 40 of file temp_lm75.c.

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