#[repr(u8)]
pub enum SLVSTATE_A {
SLAVE_ADDRESS,
SLAVE_RECEIVE,
SLAVE_TRANSMIT,
}
Expand description
Slave State code. Each value of this field indicates a specific required service for the Slave function. All other values are reserved. See Table 401 for state values and actions. note that the occurrence of some states and how they are handled are affected by DMA mode and Automatic Operation modes.
Value on reset: 0
Variants
SLAVE_ADDRESS
0: Slave address. Address plus R/W received. At least one of the four slave addresses has been matched by hardware.
SLAVE_RECEIVE
1: Slave receive. Received data is available (Slave Receiver mode).
SLAVE_TRANSMIT
2: Slave transmit. Data can be transmitted (Slave Transmitter mode).
Trait Implementations
sourceimpl Clone for SLVSTATE_A
impl Clone for SLVSTATE_A
sourcefn clone(&self) -> SLVSTATE_A
fn clone(&self) -> SLVSTATE_A
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SLVSTATE_A
impl Debug for SLVSTATE_A
sourceimpl From<SLVSTATE_A> for u8
impl From<SLVSTATE_A> for u8
sourcefn from(variant: SLVSTATE_A) -> Self
fn from(variant: SLVSTATE_A) -> Self
Performs the conversion.
sourceimpl PartialEq<SLVSTATE_A> for SLVSTATE_A
impl PartialEq<SLVSTATE_A> for SLVSTATE_A
impl Copy for SLVSTATE_A
impl StructuralPartialEq for SLVSTATE_A
Auto Trait Implementations
impl RefUnwindSafe for SLVSTATE_A
impl Send for SLVSTATE_A
impl Sync for SLVSTATE_A
impl Unpin for SLVSTATE_A
impl UnwindSafe for SLVSTATE_A
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more