X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fmac%2Ftkn154%2Finterfaces%2Fprivate%2FRadioOff.nc;h=1a110723172970dae0c4424213704bb8b6211afc;hb=280de4fedba9a7080138600e623cdadf22bf728a;hp=3405932cf50b0b308e7a5b21a0bfd478c37e3369;hpb=cfc8b8448d14883d4d47e0852797366ef0c13a75;p=tinyos-2.x.git diff --git a/tos/lib/mac/tkn154/interfaces/private/RadioOff.nc b/tos/lib/mac/tkn154/interfaces/private/RadioOff.nc index 3405932c..1a110723 100644 --- a/tos/lib/mac/tkn154/interfaces/private/RadioOff.nc +++ b/tos/lib/mac/tkn154/interfaces/private/RadioOff.nc @@ -35,16 +35,14 @@ interface RadioOff { - /** * Disables the transceiver and changes the radio state to RADIO_OFF. This - * command will succeed only if the current state of the radio is either - * TX_LOADED, RX_PREPARED or RECEIVING. + * command will succeed only if the current state of the radio is RECEIVING. * * @return SUCCESS if the command was accepted and the offDone() - * event will be signalled; EALREADY if radio is already switched off; FAIL - * if the current radio state is neither TX_LOADED, RX_PREPARED nor - * RECEIVING. + * event will be signalled; EALREADY if the radio is already switched off, + * i.e. in state RADIO_OFF; FAIL if the radio was not switched of because + * the current state is not RECEIVING. */ async command error_t off(); @@ -56,6 +54,7 @@ interface RadioOff /** * Tells whether the radio is in state RADIO_OFF. + * * @return TRUE if the radio is in the state RADIO_OFF, FALSE otherwise */ async command bool isOff();