Added getRSSIInst command for SX126x
This commit is contained in:
parent
6061145ae6
commit
0b835f9fcf
2 changed files with 14 additions and 0 deletions
|
@ -1130,6 +1130,13 @@ uint32_t SX126x::getTimeOnAir(size_t len) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8_t SX126x::getRSSIInst() {
|
||||||
|
uint8_t data[3] = {0, 0, 0}; // RssiInst, Status, RFU
|
||||||
|
SPIreadCommand(SX126X_CMD_GET_RSSI_INST, data, 3);
|
||||||
|
|
||||||
|
return data[0];
|
||||||
|
}
|
||||||
|
|
||||||
int16_t SX126x::implicitHeader(size_t len) {
|
int16_t SX126x::implicitHeader(size_t len) {
|
||||||
return(setHeaderType(SX126X_LORA_HEADER_IMPLICIT, len));
|
return(setHeaderType(SX126X_LORA_HEADER_IMPLICIT, len));
|
||||||
}
|
}
|
||||||
|
|
|
@ -806,6 +806,13 @@ class SX126x: public PhysicalLayer {
|
||||||
*/
|
*/
|
||||||
uint32_t getTimeOnAir(size_t len);
|
uint32_t getTimeOnAir(size_t len);
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\brief Get instantaneous RSSI value in FSK mode. Can be used for LBT implementation, checking for interference before transmitting.
|
||||||
|
|
||||||
|
\returns Instantaneous RSSI value in (-2)*dBm
|
||||||
|
*/
|
||||||
|
uint8_t getRSSIInst();
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Set implicit header mode for future reception/transmission.
|
\brief Set implicit header mode for future reception/transmission.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue