/****************************************************************************/
/* Copyright 2012 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 captureMode;
    unsigned long startOfDeploy;
    unsigned long lenOfDeploy;
    unsigned long sampleInterval;
    unsigned long lenOfVideo;
    unsigned long battLevel;
} ConfigData;

int cfgDefault();
int cfgCheck(ConfigData* config);
int cfgRead(ConfigData* config);
int cfgWrite(ConfigData* config);
int cfgSetBootFlag();

#endif

