Trait radio::Rssi

source ·
pub trait Rssi {
    type Error: Debug;

    // Required method
    fn poll_rssi(&mut self) -> Result<i16, Self::Error>;
}
Expand description

Rssi trait allows polling for RSSI on the current channel

Note that the radio should be in receive mode prior to polling for this.

Required Associated Types§

source

type Error: Debug

Radio error

Required Methods§

source

fn poll_rssi(&mut self) -> Result<i16, Self::Error>

Fetch the current RSSI value from the radio Note that the radio MUST be in RX mode (or capable of measuring RSSI) when this is called or an error should be returned

Implementors§

source§

impl<St, Reg, Ch, Inf, Irq, E> Rssi for Radio<St, Reg, Ch, Inf, Irq, E>
where St: PartialEq + Debug + Clone, Reg: PartialEq + Debug + Clone, Ch: PartialEq + Debug + Clone, Inf: PartialEq + Debug + Clone, Irq: PartialEq + Debug + Clone, E: PartialEq + Debug + Clone,

§

type Error = E