pub enum Parity {
ParityNone,
ParityEven,
ParityOdd,
}
Expand description
Parity generation and checking. If odd or even parity is selected, the underlying USART will be configured to send/receive the parity bit in addtion to the data bits.
Variants
ParityNone
No parity bit will be added/checked.
ParityEven
The MSB transmitted/received will be generated/checked to have a even number of bits set.
ParityOdd
The MSB transmitted/received will be generated/checked to have a odd number of bits set.
Trait Implementations
impl Copy for Parity
impl StructuralPartialEq for Parity
Auto Trait Implementations
impl RefUnwindSafe for Parity
impl Send for Parity
impl Sync for Parity
impl Unpin for Parity
impl UnwindSafe for Parity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more