SmpW

Type Alias SmpW 

pub type SmpW<'a, REG> = BitWriter<'a, REG, Smp>;
Expand description

Field SMP writer - CAN Bit Sampling

Aliased Type§

pub struct SmpW<'a, REG> { /* private fields */ }

Implementations§

§

impl<'a, REG> SmpW<'a, REG>
where REG: Writable + RegisterSpec,

pub fn _0(self) -> &'a mut W<REG>

Just one sample is used to determine the bit value.

pub fn _1(self) -> &'a mut W<REG>

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.