#[repr(transparent)]pub struct Istat(pub u8);Expand description
Interrupt Status.
Tuple Fields§
§0: u8Implementations§
Source§impl Istat
impl Istat
Sourcepub const fn usbrst(&self) -> bool
pub const fn usbrst(&self) -> bool
USB Reset Flag. Raw bit values: false (0) = IntNo: Not detected.; true (1) = IntYes: Detected.
Sourcepub const fn set_usbrst(&mut self, val: bool)
pub const fn set_usbrst(&mut self, val: bool)
USB Reset Flag. Raw bit values: false (0) = IntNo: Not detected.; true (1) = IntYes: Detected.
Sourcepub const fn error(&self) -> bool
pub const fn error(&self) -> bool
Error Flag. Raw bit values: false (0) = IntNo: Error did not occur.; true (1) = IntYes: Error occurred.
Sourcepub const fn set_error(&mut self, val: bool)
pub const fn set_error(&mut self, val: bool)
Error Flag. Raw bit values: false (0) = IntNo: Error did not occur.; true (1) = IntYes: Error occurred.
Sourcepub const fn softok(&self) -> bool
pub const fn softok(&self) -> bool
Start Of Frame (SOF) Token Flag. Raw bit values: false (0) = IntNo: Did not receive.; true (1) = IntYes: Received.
Sourcepub const fn set_softok(&mut self, val: bool)
pub const fn set_softok(&mut self, val: bool)
Start Of Frame (SOF) Token Flag. Raw bit values: false (0) = IntNo: Did not receive.; true (1) = IntYes: Received.
Sourcepub const fn tokdne(&self) -> bool
pub const fn tokdne(&self) -> bool
Current Token Processing Flag. Raw bit values: false (0) = IntNo: Not processed.; true (1) = IntYes: Processed.
Sourcepub const fn set_tokdne(&mut self, val: bool)
pub const fn set_tokdne(&mut self, val: bool)
Current Token Processing Flag. Raw bit values: false (0) = IntNo: Not processed.; true (1) = IntYes: Processed.
Sourcepub const fn sleep(&self) -> bool
pub const fn sleep(&self) -> bool
Sleep Flag. Raw bit values: false (0) = IntNo: Interrupt did not occur.; true (1) = IntYes: Interrupt occurred.
Sourcepub const fn set_sleep(&mut self, val: bool)
pub const fn set_sleep(&mut self, val: bool)
Sleep Flag. Raw bit values: false (0) = IntNo: Interrupt did not occur.; true (1) = IntYes: Interrupt occurred.
Sourcepub const fn resume(&self) -> bool
pub const fn resume(&self) -> bool
Resume Flag. Raw bit values: false (0) = IntNo: Interrupt did not occur.; true (1) = IntYes: Interrupt occurred.
Sourcepub const fn set_resume(&mut self, val: bool)
pub const fn set_resume(&mut self, val: bool)
Resume Flag. Raw bit values: false (0) = IntNo: Interrupt did not occur.; true (1) = IntYes: Interrupt occurred.
Sourcepub const fn attach(&self) -> bool
pub const fn attach(&self) -> bool
Attach Interrupt Flag. Raw bit values: false (0) = IntNo: Not detected.; true (1) = IntYes: Detected.
Sourcepub const fn set_attach(&mut self, val: bool)
pub const fn set_attach(&mut self, val: bool)
Attach Interrupt Flag. Raw bit values: false (0) = IntNo: Not detected.; true (1) = IntYes: Detected.