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

source

pub fn variant(&self) -> DIRECTION_A

Get enumerated values variant

source

pub fn is_host_to_device(&self) -> bool

Checks if the value of the field is HOST_TO_DEVICE

source

pub fn is_device_to_host(&self) -> bool

Checks if the value of the field is DEVICE_TO_HOST