Struct rubble::phy::AdvertisingChannel [−][src]
pub struct AdvertisingChannel(u8);
Expand description
One of the three advertising channels (channel indices 37, 38 or 39).
Tuple Fields
0: u8
Implementations
Returns an iterator that yields all 3 advertising channels in ascending order.
Returns the next advertising channel, or the first one if self
is the last channel.
Returns the channel index.
Channels 37, 38 and 39 are used for advertising.
Returns the physical RF channel corresponding to this advertising channel index.
RF channels 0, 12 and 39 are used for advertising.
Calculates the initial value of the LFSR to use for data whitening.
The value is a 7-bit value. The MSb will always be 0, and the 2nd MSb always 1 (Position 0). The LSb contains Position 6. Refer to the specification for details about the bit positions.
The polynomial is always x^7 + x^4 + 1
.
Whitening is applied to PDU and CRC.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AdvertisingChannel
impl Send for AdvertisingChannel
impl Sync for AdvertisingChannel
impl Unpin for AdvertisingChannel
impl UnwindSafe for AdvertisingChannel
Blanket Implementations
Mutably borrows from an owned value. Read more