/****************************************************************************/
/* 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               },
    /* debug command(s) below */                
    {"HELLO KITTY",     actHelloKittyCmd        },
    {"",                NULL                    }
};                                              
                                                
const CmdStruct cmdsGet[] =                     
{                                               
    {"DIN",             actGetDinCmd            },
    {"DOUT",            actGetDoutCmd           },
    {"TIME",		actGetTimeCmd		},
    {"RELAY",           actGetRelayStateCmd     },
    {"SER1",            actGetSerial1Cmd        },
    {"SER2",            actGetSerial2Cmd        },
    {"",                NULL                    }
};

const CmdStruct cmdsSet[] =
{
    {"DOUT",            actSetDoutCmd           },
    {"TIME",		actSetTimeCmd		},
    {"RELAYON",         actSetRelayOnCmd        },
    {"RELAYOFF",        actSetRelayOffCmd       },
    {"SER1",            actSetSerial1Cmd        },
    {"SER2",            actSetSerial2Cmd        },
    {"",                NULL                    }
};

const CmdStruct cmdsClr[] =
{
    {"DOUT",            actClrDoutCmd           },
    {"",                NULL                    }
};

