[][src]Enum rubble::link::RadioCmd

pub enum RadioCmd {
    Off,
    ListenAdvertising {
        channel: AdvertisingChannel,
    },
    ListenData {
        channel: DataChannel,
        access_address: u32,
        crc_init: u32,
    },
}

Specifies if and how the radio should listen for transmissions.

Returned by the Link-Layer update and processing methods to reconfigure the radio as needed.

Variants

Off

Turn the radio off and don't call LinkLayer::process_* methods.

LinkLayer::update must still be called according to Cmd's next_update field.

ListenAdvertising

Listen on an advertising channel. If a packet is received, pass it to LinkLayer::process_adv_packet.

Fields of ListenAdvertising

channel: AdvertisingChannel

The advertising channel to listen on.

ListenData

Listen on a data channel. If a matching packet is received, pass it to LinkLayer::process_data_packet.

Fields of ListenData

channel: DataChannel

The data channel to listen on.

access_address: u32

The Access Address to listen for.

Packets with a different Access Address must not be passed to the Link-Layer. You may be able to use your Radio's hardware address matching for this.

crc_init: u32

Initialization value of the CRC-24 calculation.

Only the least significant 24 bits are relevant.

Trait Implementations

impl Debug for RadioCmd[src]

impl Clone for RadioCmd[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for RadioCmd

impl Sync for RadioCmd

Blanket Implementations

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]