MsbfR

Type Alias MsbfR 

pub type MsbfR = BitReader<Msbf>;
Expand description

Field MSBF reader - MSB First

Aliased Type§

pub struct MsbfR { /* private fields */ }

Implementations§

§

impl MsbfR

pub const fn variant(&self) -> Msbf

Get enumerated values variant

pub fn is_0(&self) -> bool

LSB (bit0) is the first bit that is transmitted following the start bit. Further, the first bit received after the start bit is identified as bit0.

pub fn is_1(&self) -> bool

MSB (bit9, bit8, bit7 or bit6) is the first bit that is transmitted following the start bit depending on the setting of CTRL[M], CTRL[PE] and BAUD[M10]. Further, the first bit received after the start bit is identified as bit9, bit8, bit7 or bit6 depending on the setting of CTRL[M] and CTRL[PE].