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
Turn the radio off and don’t call LinkLayer::process_*
methods.
LinkLayer::update
must still be called according to Cmd
’s next_update
field.
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.
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
Auto Trait Implementations
impl RefUnwindSafe for RadioCmd
impl UnwindSafe for RadioCmd
Blanket Implementations
Mutably borrows from an owned value. Read more