pub enum Port {
High,
Low,
}Expand description
The RF port a frequency is received on, which sets the RSSI offset.
Variants§
High
The high frequency port, RFI_HF, for bands above MID_BAND_HZ such as 868 and
915 MHz.
Low
The low frequency port, RFI_LF, for 433 and 169 MHz.
Implementations§
Source§impl Port
impl Port
Sourcepub const fn for_frequency(frequency_hz: u32) -> Port
pub const fn for_frequency(frequency_hz: u32) -> Port
Returns the port that receives a frequency.
§Arguments
frequency_hz- the carrier frequency in hertz.
§Returns
Port::High above MID_BAND_HZ, else Port::Low.
Sourcepub const fn rssi_offset_dbm(self) -> i32
pub const fn rssi_offset_dbm(self) -> i32
Returns the constant the RSSI registers are added to.
§Returns
-157 dBm on the high frequency port and -164 dBm on the low one.
Trait Implementations§
impl Copy for Port
impl Eq for Port
impl StructuralPartialEq for Port
Auto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnsafeUnpin for Port
impl UnwindSafe for Port
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more