Type Alias nrf52840_pac::usbd::bmrequesttype::DIRECTION_R
source · pub type DIRECTION_R = BitReader<DIRECTION_A>;
Expand description
Field DIRECTION
reader - Data transfer direction
Aliased Type§
struct DIRECTION_R { /* private fields */ }
Implementations§
source§impl DIRECTION_R
impl DIRECTION_R
sourcepub fn variant(&self) -> DIRECTION_A
pub fn variant(&self) -> DIRECTION_A
Get enumerated values variant
sourcepub fn is_host_to_device(&self) -> bool
pub fn is_host_to_device(&self) -> bool
Checks if the value of the field is HOST_TO_DEVICE
sourcepub fn is_device_to_host(&self) -> bool
pub fn is_device_to_host(&self) -> bool
Checks if the value of the field is DEVICE_TO_HOST