lm75.h File Reference

LM75 temperature sensor routines. More...

#include "pic_utils.h"
#include "i2c.h"
Include dependency graph for lm75.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LM75_NORMAL   0
#define LM75_SHUTDOWN   1

Functions

uns8 lm75_get_config (uns8 addr)
 Get LM75 config register.
uns16 lm75_get_temp (uns8 addr)
 Request temperature from LM75.
void lm75_set_config (uns8 addr, uns8 config)
 Set LM75 config register.
void lm75_setup (void)
 Setup lm75 ports and pins.

Detailed Description

A library to communicate with the LM75 sensor

Definition in file lm75.h.


Define Documentation

#define LM75_NORMAL   0

config define for normal mode

Definition at line 49 of file lm75.h.

#define LM75_SHUTDOWN   1

Config define for low power mode

Definition at line 47 of file lm75.h.


Function Documentation

uns8 lm75_get_config ( uns8  addr  ) 

Gets the LM75 config register (memory location 0x01)

Definition at line 48 of file lm75.c.

References i2c_read_eeprom().

Here is the call graph for this function:

uns16 lm75_get_temp ( uns8  addr  ) 

Returns 16bit raw temperature register from LM75

Definition at line 54 of file lm75.c.

References i2c_read_eeprom_16bit().

Here is the call graph for this function:

void lm75_set_config ( uns8  addr,
uns8  config 
)

Sets the LM75 config register (memory location 0x01)

Definition at line 43 of file lm75.c.

References i2c_write_eeprom().

Here is the call graph for this function:

void lm75_setup ( void   ) 

Definition at line 39 of file lm75.c.

References i2c_setup.


Generated on Wed Dec 8 13:47:24 2010 for Pic Pack by  doxygen 1.6.1