pub const fn rssi_dbm(byte: u8, port: Port) -> DecibelsExpand description
Decodes RegRssiValue, the signal power the receiver hears right now.
§Arguments
byte- the RegRssiValue byte.port- the port the radio listens on.
§Returns
The RSSI in dBm: the port’s offset plus the register value.
§Examples
use pamoja_radios::sx127x::status::{rssi_dbm, Port};
assert_eq!(rssi_dbm(0x30, Port::High).to_string(), "-109.00");
assert_eq!(rssi_dbm(0x30, Port::Low).to_string(), "-116.00");