/******************************************************************************/ /* LOBO Global Variables used and or shared in any build */ /******************************************************************************/ // Touch Memory uchar TMemDevices; uchar ROM[8]; // contents of "discovered" ROM uchar DOWCRC; // 8-bit Dallas cyclic redundancy check uchar LD = 0; // Last discrepancy bit in previous Next uchar LastOne = 0; // ROM search done flag // // DS1994 - RealTimeClock uchar RtcDevice; uchar DS1994_ROM[8]; // // DS1996 - 16k NVRAM uchar RamDevice; uchar DS1996_ROM[8]; // // DS1820 - Digital Thermometer(s) uchar TempDevices; uchar DS1820_ROM1[8]; uchar DS1820_ROM2[8]; // // Memory Mapped Latches ushort WrLatch1Val; ushort WrLatch2Val; // // MISC NON-VOLATILE VARS uchar sample_enable, watchdog_enable, LED_enable, FOO_enable; uchar slog_mode, deploy_mode, data_mode; ushort lf_limit, sf_limit, sync_hour, sync_min, last_doy; int tzoffset; long modem_baud, modem_id; ulong lobo_sleep, samps_per_xmit; ulong file_ctr, samp_ctr; ulong sys_reset_ctr, watchdog_ctr, connect_fail_ctr, carrier_drop_ctr; ulong DS1994_pcc, DS1994_elp; time_t sys_reset_time; // time in secs of last system reset event time_t connect_fail_time; // time in secs of the last connection failure event time_t carrier_drop_time; // time in secs of the last dropped CARRIER DETECT event // // MISC VOLATILE VARS uchar reset_flag, watchdog_flag, break_flag; uchar send_again; uchar modem_pwr; long size, avail; long server_pid, rtc_delta; ulong CS0Base, CS1Base, CS10Base; ulong modem_cts_ctr; float modem_connect_secs, modem_rssi_avg, modem_rssi_sd; float ping_mean, ping_min, ping_max; ldiv_t hdiv, mdiv; // // MISC VOLATILE TIME VARS - ALL RTC TIMES ARE KEPT IN GMT! struct tm *tp; time_t DS1994_secs; // time in secs from Dallas RTC (NON-VOLATILE) time_t pic_secs; // time in secs from TT8 RTC (VOLATILE!) time_t wake_time; // time in secs indicating when LpSleep returned time_t current_time; // time in secs indicating the current time time_t last_sample; // time in secs indicating when the last data sample was taken time_tt wakeup; // time struct used in LpSleep function call SleepPowerOptions SleepOpts; // LowPowerSleep Structure, see LPSLEEP.H // extern void *_H0_org; extern void *_H0_end; extern void *_H1_org; extern void *_H1_end;