00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef LIB_ADT7461_H
00011 #define LIB_ADT7461_H
00012
00013 #ifdef DOXYGEN_SHOW_UNDOC
00014
00018 #endif
00019
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023
00024 EDTAPI void edt_adt7461_set_clock(EdtDev *edt_p, int clock);
00025
00026 EDTAPI void edt_adt7461_set_data(EdtDev *edt_p, int data);
00027
00028 EDTAPI void edt_adt7461_set_den(EdtDev *edt_p, int enable);
00029
00030 EDTAPI void edt_adt7461_show_bits(EdtDev *edt_p);
00031
00032 EDTAPI void edt_adt7461_set(EdtDev *edt_p, int enable, int data, int clock );
00033
00034 EDTAPI int edt_adt7461_get_therm_reset(EdtDev *edt_p);
00035
00036 EDTAPI void edt_adt7461_set_therm_reset(EdtDev *edt_p, int enable);
00037
00038 EDTAPI int edt_adt7461_read_alert_pin(EdtDev *edt_p);
00039
00040 EDTAPI int edt_adt7461_read_data_pin(EdtDev *edt_p);
00041
00042 EDTAPI int edt_adt7461_read_therm_pin(EdtDev *edt_p);
00043
00044 EDTAPI void edt_adt7461_send_bus_reset(EdtDev *edt_p) ;
00045
00046 EDTAPI void edt_adt7461_send_bus_start(EdtDev *edt_p);
00047
00048 EDTAPI void edt_adt7461_send_bus_stop(EdtDev *edt_p);
00049
00050 EDTAPI int edt_adt7461_get_ack(EdtDev *edt_p);
00051
00052 EDTAPI int edt_adt7461_send_data_byte(EdtDev *edt_p, int data);
00053
00054 EDTAPI int edt_adt7461_get_data_byte(EdtDev *edt_p, int doAcknowledge);
00055
00056 EDTAPI int edt_adt7461_reg_read(EdtDev *edt_p, int address);
00057
00058 EDTAPI int edt_adt7461_reg_write(EdtDev *edt_p, int address, int data);
00059
00060 EDTAPI int edt_adt7461_read_alert_address(EdtDev *edt_p);
00061
00062
00063 EDTAPI int edt_adt7461_read_extern(EdtDev *edt_p, int tenbits);
00064
00065 EDTAPI int edt_adt7461_read_intern(EdtDev *edt_p);
00066
00067 EDTAPI void edt_adt7461_set_alert_high(EdtDev *edt_p, int alert_high);
00068
00069
00070 EDTAPI int edt_adt7461_get_alert_high(EdtDev *edt_p);
00071
00072 EDTAPI void edt_adt7461_set_alert_low(EdtDev *edt_p, int alert_low);
00073
00074 EDTAPI int edt_adt7461_get_alert_low(EdtDev *edt_p);
00075
00076 EDTAPI void edt_adt7461_set_therm(EdtDev *edt_p, int therm_high);
00077
00078
00079 EDTAPI int edt_adt7461_get_therm(EdtDev *edt_p);
00080
00081
00082 EDTAPI void edt_adt7461_set_therm_hysteresis(EdtDev *edt_p, int hysteresis);
00083
00084
00085 EDTAPI int edt_adt7461_get_therm_hysteresis(EdtDev *edt_p);
00086
00087
00088 EDTAPI int edt_adt7461_get_alert(EdtDev *edt_p);
00089
00090 EDTAPI void edt_adt4761_print_status(EdtDev *edt_p, int full);
00091
00092 EDTAPI void edt_adt7461_set_reg(EdtDev *edt_p, u_int adt7461_reg);
00093 EDTAPI u_int edt_adt7461_get_reg(EdtDev *edt_p);
00094
00095 EDTAPI void edt_adt7461_set_mezzanine_chip(EdtDev *edt_p, int mezzanine_chip_select);
00096
00097 EDTAPI void edt_adt7461_set_baseboard_chip(EdtDev *edt_p, int baseboard_chip_select);
00098
00099
00100 #ifdef DOXYGEN_SHOW_UNDOC
00101
00102 #endif
00103
00104 #ifdef __cplusplus
00105 }
00106 #endif
00107
00108 #endif