[SX126x] Added data encoding method
This commit is contained in:
parent
c06d292bd2
commit
4fa214a0fd
2 changed files with 14 additions and 0 deletions
|
@ -1124,6 +1124,10 @@ int16_t SX126x::setRegulatorDCDC() {
|
||||||
return(setRegulatorMode(SX126X_REGULATOR_DC_DC));
|
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) {
|
int16_t SX126x::setTCXO(float voltage, uint32_t delay) {
|
||||||
// set mode to standby
|
// set mode to standby
|
||||||
standby();
|
standby();
|
||||||
|
|
|
@ -833,6 +833,16 @@ class SX126x: public PhysicalLayer {
|
||||||
\returns \ref status_codes
|
\returns \ref status_codes
|
||||||
*/
|
*/
|
||||||
int16_t setRegulatorDCDC();
|
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
|
#ifndef RADIOLIB_GODMODE
|
||||||
protected:
|
protected:
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue