ds1631.c File Reference

#include "ds1631.h"

Include dependency graph for ds1631.c:

Go to the source code of this file.

Defines

#define READ   1
#define WRITE   0

Functions

uns8 convert_to_dec1 (uns8 data)
uns8 convert_to_dec2 (uns8 data)
uns8 convert_to_dec2b (uns8 data)
uns16 ds1631_get_temp (uns8 control, uns8 command)
uns8 ds1631_read_and_ack (uns8 last)
uns8 ds1631_read_config (uns8 control, uns8 command)
void ds1631_read_mode ()
void ds1631_setup ()
void ds1631_start ()
void ds1631_stop ()
void ds1631_write_and_ack (uns8 data)
void ds1631_write_byte (uns8 data)
void ds1631_write_config (uns8 control, uns8 command, uns8 data)
void ds1631_write_convert (uns8 control, uns8 command)
void ds1631_write_mode ()


Define Documentation

#define READ   1

Definition at line 4 of file ds1631.c.

Referenced by ds1631_get_temp(), and ds1631_read_config().

#define WRITE   0

Definition at line 3 of file ds1631.c.

Referenced by ds1631_get_temp(), ds1631_read_config(), and ds1631_write_config().


Function Documentation

uns8 convert_to_dec1 ( uns8  data  ) 

Definition at line 205 of file ds1631.c.

uns8 convert_to_dec2 ( uns8  data  ) 

Definition at line 226 of file ds1631.c.

uns8 convert_to_dec2b ( uns8  data  ) 

Definition at line 183 of file ds1631.c.

uns16 ds1631_get_temp ( uns8  control,
uns8  command 
)

Definition at line 136 of file ds1631.c.

References ds1631_read_and_ack(), ds1631_start(), ds1631_stop(), ds1631_write_and_ack(), READ, uns16, and WRITE.

Here is the call graph for this function:

uns8 ds1631_read_and_ack ( uns8  last  ) 

Definition at line 56 of file ds1631.c.

References change_pin, clear_pin, ds1631_bit_delay, ds1631_read_mode(), ds1631_write_mode(), set_pin, test_pin, and uns8.

Referenced by ds1631_get_temp(), and ds1631_read_config().

Here is the call graph for this function:

Here is the caller graph for this function:

uns8 ds1631_read_config ( uns8  control,
uns8  command 
)

Definition at line 118 of file ds1631.c.

References ds1631_read_and_ack(), ds1631_start(), ds1631_stop(), ds1631_write_and_ack(), READ, uns8, and WRITE.

Here is the call graph for this function:

void ds1631_read_mode (  ) 

Definition at line 10 of file ds1631.c.

References PORTA.

Referenced by ds1631_read_and_ack(), and ds1631_write_and_ack().

Here is the caller graph for this function:

void ds1631_setup (  ) 

Definition at line 157 of file ds1631.c.

References make_output, and set_pin.

void ds1631_start (  ) 

Definition at line 15 of file ds1631.c.

References clear_pin, ds1631_bit_delay, ds1631_write_mode(), and set_pin.

Referenced by ds1631_get_temp(), ds1631_read_config(), ds1631_write_config(), and ds1631_write_convert().

Here is the call graph for this function:

Here is the caller graph for this function:

void ds1631_stop (  ) 

Definition at line 29 of file ds1631.c.

References clear_pin, ds1631_bit_delay, ds1631_write_mode(), and set_pin.

Referenced by ds1631_get_temp(), ds1631_read_config(), ds1631_write_config(), and ds1631_write_convert().

Here is the call graph for this function:

Here is the caller graph for this function:

void ds1631_write_and_ack ( uns8  data  ) 

Definition at line 91 of file ds1631.c.

References clear_pin, ds1631_bit_delay, ds1631_read_mode(), ds1631_write_byte(), ds1631_write_mode(), and set_pin.

Referenced by ds1631_get_temp(), ds1631_read_config(), ds1631_write_config(), and ds1631_write_convert().

Here is the call graph for this function:

Here is the caller graph for this function:

void ds1631_write_byte ( uns8  data  ) 

Definition at line 42 of file ds1631.c.

References change_pin, clear_pin, ds1631_bit_delay, ds1631_write_mode(), set_pin, and uns8.

Referenced by ds1631_write_and_ack().

Here is the call graph for this function:

Here is the caller graph for this function:

void ds1631_write_config ( uns8  control,
uns8  command,
uns8  data 
)

Definition at line 106 of file ds1631.c.

References ds1631_start(), ds1631_stop(), ds1631_write_and_ack(), and WRITE.

Here is the call graph for this function:

void ds1631_write_convert ( uns8  control,
uns8  command 
)

Definition at line 80 of file ds1631.c.

References ds1631_start(), ds1631_stop(), and ds1631_write_and_ack().

Here is the call graph for this function:

void ds1631_write_mode (  ) 

Definition at line 6 of file ds1631.c.

References PORTA.

Referenced by ds1631_read_and_ack(), ds1631_start(), ds1631_stop(), ds1631_write_and_ack(), and ds1631_write_byte().

Here is the caller graph for this function:


Generated on Mon Apr 28 07:59:38 2008 for Pic Pack by  doxygen 1.5.5