Type Definition atsam4lc8c_pac::usbc::usbfsm::DRDSTATE_R

source ·
pub type DRDSTATE_R = FieldReader<u8, DRDSTATESELECT_A>;
Expand description

Field DRDSTATE reader - DualRoleDevice state

Implementations§

source§

impl DRDSTATE_R

source

pub fn variant(&self) -> DRDSTATESELECT_A

Get enumerated values variant

source

pub fn is_a_idle(&self) -> bool

Checks if the value of the field is A_IDLE

source

pub fn is_a_wait_vrise(&self) -> bool

Checks if the value of the field is A_WAIT_VRISE

source

pub fn is_a_wait_bcon(&self) -> bool

Checks if the value of the field is A_WAIT_BCON

source

pub fn is_a_host(&self) -> bool

Checks if the value of the field is A_HOST

source

pub fn is_a_suspend(&self) -> bool

Checks if the value of the field is A_SUSPEND

source

pub fn is_a_peripheral(&self) -> bool

Checks if the value of the field is A_PERIPHERAL

source

pub fn is_a_wait_vfall(&self) -> bool

Checks if the value of the field is A_WAIT_VFALL

source

pub fn is_a_vbus_err(&self) -> bool

Checks if the value of the field is A_VBUS_ERR

source

pub fn is_a_wait_discharge(&self) -> bool

Checks if the value of the field is A_WAIT_DISCHARGE

source

pub fn is_b_idle(&self) -> bool

Checks if the value of the field is B_IDLE

source

pub fn is_b_peripheral(&self) -> bool

Checks if the value of the field is B_PERIPHERAL

source

pub fn is_b_wait_begin_hnp(&self) -> bool

Checks if the value of the field is B_WAIT_BEGIN_HNP

source

pub fn is_b_wait_discharge(&self) -> bool

Checks if the value of the field is B_WAIT_DISCHARGE

source

pub fn is_b_wait_acon(&self) -> bool

Checks if the value of the field is B_WAIT_ACON

source

pub fn is_b_host(&self) -> bool

Checks if the value of the field is B_HOST

source

pub fn is_b_srp_init(&self) -> bool

Checks if the value of the field is B_SRP_INIT