#[repr(u8)]pub enum P1statWrstat {
WRSTAT0 = 0,
WRSTAT1 = 1,
WRSTAT2 = 2,
WRSTAT3 = 3,
}Variants§
WRSTAT0 = 0
Endpoint: Empty. Index-and-data: Empty. Mailbox: Empty. Master/flash: Not last request.
WRSTAT1 = 1
Endpoint: data waiting from host. Index-and-data: data waiting from host (index may have been written before). Mailbox: Started (by host). Master/flash: last request from-host/read-flash (writes to MCU). SAF: Request from master was or is Flash Read.
WRSTAT2 = 2
Endpoint: Empty, but last was CMD. Index-and-data: wrote index. Mailbox: complete/last (host to end). Master/flash: last request to-host/write-flash (read from MCU). SAF: Request from Master was or is Flash Write.
WRSTAT3 = 3
Endpoint: CMD waiting from host. Index-and-data: Wrote Data then Index. Mailbox: Partially read (by MCU). Flash: Last Requested Erase. SAF: Request from Master was or is Flash Erase.
Implementations§
Source§impl P1statWrstat
impl P1statWrstat
Trait Implementations§
Source§impl Clone for P1statWrstat
impl Clone for P1statWrstat
Source§fn clone(&self) -> P1statWrstat
fn clone(&self) -> P1statWrstat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for P1statWrstat
impl Debug for P1statWrstat
Source§impl From<P1statWrstat> for u8
impl From<P1statWrstat> for u8
Source§fn from(val: P1statWrstat) -> u8
fn from(val: P1statWrstat) -> u8
Converts to this type from the input type.
Source§impl From<u8> for P1statWrstat
impl From<u8> for P1statWrstat
Source§fn from(val: u8) -> P1statWrstat
fn from(val: u8) -> P1statWrstat
Converts to this type from the input type.
Source§impl Ord for P1statWrstat
impl Ord for P1statWrstat
Source§fn cmp(&self, other: &P1statWrstat) -> Ordering
fn cmp(&self, other: &P1statWrstat) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for P1statWrstat
impl PartialEq for P1statWrstat
Source§impl PartialOrd for P1statWrstat
impl PartialOrd for P1statWrstat
impl Copy for P1statWrstat
impl Eq for P1statWrstat
impl StructuralPartialEq for P1statWrstat
Auto Trait Implementations§
impl Freeze for P1statWrstat
impl RefUnwindSafe for P1statWrstat
impl Send for P1statWrstat
impl Sync for P1statWrstat
impl Unpin for P1statWrstat
impl UnwindSafe for P1statWrstat
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