X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fcc2420_tkn154%2FCC2420Power.nc;h=403bfb0bc386fb0afabdc22d39aec36f993871ec;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=a213f31d5d7a1c938a7122360ff7c05687d14d79;hpb=951aef87fc91f346a3a2ab34791211f22ba88736;p=tinyos-2.x.git diff --git a/tos/chips/cc2420_tkn154/CC2420Power.nc b/tos/chips/cc2420_tkn154/CC2420Power.nc index a213f31d..403bfb0b 100644 --- a/tos/chips/cc2420_tkn154/CC2420Power.nc +++ b/tos/chips/cc2420_tkn154/CC2420Power.nc @@ -99,7 +99,15 @@ interface CC2420Power { /** * Read RSSI from the radio. - * @return SUCCESS if RSSI was read successfulyy, FAIL otherwise. + * @return SUCCESS if RSSI was read successfully, FAIL otherwise. */ async command error_t rssi(int8_t *rssi); + + /** + * Flush the RXFIFO if it is not empty. + * Radio SHOULD be disabled (off) when calling this command. + * + * @return SUCCESS if fifo was flushed (or it was empty), FAIL otherwise. + */ + async command error_t flushRxFifo(); }