pub enum ESOFR {
NotExpectedStartOfFrame = 0,
ExpectedStartOfFrame = 1,
}
Expand description
Expected start of frame Device mode This bit is set by the hardware when an SOF packet is expected but not received. The host sends an SOF packet each 1ms, but if the device does not receive it properly, the suspend timer issues this interrupt. If three consecutive ESOF interrupts are generated (for example three SOF packets are lost) without any traffic occurring in between, a SUSP interrupt is generated. This bit is set even when the missing SOF packets occur while the suspend timer is not yet locked. This bit is read/write but only 0 can be written and writing 1 has no effect.
Value on reset: 0
Variants§
NotExpectedStartOfFrame = 0
0: NotExpectedStartOfFrame
ExpectedStartOfFrame = 1
1: An SOF packet is expected but not received
Trait Implementations§
impl Copy for ESOFR
impl Eq for ESOFR
impl StructuralPartialEq for ESOFR
Auto Trait Implementations§
impl Freeze for ESOFR
impl RefUnwindSafe for ESOFR
impl Send for ESOFR
impl Sync for ESOFR
impl Unpin for ESOFR
impl UnwindSafe for ESOFR
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