tmp75.c File Reference

Routines to access TMP75 temperature sensor. More...

#include "tmp75.h"
#include "pic_serial.h"
Include dependency graph for tmp75.c:

Go to the source code of this file.

Functions

void tmp75_convert_temp (uns8 addr)
 Start temperature conversion on tmp75.
uns8 tmp75_get_config (uns8 addr)
 Get tmp75 config register.
uns16 tmp75_get_temp (uns8 addr)
 Read temperature from tmp75.
uns8 tmp75_read (uns8 addr, uns8 pointer)
uns16 tmp75_read_16bit (uns8 addr, uns8 pointer)
void tmp75_set_config (uns8 addr, uns8 config)
 Set tmp75 config register.
void tmp75_setup ()
uns8 tmp75_write (uns8 addr, uns8 pointer, uns8 data)

Detailed Description

Definition in file tmp75.c.


Function Documentation

void tmp75_convert_temp ( uns8  addr  ) 

This routine starts the temperature conversion in the tmp75. Issue this command before actually reading the temperature.

needs fixing

Definition at line 107 of file tmp75.c.

uns8 tmp75_get_config ( uns8  addr  ) 

Gets the tmp75 config register (memory location 0x01)

Definition at line 102 of file tmp75.c.

References TMP75_CONFIG_REGISTER, and tmp75_read().

Here is the call graph for this function:

uns16 tmp75_get_temp ( uns8  addr  ) 

Returns 16bit raw temperature register from tmp75.

Definition at line 115 of file tmp75.c.

References tmp75_read_16bit(), and TMP75_TEMP_REGISTER.

Here is the call graph for this function:

uns8 tmp75_read ( uns8  addr,
uns8  pointer 
)

Definition at line 42 of file tmp75.c.

References i2c_receive_byte(), i2c_send_byte(), i2c_start(), i2c_stop(), and uns8.

Referenced by tmp75_get_config().

Here is the call graph for this function:

Here is the caller graph for this function:

uns16 tmp75_read_16bit ( uns8  addr,
uns8  pointer 
)

Definition at line 73 of file tmp75.c.

References i2c_receive_byte(), i2c_send_ack(), i2c_send_byte(), i2c_start(), i2c_stop(), and uns16.

Referenced by tmp75_get_temp().

Here is the call graph for this function:

Here is the caller graph for this function:

void tmp75_set_config ( uns8  addr,
uns8  config 
)

Sets the tmp75 config register

Definition at line 97 of file tmp75.c.

References TMP75_CONFIG_REGISTER, and tmp75_write().

Here is the call graph for this function:

void tmp75_setup (  ) 

Definition at line 93 of file tmp75.c.

References i2c_setup.

uns8 tmp75_write ( uns8  addr,
uns8  pointer,
uns8  data 
)

Definition at line 61 of file tmp75.c.

References i2c_send_byte(), i2c_start(), and i2c_stop().

Referenced by tmp75_set_config().

Here is the call graph for this function:

Here is the caller graph for this function:


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