]>
Commit | Line | Data |
---|---|---|
7fe9b0b7 | 1 | #include "proxusb.h" |
2 | #include "cmdparser.h" | |
3 | #include "cmdhflegic.h" | |
4 | ||
5 | static int CmdHelp(const char *Cmd); | |
6 | ||
7 | int CmdLegicRFRead(const char *Cmd) | |
8 | { | |
9 | UsbCommand c = {CMD_READER_LEGIC_RF}; | |
10 | SendCommand(&c); | |
11 | return 0; | |
12 | } | |
13 | ||
14 | static command_t CommandTable[] = | |
15 | { | |
16 | {"help", CmdHelp, 1, "This help"}, | |
17 | {"reader", CmdLegicRFRead, 0, "Start the LEGIC RF reader"}, | |
18 | {NULL, NULL, 0, NULL} | |
19 | }; | |
20 | ||
21 | int CmdHFLegic(const char *Cmd) | |
22 | { | |
23 | CmdsParse(CommandTable, Cmd); | |
24 | return 0; | |
25 | } | |
26 | ||
27 | int CmdHelp(const char *Cmd) | |
28 | { | |
29 | CmdsHelp(CommandTable); | |
30 | return 0; | |
31 | } |