FreeCalypso > hg > freecalypso-tools
comparison rvinterf/tmsh/l1cmd.c @ 131:cae9cb333c2c
fc-tmsh: me command implemented
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Sun, 19 Feb 2017 17:19:34 +0000 |
| parents | d3e2b619ff89 |
| children | 92c982f67247 |
comparison
equal
deleted
inserted
replaced
| 130:d3e2b619ff89 | 131:cae9cb333c2c |
|---|---|
| 566 cmdpkt[2] = index; | 566 cmdpkt[2] = index; |
| 567 cmdpkt[3] = index >> 8; | 567 cmdpkt[3] = index >> 8; |
| 568 send_etm_cmd(cmdpkt, 3); | 568 send_etm_cmd(cmdpkt, 3); |
| 569 return(0); | 569 return(0); |
| 570 } | 570 } |
| 571 | |
| 572 static struct kwtab me_arg[] = { | |
| 573 {"mkdirs", CFG_WRITE_MKDIRS}, | |
| 574 {"save-rf-cal", CFG_WRITE_RF_CAL}, | |
| 575 {"save-rf-cfg", CFG_WRITE_RF_CFG}, | |
| 576 {"save-tx-cal", CFG_WRITE_TX_CAL}, | |
| 577 {"save-tx-cfg", CFG_WRITE_TX_CFG}, | |
| 578 {"save-rx-cal", CFG_WRITE_RX_CAL}, | |
| 579 {"save-rx-cfg", CFG_WRITE_RX_CFG}, | |
| 580 {"save-sys-cal", CFG_WRITE_SYS_CAL}, | |
| 581 {"save-sys-cfg", CFG_WRITE_SYS_CFG}, | |
| 582 {0, 0} | |
| 583 }; | |
| 584 | |
| 585 cmd_me(argc, argv) | |
| 586 char **argv; | |
| 587 { | |
| 588 u16 arg; | |
| 589 u_char cmdpkt[5]; | |
| 590 | |
| 591 if (keyword_or_num(argv[1], me_arg, &arg)) | |
| 592 return(ERROR_USAGE); | |
| 593 cmdpkt[1] = MISC_ENABLE; | |
| 594 cmdpkt[2] = arg; | |
| 595 cmdpkt[3] = arg >> 8; | |
| 596 send_etm_cmd(cmdpkt, 3); | |
| 597 return(0); | |
| 598 } |
