host/trxcon/trx_if.c: add ECHO command
This command should be used to check transceiver availability. Change-Id: I6af2d5e413ff7ab751cb34e1659742b0f59b6cca
This commit is contained in:
parent
65664d088d
commit
83a9c9ef50
|
@ -239,6 +239,10 @@ static int trx_ctrl_cmd(struct trx_instance *trx, int critical,
|
|||
/*
|
||||
* Power Control
|
||||
*
|
||||
* ECHO is used to check transceiver availability.
|
||||
* CMD ECHO
|
||||
* RSP ECHO <status>
|
||||
*
|
||||
* POWEROFF shuts off transmitter power and stops the demodulator.
|
||||
* CMD POWEROFF
|
||||
* RSP POWEROFF <status>
|
||||
|
@ -253,6 +257,11 @@ static int trx_ctrl_cmd(struct trx_instance *trx, int critical,
|
|||
* RSP POWERON <status>
|
||||
*/
|
||||
|
||||
int trx_if_cmd_echo(struct trx_instance *trx)
|
||||
{
|
||||
return trx_ctrl_cmd(trx, 1, "ECHO", "");
|
||||
}
|
||||
|
||||
int trx_if_cmd_poweroff(struct trx_instance *trx)
|
||||
{
|
||||
return trx_ctrl_cmd(trx, 1, "POWEROFF", "");
|
||||
|
|
|
@ -25,6 +25,7 @@ void trx_if_close(struct trx_instance *trx);
|
|||
|
||||
int trx_if_cmd_poweron(struct trx_instance *trx);
|
||||
int trx_if_cmd_poweroff(struct trx_instance *trx);
|
||||
int trx_if_cmd_echo(struct trx_instance *trx);
|
||||
|
||||
int trx_if_cmd_setpower(struct trx_instance *trx, int db);
|
||||
int trx_if_cmd_adjpower(struct trx_instance *trx, int db);
|
||||
|
|
Loading…
Reference in New Issue