[nRF24] Added data shaping and encoding dummy methods

pull/113/head
jgromes 2020-02-11 14:28:23 +01:00
rodzic 76dd718146
commit 13d7f9364c
2 zmienionych plików z 32 dodań i 0 usunięć

Wyświetl plik

@ -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() {
// clear status bits
_mod->SPIsetRegValue(NRF24_REG_STATUS, NRF24_RX_DR | NRF24_TX_DS | NRF24_MAX_RT, 6, 4);

Wyświetl plik

@ -440,6 +440,24 @@ class nRF24: public PhysicalLayer {
*/
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
private:
#endif