vmod/vmodttl: fixed bug related to luns not ordered and/or not starting from zero.
[ht-drivers.git] / vd80 / test / vd80Test.c
blob5c2c501ad57894f5f8a464e9f12f78fcc8cce079
1 /**
2 * @file vd80Tst.c
4 * @brief
6 * @author
8 * @date Created on 02/03/2009
10 * @version
12 #include <extest.h>
13 #include "vd80Tst.h"
15 int use_builtin_cmds = 1;
16 char xmlfile[128] = "../VD80.xml";
18 /*! @name specific test commands and their description
20 //@{
21 struct cmd_desc user_cmds[] = {
23 { 1, CmdCLK, "clk", "Get/Set clock", "clock", 1, GetSetClk },
24 { 1, CmdCLKDM, "clkdm", "Get/Set clock divide mode", "mode", 1, GetSetClkDivMod },
25 { 1, CmdCLKDV, "clkdv", "Get/Set clock diviser", "value", 1, GetSetClkDiv },
26 { 1, CmdCLKEG, "clkeg", "Get/Set clock edge", "edge", 1, GetSetClkEge },
27 { 1, CmdCLKTM, "clktm", "Get/Set clock termination", "term", 1, GetSetClkTerm },
29 { 1, CmdTRG, "trg", "Get/Set trig", "trig", 1, GetSetTrg },
30 { 1, CmdTRGEG, "trgeg", "Get/Set trig edge", "edge", 1, GetSetTrgEge },
31 { 1, CmdTRGTM, "trgtm", "Get/Set trig termination", "term", 1, GetSetTrgTerm },
33 { 1, CmdSTATE, "state", "Get state", "", 0, GetState },
34 { 1, CmdCMD, "cmd", "Set Command", "cmnd", 1, SetCommand },
35 { 1, CmdADC, "adc", "Get ADC value", "", 0, GetAdc },
36 { 1, CmdSAMP, "smp", "Get Sample", "", 0, GetAdc },
38 { 1, CmdCH, "ch", "Get/Set channel", "chan", 1, GetSetChan },
39 { 1, CmdNCH, "nch", "Next channel", "", 0, NextChan },
41 { 1, CmdRF, "rf", "Read file", "file", 1, ReadFile },
42 { 1, CmdWF, "wf", "Write file", "file", 1, WriteFile },
43 { 1, CmdPLOT, "plt", "Plot", "", 1, PlotSamp },
45 { 1, CmdRSAMP, "rsmp", "Read sample", "", 0, ReadSamp },
46 { 1, CmdPSAMP, "psmp", "Print sample", "", 0, PrintSamp },
48 { 1, CmdPOST, "post", "Get/Set post samples", "samples", 1, GetSetPostSamples },
50 { 0, } /* list termination */
52 //@}
54 int main(int argc, char *argv[], char *envp[])
56 return extest_init(argc, argv);