/****************************************************************************/
/* 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 actGetSRCmd(char* s);
int actGetMemCmd(char* s);
int actGetIDCmd(char* s);
int actGetBdTypeCmd(char* s);

 
/* Set commands */
int actSetDoutCmd(char* s);
int actSetTimeCmd(char* s);
int actSetWRENCmd(char* s);
int actSetWRDICmd(char* s);
int actSetSRCmd(char* s);
int actSetMemCmd(char* s);
int actSetBusAddCmd(char* s);
int actSetBdSelCmd(char* s);
int actSetBdUnselCmd(char* s);


/* Clear commands */
int actClrDoutCmd(char* s);
int actClrPageCmd(char* s);

/* CPU Board commands */

void EEPROMWriteEnable(void);
void EEPROMWriteDisable(char* s);
void EEPROMWrite(int add1, int add2, int add3, int byte);
int EEPROMRead(int add1, int add2, int add3);
void EEPROMReadStatusReg(char* s);
void EEPROMWriteStatusReg(int RegValue);
void EEPROMPageErase(int add1, int add2, int add3);
void EEPROMSectorErase(char* s);
void EEPROMChipErase(char* s);
void EEPROMPowerDown(char* s);
int EEPROMReadID(char* s);


void BusAddSet(int address);
void BdSelSet(int address);
void BdUnselSet(int slot);

int GetSlotAssign(int slot, int spare);
int GetBdType(int slot);


#endif
