#ifndef LOBOINIT_INC #define LOBOINIT_INC // Defined Values of Non-Volatile UCHAR Variables #define fooENABLE_VAL 0 // recycled back as a place holder, feel free to use! #define SLOGMODE_VAL 1 // LOBO start of logging sync mode 1=Sync to Given Mins 2=Sync to Given Hours and Mins #define DEPLMODE_VAL 1 // LOBO deployment mode, this is TBD #define DATAMODE_VAL 1 // LOBO Scheduled Data Collection Mode 1=Real Data 2=Pseudo Data (TEST MODE) #define LEDENABLE_VAL 0 // boolean for enabling the CD and STATUS LEDs on the MBARI MODEM Interface Board #define WDOGENABLE_VAL 0 // boolean for enabling the hardware watchdog counter #define SAMPENABLE_VAL 0x07 // bitfield for enabling instrument sampling // Address Values into Non-Volatile RTC RAM for respective variables above #define fooENABLE_PTR 0x0001 #define SLOGMODE_PTR 0x0002 #define DEPLMODE_PTR 0x0003 #define DATAMODE_PTR 0x0004 #define LEDENABLE_PTR 0x0005 #define WDOGENABLE_PTR 0x0006 #define SAMPENABLE_PTR 0x0007 // // Defined Values of Non-Volatile USHORT Variables #define LFLIMIT_VAL 500 // max size (in kbytes) for any log file #define SFLIMIT_VAL 750 // max size (in kbytes) for data spool file before removal #define SYNCHR_VAL 6 // local hour to sync start of data logging to #define SYNCMIN_VAL 30 // local minute to sync start of data logging to // Address Values into Non-Volatile RTC RAM for respective variables above #define LFLIMIT_PTR 0x0080 #define SFLIMIT_PTR 0x0082 #define SYNCHR_PTR 0x0084 #define SYNCMIN_PTR 0x0086 #define LASTDOY_PTR 0x0088 // // Defined Values of Non-Volatile INT Variables #define TZOFFSET_VAL 8 // hrs local time is offset from GMT (+) is W (-) is E // Address Values into Non-Volatile RTC RAM for respective variables above #define TZOFFSET_PTR 0x00E0 // // Defined Values of Non-Volatile ULONG AND LONG Variables #define LOBOSLP_VAL 60 // number of minutes of LOBO wakeup period #define SAMPSPERTX_VAL 1 // number of samples per radio transmission #define FILECTR_VAL 1 // counter indicating number of current/created log files #define MODEMBAUD_VAL 57600 // RS232 baud rate for Radio MODEM #define SYSRESETCTR_VAL 0 // counter indicating total number of system resets #define SYSRESETTIME_VAL 0 // time of the last system reset event #define WATCHDOGCTR_VAL 0 // counter indicating total number of system resets due to hardware watchdog #define CONNFAILCTR_VAL 0 // counter indicating total number of connection failures (from the MODEM to the Access Point) events #define CONNFAILTIME_VAL 0 // time of the last connection failure event #define CARRDROPCTR_VAL 0 // counter indicating total number of dropped CARRIRT DETECT events #define CARRDROPTIME_VAL 0 // time of the last dropped CARRIER DETECT event #define SAMPCTR_VAL 1 // counter indicating number of sample cycles // Address Values into Non-Volatile RTC RAM for respective variables above #define LOBOSLP_PTR 0x0100 #define SAMPSPERTX_PTR 0x0104 #define FILECTR_PTR 0x0108 #define MODEMBAUD_PTR 0x010C #define SYSRESETCTR_PTR 0x0110 #define SYSRESETTIME_PTR 0x0114 #define WATCHDOGCTR_PTR 0x0118 #define CONNFAILCTR_PTR 0x011C #define CONNFAILTIME_PTR 0x0120 #define CARRDROPCTR_PTR 0x0124 #define CARRDROPTIME_PTR 0x0128 #define SAMPCTR_PTR 0x012C // /* loboinit.c */ void InitLOBO(void); void InitVars(void); void LoadVarsNV(uchar NVSRAM); void InitVarsNV(void); void DisplayInitMsg(void); int ioPwrUp(void); int ioPwrDown(void); #endif