X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fcc2420_tkn154%2FCC2420Power.nc;h=9d62b049fc6b1a9208e317b7e8b80923d9c00319;hb=82c215ff867ea7ef4fa748fb72b686c32ffb25e1;hp=a213f31d5d7a1c938a7122360ff7c05687d14d79;hpb=afb6da3df34fdebb6843598761ef4de5eb0186f6;p=tinyos-2.x.git diff --git a/tos/chips/cc2420_tkn154/CC2420Power.nc b/tos/chips/cc2420_tkn154/CC2420Power.nc index a213f31d..9d62b049 100644 --- a/tos/chips/cc2420_tkn154/CC2420Power.nc +++ b/tos/chips/cc2420_tkn154/CC2420Power.nc @@ -102,4 +102,12 @@ interface CC2420Power { * @return SUCCESS if RSSI was read successfulyy, 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(); }