/* ----------------------------------------------------------------------- DigiTemp v1.7 Copyright 1996-2002 by Brian C. Lane All Rights Reserved http://www.brianlane.com/digitemp.php ----------------------------------------------------------------------- */ /* Define this to generate a demo allowing only iwasrv commands */ #undef DEMO #ifndef DEMO #define BANNER_1 "DigiTemp v1.7 [REGISTERED] Copyright 1996-2002 by Brian C. Lane\n" #define BANNER_2 "All Rights Reserved - http://www.brianlane.com\n\n" #else #define BANNER_1 "DigiTemp v1.7 [DEMO] Copyright 1996-2002 by Brian C. Lane\n" #define BANNER_2 "All Rights Reserved - http://www.brianlane.com\n\n" #endif #define OPT_INIT 0x0001 #define OPT_VERBOSE 0x0002 #define OPT_SINGLE 0x0004 #define OPT_ALL 0x0008 #define OPT_QUIET 0x0010 #define OPT_WALK 0x0020 /* Coupler related definitions */ #define SWITCH_FAMILY 0x1F #define MAXDEVICES 15 #define ALL_LINES_OFF 0 #define DIRECT_MAIN_ON 1 #define AUXILARY_ON 2 #define STATUS_RW 3 /* Number of tries to read a sensor before giving up */ #define MAX_READ_TRIES 3 struct _coupler { unsigned char SN[8]; /* Serial # of this Coupler */ unsigned int num_main; /* # of devices on main */ unsigned int num_aux; /* # of devices on aux */ unsigned char *main; /* Array of 8 byte serial nums */ unsigned char *aux; /* Array of 8 byte serial nums */ struct _coupler *next; }; void msDelay( int );