pub struct SLVSTATE_R(_);
Expand description
Field SLVSTATE
reader - 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.
Implementations
sourceimpl SLVSTATE_R
impl SLVSTATE_R
sourcepub fn variant(&self) -> Option<SLVSTATE_A>
pub fn variant(&self) -> Option<SLVSTATE_A>
Get enumerated values variant
sourcepub fn is_slave_address(&self) -> bool
pub fn is_slave_address(&self) -> bool
Checks if the value of the field is SLAVE_ADDRESS
sourcepub fn is_slave_receive(&self) -> bool
pub fn is_slave_receive(&self) -> bool
Checks if the value of the field is SLAVE_RECEIVE
sourcepub fn is_slave_transmit(&self) -> bool
pub fn is_slave_transmit(&self) -> bool
Checks if the value of the field is SLAVE_TRANSMIT
Methods from Deref<Target = FieldReader<u8, SLVSTATE_A>>
sourcepub fn bit_is_clear(&self) -> bool
pub fn bit_is_clear(&self) -> bool
Returns true
if the bit is clear (0).
sourcepub fn bit_is_set(&self) -> bool
pub fn bit_is_set(&self) -> bool
Returns true
if the bit is set (1).
Trait Implementations
sourceimpl Deref for SLVSTATE_R
impl Deref for SLVSTATE_R
type Target = FieldReader<u8, SLVSTATE_A>
type Target = FieldReader<u8, SLVSTATE_A>
The resulting type after dereferencing.
Auto Trait Implementations
impl RefUnwindSafe for SLVSTATE_R
impl Send for SLVSTATE_R
impl Sync for SLVSTATE_R
impl Unpin for SLVSTATE_R
impl UnwindSafe for SLVSTATE_R
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