Enum rppal::uart::ParityCheck [−][src]
pub enum ParityCheck {
None,
Strip,
Replace,
Mark,
}
Expand description
Parity check modes.
The parity check mode determines how parity errors are handled.
Variants
Ignores parity errors.
Removes bytes with parity errors from the input queue.
Replaces bytes with parity errors with a 0
byte.
Marks bytes with parity errors with a preceding 255
and 0
byte.
Actual 255
bytes are replaced with two 255
bytes to avoid confusion
with parity errors.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ParityCheck
impl Send for ParityCheck
impl Sync for ParityCheck
impl Unpin for ParityCheck
impl UnwindSafe for ParityCheck
Blanket Implementations
Mutably borrows from an owned value. Read more