Trait radio::Channel

source ·
pub trait Channel {
    type Channel: Debug;
    type Error: Debug;

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

Channel trait for configuring radio channelization

Required Associated Types§

source

type Channel: Debug

Channel information

source

type Error: Debug

Radio error type

Required Methods§

source

fn set_channel(&mut self, channel: &Self::Channel) -> Result<(), Self::Error>

Set the radio channel for future transmit and receive operations

Implementors§

source§

impl<St, Reg, Ch, Inf, Irq, E> Channel 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 Channel = Ch

§

type Error = E