/****************************************************************************/
/* 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 actGetBdAddCmd(char* s);
int actGetBdTypeCmd(char* s);
int actGetADCCmd(char* s);
int actGetTempCmd(char* s);

/* Set commands */
int actSetDoutCmd(char* s);
int actSetTimeCmd(char* s);
int actSetCSAddCmd(char* s);
int actSetBusIntCmd(char* s);
int actSetPoten0RESCmd(char* s);
int actSetPoten1RESCmd(char* s);
int actSetPotenRSTCmd(char* s);

/* Clear commands */
int actClrDoutCmd(char* s);

/* Environmental Board commands */
void CSAddSet(int address);
int GetBdAdd(int mult);
int GetBdType(int mult);
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);
void DigPotSet(int chan, int value);
void DigPotRST(int mult);
void BdIdent(unsigned int type);

#endif
