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

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

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.

timeout: bool

Flag to indicate if the last connection event timed out.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.