/****************************************************************************/
/* Copyright 2011 MBARI.                                                    */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
#ifndef TASKS_H
#define TASKS_H

#define TMR_TASK        0x0001
#define SCHED_TASK      0x0002
#define TIME_LAPSE_TASK 0x0004
#define ALL_TASK        0xFFFF

void tskInit();
void tskExecute(unsigned int tasks);

void tskShowStatus();
unsigned int tskBattVolt();

int tskStartImageCapture();
int tskStartVideoCapture();

int tskImageCaptureReady();
int tskVideoCaptureReady();

void tskImageCaptureStateStr(char* s);
void tskVideoCaptureStateStr(char* s);

int tskGetCaptureMode();
int tskSetCaptureMode(int mode);

unsigned long tskGetStartDeploy();
int tskSetStartDeploy(unsigned long start);

unsigned long tskGetLenDeploy();
int tskSetLenDeploy(unsigned long length);

unsigned long tskGetSampleInt();
int tskSetSampleInt(unsigned long interval);

unsigned long tskGetVidLen();
int tskSetVidLen(unsigned long length);

unsigned long tskGetBattLevel();
int tskSetBattLevel(unsigned long level);

#endif
