Struct atsamv71q20::usbhs::usbhs_fsm::DRDSTATE_R
source · [−]pub struct DRDSTATE_R(_);
Expand description
Field DRDSTATE
reader - Dual Role Device State
Implementations
sourceimpl DRDSTATE_R
impl DRDSTATE_R
sourcepub fn variant(&self) -> DRDSTATE_A
pub fn variant(&self) -> DRDSTATE_A
Get enumerated values variant
sourcepub fn is_a_idlestate(&self) -> bool
pub fn is_a_idlestate(&self) -> bool
Checks if the value of the field is A_IDLESTATE
sourcepub fn is_a_wait_vrise(&self) -> bool
pub fn is_a_wait_vrise(&self) -> bool
Checks if the value of the field is A_WAIT_VRISE
sourcepub fn is_a_wait_bcon(&self) -> bool
pub fn is_a_wait_bcon(&self) -> bool
Checks if the value of the field is A_WAIT_BCON
sourcepub fn is_a_suspend(&self) -> bool
pub fn is_a_suspend(&self) -> bool
Checks if the value of the field is A_SUSPEND
sourcepub fn is_a_peripheral(&self) -> bool
pub fn is_a_peripheral(&self) -> bool
Checks if the value of the field is A_PERIPHERAL
sourcepub fn is_a_wait_vfall(&self) -> bool
pub fn is_a_wait_vfall(&self) -> bool
Checks if the value of the field is A_WAIT_VFALL
sourcepub fn is_a_vbus_err(&self) -> bool
pub fn is_a_vbus_err(&self) -> bool
Checks if the value of the field is A_VBUS_ERR
sourcepub fn is_a_wait_discharge(&self) -> bool
pub fn is_a_wait_discharge(&self) -> bool
Checks if the value of the field is A_WAIT_DISCHARGE
sourcepub fn is_b_peripheral(&self) -> bool
pub fn is_b_peripheral(&self) -> bool
Checks if the value of the field is B_PERIPHERAL
sourcepub fn is_b_wait_begin_hnp(&self) -> bool
pub fn is_b_wait_begin_hnp(&self) -> bool
Checks if the value of the field is B_WAIT_BEGIN_HNP
sourcepub fn is_b_wait_discharge(&self) -> bool
pub fn is_b_wait_discharge(&self) -> bool
Checks if the value of the field is B_WAIT_DISCHARGE
sourcepub fn is_b_wait_acon(&self) -> bool
pub fn is_b_wait_acon(&self) -> bool
Checks if the value of the field is B_WAIT_ACON
sourcepub fn is_b_srp_init(&self) -> bool
pub fn is_b_srp_init(&self) -> bool
Checks if the value of the field is B_SRP_INIT
Methods from Deref<Target = FieldReader<u8, DRDSTATE_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 DRDSTATE_R
impl Deref for DRDSTATE_R
type Target = FieldReader<u8, DRDSTATE_A>
type Target = FieldReader<u8, DRDSTATE_A>
The resulting type after dereferencing.
Auto Trait Implementations
impl RefUnwindSafe for DRDSTATE_R
impl Send for DRDSTATE_R
impl Sync for DRDSTATE_R
impl Unpin for DRDSTATE_R
impl UnwindSafe for DRDSTATE_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