[CC1101] Added PHY startReceive (#700)
This commit is contained in:
parent
0c15424419
commit
87c1d04b42
2 changed files with 23 additions and 0 deletions
|
@ -357,6 +357,14 @@ int16_t CC1101::startReceive() {
|
|||
return(state);
|
||||
}
|
||||
|
||||
int16_t CC1101::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 CC1101::readData(uint8_t* data, size_t len) {
|
||||
// get packet length
|
||||
size_t length = getPacketLength();
|
||||
|
|
|
@ -695,6 +695,21 @@ class CC1101: public PhysicalLayer {
|
|||
*/
|
||||
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.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue