/****************************************************************************/
/* Copyright 2010 MBARI.                                                    */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/

#ifndef ACTIONS_H
#define ACTIONS_H

/* Root commands */
int actGetCmd(char* s);
int actSetCmd(char* s);
int actClrCmd(char* s);
int actHelloKittyCmd(char* s);
                                                
/* Get commands */
int actGetDinCmd(char* s);
int actGetDoutCmd(char* s);
int actGetTimeCmd(char* s);
int actGetADCCmd(char* s);
int actGetCurrCmd(char* s);
int actGetVoltCmd(char* s);
int actGetTempCmd(char* s);
int actGetFanCmd(char* s);
 
/* Set commands */
int actSetDoutCmd(char* s);
int actSetTimeCmd(char* s);
int actSetFanCmd(char* s);

/* Clear commands */
int actClrDoutCmd(char* s);

/* Power Supply Board commands */
double readADC(int chan, int type);
void filterADC(int chan, double value);
double storeADC(int chan, double value);
unsigned int storeADCword(int chan, int sendrec, unsigned int word);
double readTemp(int chan);
void filterTemp(int chan, double value);
double storeTemp(int chan, double value);
int storeFan(int state, int value);

#endif
