pub enum NACKW {
Nack = 1,
}
Expand description
NACK generation (slave mode) The bit is set by software, cleared by hardware when the NACK is sent, or when a STOP condition or an Address matched is received, or when PE=0. Note: Writing ‘0’ to this bit has no effect. This bit is used in slave mode only: in master receiver mode, NACK is automatically generated after last byte preceding STOP or RESTART condition, whatever the NACK bit value. When an overrun occurs in slave receiver NOSTRETCH mode, a NACK is automatically generated whatever the NACK bit value. When hardware PEC checking is enabled (PECBYTE=1), the PEC acknowledge value does not depend on the NACK value.
Value on reset: 0
Variants§
Nack = 1
1: a NACK is sent after current received byte
Trait Implementations§
impl Copy for NACKW
impl Eq for NACKW
impl StructuralPartialEq for NACKW
Auto Trait Implementations§
impl Freeze for NACKW
impl RefUnwindSafe for NACKW
impl Send for NACKW
impl Sync for NACKW
impl Unpin for NACKW
impl UnwindSafe for NACKW
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