Skip to main content

eirp_dbm

Function eirp_dbm 

Source
pub const fn eirp_dbm(code: u8) -> Option<u8>
Expand description

What a coded transmit power means in dBm.

§Arguments

  • code - the coded value, 0 through 15.

§Returns

The power, or None for a value outside the table.

§Examples

use pamoja_lorawan::mac::eirp_dbm;

assert_eq!(eirp_dbm(5), Some(16));
assert_eq!(eirp_dbm(15), Some(36));
assert_eq!(eirp_dbm(16), None);