[Si443x] Added PHY startReceive (#700)
This commit is contained in:
parent
b108686a0f
commit
1d92f1d786
2 changed files with 23 additions and 0 deletions
|
@ -287,6 +287,14 @@ int16_t Si443x::startReceive() {
|
|||
return(state);
|
||||
}
|
||||
|
||||
int16_t Si443x::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 Si443x::readData(uint8_t* data, size_t len) {
|
||||
// clear interrupt flags
|
||||
clearIRQFlags();
|
||||
|
|
|
@ -706,6 +706,21 @@ class Si443x: 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 that was received after calling startReceive method. This method reads len characters.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue