#[repr(u8)]pub enum P0statWrstat {
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 P0statWrstat
impl P0statWrstat
Trait Implementations§
Source§impl Clone for P0statWrstat
impl Clone for P0statWrstat
Source§fn clone(&self) -> P0statWrstat
fn clone(&self) -> P0statWrstat
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 P0statWrstat
impl Debug for P0statWrstat
Source§impl From<P0statWrstat> for u8
impl From<P0statWrstat> for u8
Source§fn from(val: P0statWrstat) -> u8
fn from(val: P0statWrstat) -> u8
Converts to this type from the input type.
Source§impl From<u8> for P0statWrstat
impl From<u8> for P0statWrstat
Source§fn from(val: u8) -> P0statWrstat
fn from(val: u8) -> P0statWrstat
Converts to this type from the input type.
Source§impl Ord for P0statWrstat
impl Ord for P0statWrstat
Source§fn cmp(&self, other: &P0statWrstat) -> Ordering
fn cmp(&self, other: &P0statWrstat) -> 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 P0statWrstat
impl PartialEq for P0statWrstat
Source§impl PartialOrd for P0statWrstat
impl PartialOrd for P0statWrstat
impl Copy for P0statWrstat
impl Eq for P0statWrstat
impl StructuralPartialEq for P0statWrstat
Auto Trait Implementations§
impl Freeze for P0statWrstat
impl RefUnwindSafe for P0statWrstat
impl Send for P0statWrstat
impl Sync for P0statWrstat
impl Unpin for P0statWrstat
impl UnwindSafe for P0statWrstat
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