Enum stm32f4xx_hal::serial::config::Parity
source · 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 addition 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§
source§impl PartialEq for Parity
impl PartialEq for Parity
impl Copy for Parity
impl Eq for Parity
impl StructuralEq 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more