X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fchips%2Fcc2420_tkn154%2FCC2420Power.nc;h=403bfb0bc386fb0afabdc22d39aec36f993871ec;hp=a213f31d5d7a1c938a7122360ff7c05687d14d79;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 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(); }