lib_adt7461.h

00001 
00002 /*******************************************************8
00003  * Definitions for accessing the ADT 7461 temperature chip
00004  * Functions are in lib_adt7461.c
00005  *
00006  * Created : 10/24/2004 jsc
00007  * Copyright 2004 EDT
00008  *
00009  *******************************************************/
00010 #ifndef LIB_ADT7461_H
00011 #define LIB_ADT7461_H
00012 
00013 #ifdef DOXYGEN_SHOW_UNDOC
00014 
00018 #endif
00019 
00020 EDTAPI void edt_adt7461_set_clock(EdtDev *edt_p, int clock);
00021 
00022 EDTAPI void edt_adt7461_set_data(EdtDev *edt_p, int data);
00023 
00024 EDTAPI void edt_adt7461_set_den(EdtDev *edt_p, int enable);
00025 
00026 EDTAPI void edt_adt7461_show_bits(EdtDev *edt_p);
00027 
00028 EDTAPI void edt_adt7461_set(EdtDev *edt_p, int enable, int data, int clock );
00029 
00030 EDTAPI int edt_adt7461_get_therm_reset(EdtDev *edt_p);
00031 
00032 EDTAPI void edt_adt7461_set_therm_reset(EdtDev *edt_p, int enable);
00033 
00034 EDTAPI int edt_adt7461_read_alert_pin(EdtDev *edt_p);
00035 
00036 EDTAPI int edt_adt7461_read_data_pin(EdtDev *edt_p);
00037 
00038 EDTAPI int edt_adt7461_read_therm_pin(EdtDev *edt_p);
00039 
00040 EDTAPI void edt_adt7461_send_bus_reset(EdtDev *edt_p) ;
00041 
00042 EDTAPI void edt_adt7461_send_bus_start(EdtDev *edt_p);
00043 
00044 EDTAPI void edt_adt7461_send_bus_stop(EdtDev *edt_p);
00045 
00046 EDTAPI int edt_adt7461_get_ack(EdtDev *edt_p);
00047 
00048 EDTAPI int edt_adt7461_send_data_byte(EdtDev *edt_p, int data);
00049 
00050 EDTAPI int edt_adt7461_get_data_byte(EdtDev *edt_p, int doAcknowledge);
00051 
00052 EDTAPI int edt_adt7461_reg_read(EdtDev *edt_p, int address);
00053 
00054 EDTAPI int edt_adt7461_reg_write(EdtDev *edt_p, int address, int data);
00055 
00056 EDTAPI int edt_adt7461_read_alert_address(EdtDev *edt_p);
00057 
00058 
00059 EDTAPI int edt_adt7461_read_extern(EdtDev *edt_p, int tenbits);
00060 
00061 EDTAPI int edt_adt7461_read_intern(EdtDev *edt_p);
00062 
00063 EDTAPI void edt_adt7461_set_alert_high(EdtDev *edt_p, int alert_high);
00064 
00065 
00066 EDTAPI int edt_adt7461_get_alert_high(EdtDev *edt_p);
00067 
00068 EDTAPI void edt_adt7461_set_alert_low(EdtDev *edt_p, int alert_low);
00069 
00070 EDTAPI int edt_adt7461_get_alert_low(EdtDev *edt_p);
00071 
00072 EDTAPI void edt_adt7461_set_therm(EdtDev *edt_p, int therm_high);
00073 
00074 
00075 EDTAPI int edt_adt7461_get_therm(EdtDev *edt_p);
00076 
00077 
00078 EDTAPI void edt_adt7461_set_therm_hysteresis(EdtDev *edt_p, int hysteresis);
00079 
00080 
00081 EDTAPI int edt_adt7461_get_therm_hysteresis(EdtDev *edt_p);
00082 
00083 
00084 EDTAPI int edt_adt7461_get_alert(EdtDev *edt_p);
00085 
00086 EDTAPI void edt_adt4761_print_status(EdtDev *edt_p, int full);
00087 
00088 
00089 #ifdef DOXYGEN_SHOW_UNDOC
00090  /* end weakgroup */
00091 #endif
00092 
00093 #endif

Generated on Mon May 12 16:38:54 2008 by  doxygen 1.5.1