Type Alias xmc4300::usic0_ch0::ccr::PM_W

source ·
pub type PM_W<'a, REG> = FieldWriter<'a, REG, 2, PM_A>;
Expand description

Field PM writer - Parity Mode

Aliased Type§

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

Implementations§

source§

impl<'a, REG> PM_W<'a, REG>
where REG: Writable + RegisterSpec, REG::Ux: From<u8>,

source

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

The parity generation is disabled.

source

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

Even parity is selected (parity bit = 1 on odd number of 1s in data, parity bit = 0 on even number of 1s in data).

source

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

Odd parity is selected (parity bit = 0 on odd number of 1s in data, parity bit = 1 on even number of 1s in data).