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