Main Page   Modules   Data Structures   File List   Data Fields   Globals  

ds1631.c File Reference

Dallas DS1631 Temperature Sensor Driver Library. More...

#include <avr/io.h>
#include <avr/signal.h>
#include <avr/interrupt.h>
#include "global.h"
#include "timer.h"
#include "i2c.h"
#include "ds1631.h"

Go to the source code of this file.

Functions

u08 ds1631Init (u08 i2cAddr)
 Initialize the DS1631 chip.

u08 ds1631Reset (u08 i2cAddr)
 Reset the DS1631 chip to its power-on defaults.

void ds1631SetConfig (u08 i2cAddr, u08 config)
 Set the configuration byte of the DS1631.

u08 ds1631GetConfig (u08 i2cAddr)
 Get the configuration byte of the DS1631.

void ds1631StartConvert (u08 i2cAddr)
 Start a temperature conversion.

void ds1631StopConvert (u08 i2cAddr)
 Stop a temperature conversion (or stop continuous conversion mode).

s16 ds1631ReadTemp (u08 i2cAddr)
 Read the result of a temperature conversion.

void ds1631SetTH (u08 i2cAddr, s16 value)
 Set the Temp-High threshold.

void ds1631SetTL (u08 i2cAddr, s16 value)
 Set the Temp-Low threshold.

s16 ds1631GetTH (u08 i2cAddr)
 Get the Temp-High threshold.

s16 ds1631GetTL (u08 i2cAddr)
 Get the Temp-Low threshold.

s16 ds1631ReadTempReg (u08 i2cAddr, u08 cmd)
void ds1631WriteTempReg (u08 i2cAddr, u08 cmd, s16 value)


Detailed Description

Dallas DS1631 Temperature Sensor Driver Library.

Definition in file ds1631.c.


Generated on Sun Feb 22 19:12:31 2004 for Procyon AVRlib by doxygen1.3-rc2