pub struct MSTSTATE_R(_);
Expand description
Field MSTSTATE
reader - Master State code. The master state code reflects the master state when the MSTPENDING bit is set, that is the master is pending or in the idle state. Each value of this field indicates a specific required service for the Master function. All other values are reserved. See Table 400 for details of state values and appropriate responses.
Implementations
sourceimpl MSTSTATE_R
impl MSTSTATE_R
sourcepub fn variant(&self) -> Option<MSTSTATE_A>
pub fn variant(&self) -> Option<MSTSTATE_A>
Get enumerated values variant
sourcepub fn is_receive_ready(&self) -> bool
pub fn is_receive_ready(&self) -> bool
Checks if the value of the field is RECEIVE_READY
sourcepub fn is_transmit_ready(&self) -> bool
pub fn is_transmit_ready(&self) -> bool
Checks if the value of the field is TRANSMIT_READY
sourcepub fn is_nack_address(&self) -> bool
pub fn is_nack_address(&self) -> bool
Checks if the value of the field is NACK_ADDRESS
sourcepub fn is_nack_data(&self) -> bool
pub fn is_nack_data(&self) -> bool
Checks if the value of the field is NACK_DATA
Methods from Deref<Target = FieldReader<u8, MSTSTATE_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 MSTSTATE_R
impl Deref for MSTSTATE_R
type Target = FieldReader<u8, MSTSTATE_A>
type Target = FieldReader<u8, MSTSTATE_A>
The resulting type after dereferencing.
Auto Trait Implementations
impl RefUnwindSafe for MSTSTATE_R
impl Send for MSTSTATE_R
impl Sync for MSTSTATE_R
impl Unpin for MSTSTATE_R
impl UnwindSafe for MSTSTATE_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