/****************************************************************************/
/* Copyright 2009 MBARI.                                                    */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
#ifndef CONFIG_H
#define CONFIG_H

#define DEFAULT_BOOT_FLAG   0x0000
#define ACTIVE_BOOT_FLAG    0xAAAA

typedef struct
{
    unsigned int bootFlag;
    int triggerMode;
    int timeLapseMode;
    unsigned long trigHoldoff;
    unsigned long trigDebounce;
    unsigned long stopDelay;
    unsigned long startDelay;
    unsigned long triggerWindow;
    unsigned long timeLapseOn;
    unsigned long timeLapseOff;
} ConfigData;

int cfgShow();
int cfgDefault();

int cfgCheck(ConfigData* config);
int cfgRead(ConfigData* config);
int cfgWrite(ConfigData* config);
int cfgSetBootFlag();





#endif

