Mercurial > ~darius > hgwebdir.cgi > avr
diff 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 |
line wrap: on
line diff
--- a/1wire.h Mon Jul 12 17:51:20 2004 +0930 +++ b/1wire.h Mon Jul 12 23:59:00 2004 +0930 @@ -47,6 +47,13 @@ #define OWIREDDR DDRC #define OWIREINPIN OWIREOUTPIN +/* Return codes for OWFirst()/OWNext() */ +#define OW_BADWIRE -3 +#define OW_BADCRC -2 +#define OW_NOPRESENCE -1 +#define OW_NOMODULES 0 +#define OW_FOUND 1 + /* General 1 wire commands */ #define OW_OVRDRV_SKIP_CMD 0x3c #define OW_SEARCH_ALRM_CMD 0xec