EsbDataRate

Trait EsbDataRate 

Source
pub trait EsbDataRate: RadioErrorType {
    // Required methods
    fn get_data_rate(&mut self) -> Result<DataRate, Self::Error>;
    fn set_data_rate(&mut self, data_rate: DataRate) -> Result<(), Self::Error>;
}
Expand description

A trait to represent manipulation of the Data Rate for an ESB capable transceiver.

Required Methods§

Source

fn get_data_rate(&mut self) -> Result<DataRate, Self::Error>

Get the currently configured Data Rate

Source

fn set_data_rate(&mut self, data_rate: DataRate) -> Result<(), Self::Error>

Set the radio’s Data Rate

Implementors§

Source§

impl<SPI, DO, DELAY> EsbDataRate for RF24<SPI, DO, DELAY>
where SPI: SpiDevice, DO: OutputPin, DELAY: DelayNs,