/****************************************************************************/
/* 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               },
    {"READ",            actReadCmd              },
    {"WRITE",           actWriteCmd             },
    {"INTERVAL",        actIntervalCmd          },
    {"SPI",             actSpiCmd               },
    {"RESET",           actResetCmd             },
    /* debug command(s) below */                
    {"HELLO KITTY",     actHelloKittyCmd        },
    {"SLOT RESCAN",     actSlotRescanCmd        },
    {"SEND",            actSendCmd              },
    {"PLATFORM",        actPlatformCmd          },
    {"DUMP CACHE",      actDumpCacheCmd         },
    {"HASH",            actHashCmd              },
    {"",                NULL                    }
};                                              
                                                
const CmdStruct cmdsGet[] =                     
{                                 
    {"SPI MEM",         actGetSpiMemCmd         },              
    {"SLOTS",           actGetSlotsCmd          },
    {"SLOT INFO",       actGetSlotInfoCmd       },
    {"CARD",            actGetCardCmd           },
    /* debug command(s) */                 
    {"TEST",            actGetTestCmd           },
    {"",                NULL                    }
};

const CmdStruct cmdsSet[] =
{
    {"DEBUG1",          actSetDebug1Cmd         },
    {"SLOT",            actSetSlotCmd           },
    {"CARD",            actSetCardCmd           },
    {"",                NULL                    }
};

const CmdStruct cmdsClr[] =
{
    {"STUB",            actClrStubCmd           },
    {"",                NULL                    }
};

