00001 /****************************************************************************/ 00018 #ifndef _W1_H 00019 #define _W1_H 00020 00021 /****************************************************************************** 00022 Includes section 00023 ******************************************************************************/ 00024 #include <halW1.h> 00025 00026 /****************************************************************************** 00027 Define(s) section 00028 ******************************************************************************/ 00029 #define W1_ANY_FAMILY 0x00 00030 #define DS2411 0x01 00031 00032 /****************************************************************************** 00033 Prototypes section 00034 ******************************************************************************/ 00035 /*************************************************************************/ 00054 W1Status_t HAL_SearchW1Device(uint8_t family, 00055 uint8_t *data, 00056 uint8_t count, 00057 uint8_t *actCount); 00058 00059 /**************************************************************************/ 00077 W1Status_t HAL_AlarmSearchW1Device(uint8_t family, 00078 uint8_t *data, 00079 uint8_t count, 00080 uint8_t *actCount); 00081 00082 /***************************************************************************/ 00088 uint8_t HAL_ResetW1(void); 00089 00090 /***************************************************************************/ 00095 void HAL_WriteW1(uint8_t value); 00096 00097 /***************************************************************************/ 00102 uint8_t HAL_ReadW1(void); 00103 00104 #endif /* _W1_H */ 00105 // eof w1.h