sht15.h File Reference

Support for SHT15 and SHT11 digital humidity sensors. More...

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

Go to the source code of this file.

Defines

#define __sht15_h   defined

Functions

uns16 sht15_fix_humidity (uns16 sensor_out)
uns16 sht15_fix_humidity_l (uns8 sensor_out)
uns16 sht15_fix_humidity_r (uns16 sensor_out)
int16 sht15_fix_temperature_h (uns16 sensor_out)
void sht15_read (void)
uns16 sht15_read_byte16 (void)
uns16 sht15_read_humidity (void)
uns16 sht15_read_temperature (void)
void sht15_send_byte (uns8 sht15_command)
*void sht15_setup_io (void)
void sht15_start (void)

Detailed Description

Include the following in your config.h:

define sht15_sck_port PORTA define sht15_sck_pin 1 define sht15_sda_port PORTA define sht15_sda_pin 0

Definition in file sht15.h.


Define Documentation

#define __sht15_h   defined

Definition at line 56 of file sht15.h.


Function Documentation

uns16 sht15_fix_humidity ( uns16  sensor_out  ) 

Definition at line 327 of file sht15.c.

Referenced by sht15_read().

Here is the caller graph for this function:

uns16 sht15_fix_humidity_l ( uns8  sensor_out  ) 

Definition at line 347 of file sht15.c.

References uns16.

Referenced by sht15_read_humidity().

Here is the caller graph for this function:

uns16 sht15_fix_humidity_r ( uns16  sensor_out  ) 

Definition at line 305 of file sht15.c.

References c1, c2, c3, and int32.

int16 sht15_fix_temperature_h ( uns16  sensor_out  ) 

Definition at line 366 of file sht15.c.

References int16.

Referenced by sht15_read(), and sht15_read_temperature().

Here is the caller graph for this function:

void sht15_read ( void   ) 
uns16 sht15_read_byte16 ( void   ) 

Definition at line 216 of file sht15.c.

References clear_pin, set_pin, sht15_read_sda, sht15_write_sda, test_pin, uns16, and uns8.

Referenced by sht15_read(), sht15_read_humidity(), and sht15_read_temperature().

Here is the caller graph for this function:

uns16 sht15_read_humidity ( void   ) 

Definition at line 59 of file sht15.c.

References CHECK_HUMD, sht15_fix_humidity_l(), sht15_read_byte16(), sht15_send_byte(), sht15_start(), and uns16.

Here is the call graph for this function:

uns16 sht15_read_temperature ( void   ) 

Definition at line 71 of file sht15.c.

References CHECK_TEMP, serial_print_int(), serial_print_str(), sht15_fix_temperature_h(), sht15_read_byte16(), sht15_send_byte(), sht15_start(), and uns16.

Here is the call graph for this function:

void sht15_send_byte ( uns8  sht15_command  ) 

Definition at line 118 of file sht15.c.

References change_pin, clear_pin, serial_print_int(), serial_print_str(), set_pin, sht15_read_sda, sht15_write_sda, test_pin, and uns8.

Referenced by sht15_read(), sht15_read_humidity(), and sht15_read_temperature().

Here is the call graph for this function:

Here is the caller graph for this function:

* void sht15_setup_io ( void   ) 

Definition at line 51 of file sht15.c.

References clear_pin, and make_output.

void sht15_start ( void   ) 

Definition at line 172 of file sht15.c.

References clear_pin, set_pin, and sht15_write_sda.

Referenced by sht15_read(), sht15_read_humidity(), and sht15_read_temperature().

Here is the caller graph for this function:


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