[][src]Enum lpc55_pac::usart0::cfg::PARITYSEL_A

[]
#[repr(u8)]pub enum PARITYSEL_A {
    NO_PARITY,
    EVEN_PARITY,
    ODD_PARITY,
}
[]

Selects what type of parity is used by the USART.

Value on reset: 0

Variants

NO_PARITY
[]

0: No parity.

EVEN_PARITY
[]

2: 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.

ODD_PARITY
[]

3: 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.

Trait Implementations

impl Clone for PARITYSEL_A[src][+]

impl Copy for PARITYSEL_A[src]

impl Debug for PARITYSEL_A[src][+]

impl From<PARITYSEL_A> for u8[src][+]

impl PartialEq<PARITYSEL_A> for PARITYSEL_A[src][+]

impl StructuralPartialEq for PARITYSEL_A[src]

Auto Trait Implementations

impl Send for PARITYSEL_A

impl Sync for PARITYSEL_A

impl Unpin for PARITYSEL_A

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src][+]

impl<T> Borrow<T> for T where
    T: ?Sized
[src][+]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src][+]

impl<T> From<T> for T[src][+]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src][+]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src][+]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src][+]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.