[SX126x] Added data encoding method

pull/113/head
jgromes 2020-02-11 14:29:19 +01:00
rodzic c06d292bd2
commit 4fa214a0fd
2 zmienionych plików z 14 dodań i 0 usunięć

Wyświetl plik

@ -1124,6 +1124,10 @@ int16_t SX126x::setRegulatorDCDC() {
return(setRegulatorMode(SX126X_REGULATOR_DC_DC));
}
int16_t SX126x::setEncoding(uint8_t encoding) {
return(setWhitening(encoding));
}
int16_t SX126x::setTCXO(float voltage, uint32_t delay) {
// set mode to standby
standby();

Wyświetl plik

@ -833,6 +833,16 @@ class SX126x: public PhysicalLayer {
\returns \ref status_codes
*/
int16_t setRegulatorDCDC();
/*!
\brief Sets transmission encoding. Available in FSK mode only. Serves only as alias for PhysicalLayer compatibility.
\param encoding Encoding to be used. Set to 0 for NRZ, and 2 for whitening.
\returns \ref status_codes
*/
int16_t setEncoding(uint8_t encoding);
#ifndef RADIOLIB_GODMODE
protected:
#endif