Routines to access TMP75 temperature sensor. More...
#include "tmp75.h"
#include "pic_serial.h"
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) |
Definition in file tmp75.c.
void tmp75_convert_temp | ( | uns8 | addr | ) |
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().
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.
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().
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().
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().
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().