Type Definition lpc81x_pac::lpc810::usart0::cfg::PARITYSEL_W
source · pub type PARITYSEL_W<'a, const O: u8> = FieldWriter<'a, u32, CFG_SPEC, u8, PARITYSEL_A, 2, O>;
Expand description
Field PARITYSEL
writer - Selects what type of parity is used by the USART.
Implementations§
source§impl<'a, const O: u8> PARITYSEL_W<'a, O>
impl<'a, const O: u8> PARITYSEL_W<'a, O>
sourcepub fn even_parity(self) -> &'a mut W
pub fn even_parity(self) -> &'a mut W
Even parity. Adds a bit to each character such that the number of 1s in a transmitted character is even, and the number of 1s in a received character is expected to be even.
sourcepub fn odd_parity(self) -> &'a mut W
pub fn odd_parity(self) -> &'a mut W
Odd parity. Adds a bit to each character such that the number of 1s in a transmitted character is odd, and the number of 1s in a received character is expected to be odd.