SmpR

Type Alias SmpR 

pub type SmpR = BitReader<Smp>;
Expand description

Field SMP reader - CAN Bit Sampling

Aliased Type§

pub struct SmpR { /* private fields */ }

Implementations§

§

impl SmpR

pub const fn variant(&self) -> Smp

Get enumerated values variant

pub fn is_0(&self) -> bool

Just one sample is used to determine the bit value.

pub fn is_1(&self) -> bool

Three samples are used to determine the value of the received bit: the regular one (sample point) and 2 preceding samples; a majority rule is used.