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 the first (lowest-numbered) advertising channel.

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.

Returns the center frequency of this channel in MHz.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Writes the defmt representation of self to fmt.

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.