Function pamoja_sx127x_packet_status_from_bytes
Source #[unsafe(no_mangle)]
pub extern "C" fn pamoja_sx127x_packet_status_from_bytes(
pkt_snr: u8,
pkt_rssi: u8,
frequency_hz: u32,
) -> PamojaSx127xPacketStatus
Expand description
Decodes RegPktSnrValue and RegPktRssiValue.
§Arguments
pkt_snr - the RegPktSnrValue byte.
pkt_rssi - the RegPktRssiValue byte.
frequency_hz - the carrier the packet was received on, which picks the RF port’s
offset.
§Returns
The three levels in hundredths of a decibel.