sht15.c File Reference

#include "sht15.h"
#include "pic_utils.h"
#include "pic_serial.h"

Include dependency graph for sht15.c:

Go to the source code of this file.

Defines

#define CHECK_HUMD   0b00000101
#define CHECK_STAT   0b00000111
#define CHECK_TEMP   0b00000011
#define sht15_read_sda()   set_bit(tris_array[sht15_sda_port - PORTA], sht15_sda_pin);
#define sht15_write_sda()   clear_bit(tris_array[sht15_sda_port - PORTA], sht15_sda_pin);
#define WRITE_STAT   0b00000110

Functions

uns16 sht15_fix_humidity_h (uns16 sensor_out)
uns16 sht15_fix_humidity_l (uns8 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 (void)
void sht15_start (void)


Define Documentation

#define CHECK_HUMD   0b00000101

Definition at line 10 of file sht15.c.

Referenced by sht15_read(), and sht15_read_humidity().

#define CHECK_STAT   0b00000111

Definition at line 11 of file sht15.c.

#define CHECK_TEMP   0b00000011

Definition at line 9 of file sht15.c.

Referenced by sht15_read(), and sht15_read_temperature().

 
#define sht15_read_sda (  )     set_bit(tris_array[sht15_sda_port - PORTA], sht15_sda_pin);

Definition at line 6 of file sht15.c.

Referenced by sht15_read_byte16(), and sht15_send_byte().

 
#define sht15_write_sda (  )     clear_bit(tris_array[sht15_sda_port - PORTA], sht15_sda_pin);

Definition at line 5 of file sht15.c.

Referenced by sht15_send_byte(), and sht15_start().

#define WRITE_STAT   0b00000110

Definition at line 12 of file sht15.c.


Function Documentation

uns16 sht15_fix_humidity_h ( uns16  sensor_out  ) 

Definition at line 167 of file sht15.c.

uns16 sht15_fix_humidity_l ( uns8  sensor_out  ) 

Definition at line 186 of file sht15.c.

References uns16.

Referenced by sht15_read(), and sht15_read_humidity().

Here is the caller graph for this function:

int16 sht15_fix_temperature_h ( uns16  sensor_out  ) 

Definition at line 205 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   ) 

Definition at line 49 of file sht15.c.

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

Here is the call graph for this function:

uns16 sht15_read_byte16 ( void   ) 

Definition at line 137 of file sht15.c.

References clear_pin, kill_interrupts, set_pin, sht15_read_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 21 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 33 of file sht15.c.

References CHECK_TEMP, 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 77 of file sht15.c.

References change_pin, clear_pin, 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 caller graph for this function:

void sht15_setup ( void   ) 

Definition at line 15 of file sht15.c.

References PORTA.

void sht15_start ( void   ) 

Definition at line 123 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 Mon Apr 28 08:43:48 2008 for Pic Pack by  doxygen 1.5.5