comparison 1wire.h @ 10:eb1faf51968e

- Add some useful return values to search functions. - Remove some unecessary trailing \'s in macros - Replace some inline assembly I missed last time with C/macros.
author darius
date Mon, 12 Jul 2004 23:59:00 +0930
parents f9a085a0ba93
children 4b141cc7cbd4
comparison
equal deleted inserted replaced
9:7ed10c59ba06 10:eb1faf51968e
45 45
46 #define OWIREINPORT PINC 46 #define OWIREINPORT PINC
47 #define OWIREDDR DDRC 47 #define OWIREDDR DDRC
48 #define OWIREINPIN OWIREOUTPIN 48 #define OWIREINPIN OWIREOUTPIN
49 49
50 /* Return codes for OWFirst()/OWNext() */
51 #define OW_BADWIRE -3
52 #define OW_BADCRC -2
53 #define OW_NOPRESENCE -1
54 #define OW_NOMODULES 0
55 #define OW_FOUND 1
56
50 /* General 1 wire commands */ 57 /* General 1 wire commands */
51 #define OW_OVRDRV_SKIP_CMD 0x3c 58 #define OW_OVRDRV_SKIP_CMD 0x3c
52 #define OW_SEARCH_ALRM_CMD 0xec 59 #define OW_SEARCH_ALRM_CMD 0xec
53 #define OW_SEARCH_ROM_CMD 0xf0 60 #define OW_SEARCH_ROM_CMD 0xf0
54 #define OW_READ_ROM_CMD 0x33 61 #define OW_READ_ROM_CMD 0x33