[nRF24] Added data shaping and encoding dummy methods
This commit is contained in:
parent
76dd718146
commit
13d7f9364c
2 changed files with 32 additions and 0 deletions
|
@ -473,6 +473,20 @@ int16_t nRF24::setAutoAck(uint8_t pipeNum, bool autoAckOn){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int16_t nRF24::setDataShaping(float sh) {
|
||||||
|
// nRF24 is unable to set data shaping
|
||||||
|
// this method is implemented only for PhysicalLayer compatibility
|
||||||
|
(void)sh;
|
||||||
|
return(ERR_NONE);
|
||||||
|
}
|
||||||
|
|
||||||
|
int16_t nRF24::setEncoding(uint8_t encoding) {
|
||||||
|
// nRF24 is unable to set encoding
|
||||||
|
// this method is implemented only for PhysicalLayer compatibility
|
||||||
|
(void)encoding;
|
||||||
|
return(ERR_NONE);
|
||||||
|
}
|
||||||
|
|
||||||
void nRF24::clearIRQ() {
|
void nRF24::clearIRQ() {
|
||||||
// clear status bits
|
// clear status bits
|
||||||
_mod->SPIsetRegValue(NRF24_REG_STATUS, NRF24_RX_DR | NRF24_TX_DS | NRF24_MAX_RT, 6, 4);
|
_mod->SPIsetRegValue(NRF24_REG_STATUS, NRF24_RX_DR | NRF24_TX_DS | NRF24_MAX_RT, 6, 4);
|
||||||
|
|
|
@ -440,6 +440,24 @@ class nRF24: public PhysicalLayer {
|
||||||
*/
|
*/
|
||||||
int16_t setAutoAck(uint8_t pipeNum, bool autoAckOn = true);
|
int16_t setAutoAck(uint8_t pipeNum, bool autoAckOn = true);
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\brief Dummy data shaping configuration method, to ensure PhysicalLayer compatibility.
|
||||||
|
|
||||||
|
\param sh Ignored.
|
||||||
|
|
||||||
|
\returns \ref status_codes
|
||||||
|
*/
|
||||||
|
int16_t setDataShaping(float sh);
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\brief Dummy encoding configuration method, to ensure PhysicalLayer compatibility.
|
||||||
|
|
||||||
|
\param sh Ignored.
|
||||||
|
|
||||||
|
\returns \ref status_codes
|
||||||
|
*/
|
||||||
|
int16_t setEncoding(uint8_t encoding);
|
||||||
|
|
||||||
#ifndef RADIOLIB_GODMODE
|
#ifndef RADIOLIB_GODMODE
|
||||||
private:
|
private:
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue