/****************************************************************************/
/* Copyright 2010 MBARI.                                                    */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/

#include <stddef.h>
#include "actions.h"
#include "commands.h"

/****************************************************************************/
/*                            command structures                            */
/****************************************************************************/

const CmdStruct cmdsRoot[] =
{
    {"GET",                 actGetCmd               },
    {"SET",                 actSetCmd               },
    {"CLEAR|CLR",           actClrCmd               },
    {"TIME",                actTimeCmd              },
    {"HELP|?",              actHelpCmd              },
    {"RESET",               actResetCmd             },
    {"SAVE",                actSaveCmd              },
    {"PARAM",               actParamCmd             },
    {"DEFAULT",             actDefaultCmd           },
    {"BATT",                actBattCmd              },
    {"STAT",                actStatCmd              },

    {"CAM PWR",             actCamPwrCmd            },
    {"LED1 PWR",            actLed1Cmd              },
    {"LED2 PWR",            actLed2Cmd              },
    {"HDMI PWR",            actVidPwrCmd            },
    {"STROBE PWR",          actStrobeCmd            },
    {"INST PWR",            actInst1Cmd             },
    {"INST2 PWR",           actInst2Cmd             },
    
    /* debug command(s) below */                    
    {"HELLO KITTY",         actHelloKittyCmd        },
    
    {"DEBUG",               actDebugCmd             },
    
    {"ERASE MEM",           actMemEraseCmd          },
    {"WRITE MEM",           actMemWriteCmd          },
    {"READ MEM",            actMemReadCmd           },
    
    {"T1",                  actTest1Cmd             },
    {"T2",                  actTest2Cmd             },
    {"T3",                  actTest3Cmd             },
    {"T4",                  actTest4Cmd             },
    {"",                    NULL                    }
};                                                  
                                                    
const CmdStruct cmdsGet[] =                         
{                                                   
    {"IMG|IMAGE",           actGetImgCmd            },
    {"VID|VIDEO",           actGetVidCmd            },
    {"TRIG1",               actGetTrig1Cmd          },
    {"TRIG2",               actGetTrig2Cmd          },
    {"",                    NULL                    }
};                                                 
                                                   
const CmdStruct cmdsSet[] =                        
{                                                  
    {"TIME",                actSetTimeCmd           },
    {"CAPTURE MODE",        actSetCaptureModeCmd    },
    {"DEPLOY DELAY",        actSetStartDeployCmd    },
    {"DEPLOY DURATION",     actSetLenDeployCmd      },
    {"SAMPLE INTERVAL",     actSetSampleIntCmd      },
    {"VIDEO DURATION",      actSetVidLenCmd         },
    {"BATT LEVEL",          actSetBattLevelCmd      },
    {"",                    NULL                    }
};

const CmdStruct cmdsClr[] =
{
    {"STUB",                actClrStubCmd           },
    {"",                    NULL                    }
};

