pub enum NACK_A {
Ack,
Nack,
}
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
Ack
0: an ACK is sent after current received byte
Nack
1: a NACK is sent after current received byte
Trait Implementations
impl Copy for NACK_A
impl StructuralPartialEq for NACK_A
Auto Trait Implementations
impl RefUnwindSafe for NACK_A
impl Send for NACK_A
impl Sync for NACK_A
impl Unpin for NACK_A
impl UnwindSafe for NACK_A
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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