Enum serial_embedded_hal::Parity[]

pub enum Parity {
    ParityNone,
    ParityOdd,
    ParityEven,
}

Parity checking modes.

When parity checking is enabled (ParityOdd or ParityEven) an extra bit is transmitted with each character. The value of the parity bit is arranged so that the number of 1 bits in the character (including the parity bit) is an even number (ParityEven) or an odd number (ParityOdd).

Parity checking is disabled by setting ParityNone, in which case parity bits are not transmitted.

Variants

No parity bit.

Parity bit sets odd number of 1 bits.

Parity bit sets even number of 1 bits.

Trait Implementations

impl Clone for Parity

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Parity

Formats the value using the given formatter. Read more

impl Copy for Parity

impl Eq for Parity

impl PartialEq<Parity> for Parity

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Parity

impl Sync for Parity