FreeCalypso > hg > freecalypso-tools
changeset 124:8e37317f5de0
fc-tmsh: rftr command implemented, rftw command hooked in
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 19 Feb 2017 09:13:59 +0000 |
parents | bc23c1cd30ae |
children | ca4fa5681f08 |
files | rvinterf/tmsh/l1cmd.c rvinterf/tmsh/usercmd.c |
diffstat | 2 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rvinterf/tmsh/l1cmd.c Sun Feb 19 09:07:52 2017 +0000 +++ b/rvinterf/tmsh/l1cmd.c Sun Feb 19 09:13:59 2017 +0000 @@ -331,3 +331,17 @@ send_etm_cmd(cmdpkt, size + 2); return(0); } + +cmd_rftr(argc, argv) + char **argv; +{ + u16 index; + u_char cmdpkt[4]; + + if (keyword_or_num(argv[1], rf_table_arg, &index)) + return(ERROR_USAGE); + cmdpkt[1] = RF_TABLE_READ; + cmdpkt[2] = index; + send_etm_cmd(cmdpkt, 2); + return(0); +}
--- a/rvinterf/tmsh/usercmd.c Sun Feb 19 09:07:52 2017 +0000 +++ b/rvinterf/tmsh/usercmd.c Sun Feb 19 09:13:59 2017 +0000 @@ -26,6 +26,8 @@ extern int cmd_rfe(); extern int cmd_rfpr(); extern int cmd_rfpw(); +extern int cmd_rftr(); +extern int cmd_rftw(); extern int cmd_scr(); extern int cmd_scw(); extern int cmd_sr(); @@ -68,6 +70,8 @@ {"rfe", 1, 1, cmd_rfe}, {"rfpr", 1, 1, cmd_rfpr}, {"rfpw", 2, 3, cmd_rfpw}, + {"rftr", 1, 1, cmd_rftr}, + {"rftw", 2, 3, cmd_rftw}, {"scr", 1, 1, cmd_scr}, {"scw", 2, 2, cmd_scw}, {"sr", 2, 2, cmd_sr},