Maniacbug's nRF24L01+ arduino library ported to mbed. Functional with minor issues.
Diff: nRF24L01P_Maniacbug.h
- Revision:
- 3:b13cafed7ee5
- Parent:
- 2:a483f426d380
- Child:
- 4:491267614a10
--- a/nRF24L01P_Maniacbug.h Fri Apr 05 10:18:40 2013 +0000 +++ b/nRF24L01P_Maniacbug.h Thu Apr 25 14:45:45 2013 +0000 @@ -276,19 +276,7 @@ */ uint8_t read_payload(void* buf, uint8_t len); - /** - * Empty the receive buffer - * - * @return Current value of status register - */ - uint8_t flush_rx(void); - /** - * Empty the transmit buffer - * - * @return Current value of status register - */ - uint8_t flush_tx(void); /** * Retrieve the current status of the chip @@ -369,6 +357,20 @@ */ RF24(PinName mosi, PinName miso, PinName sck, PinName _csnpin, PinName _cepin); + + /** + * Empty the receive buffer + * + * @return Current value of status register + */ + uint8_t flush_rx(void); + + /** + * Empty the transmit buffer + * + * @return Current value of status register + */ + uint8_t flush_tx(void); /** * Begin operation of the chip *