[nRF24] Added PHY startReceive (#700)
This commit is contained in:
parent
87c1d04b42
commit
a534f490b1
2 changed files with 23 additions and 0 deletions
|
@ -232,6 +232,14 @@ int16_t nRF24::startReceive() {
|
||||||
return(state);
|
return(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int16_t nRF24::startReceive(uint32_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len) {
|
||||||
|
(void)timeout;
|
||||||
|
(void)irqFlags;
|
||||||
|
(void)irqMask;
|
||||||
|
(void)len;
|
||||||
|
return(startReceive());
|
||||||
|
}
|
||||||
|
|
||||||
int16_t nRF24::readData(uint8_t* data, size_t len) {
|
int16_t nRF24::readData(uint8_t* data, size_t len) {
|
||||||
// set mode to standby
|
// set mode to standby
|
||||||
int16_t state = standby();
|
int16_t state = standby();
|
||||||
|
|
|
@ -323,6 +323,21 @@ class nRF24: public PhysicalLayer {
|
||||||
*/
|
*/
|
||||||
int16_t startReceive();
|
int16_t startReceive();
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\brief Interrupt-driven receive method, implemented for compatibility with PhysicalLayer.
|
||||||
|
|
||||||
|
\param timeout Ignored.
|
||||||
|
|
||||||
|
\param irqFlags Ignored.
|
||||||
|
|
||||||
|
\param irqMask Ignored.
|
||||||
|
|
||||||
|
\param len Ignored.
|
||||||
|
|
||||||
|
\returns \ref status_codes
|
||||||
|
*/
|
||||||
|
int16_t startReceive(uint32_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Reads data received after calling startReceive method.
|
\brief Reads data received after calling startReceive method.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue