comparison 1wire.h @ 65:1ef17cd8af7a

Tab to space conversion in usage text.
author darius@Inchoate
date Sun, 18 Jan 2009 20:03:24 +1030
parents 94f71ddb0cda
children 39d629c7d935
comparison
equal deleted inserted replaced
64:11c453539d31 65:1ef17cd8af7a
78 /* Family codes */ 78 /* Family codes */
79 #define OW_FAMILY_ROM 0x09 79 #define OW_FAMILY_ROM 0x09
80 #define OW_FAMILY_TEMP 0x10 80 #define OW_FAMILY_TEMP 0x10
81 81
82 /* Return codes for OWGetTemp */ 82 /* Return codes for OWGetTemp */
83 /* XXX: make bigger otherwise we can't handle stuff below -10C */
83 #define OW_TEMP_BADVAL -1000 84 #define OW_TEMP_BADVAL -1000
84 #define OW_TEMP_WRONG_FAM -1000 85 #define OW_TEMP_WRONG_FAM -1000
85 #define OW_TEMP_CRC_ERR -1001 86 #define OW_TEMP_CRC_ERR -1001
86 #define OW_TEMP_NO_ROM -1002 87 #define OW_TEMP_NO_ROM -1002
87 88
88 /* Helpers for OWGetTemp's number system */ 89 /* Helpers for OWGetTemp's number system */
89 #define GETWHOLE(x) ((x) / 100) 90 #define GETWHOLE(x) ((x) / 100)
90 #define GETFRAC(x) ((x) - (GETWHOLE(x) * 100)) 91 #define GETFRAC(x) abs((x) - (GETWHOLE(x) * 100))