nrf52840_pac::usbd::brequest

Type Alias BREQUEST_R

Source
pub type BREQUEST_R = FieldReader<u8, BREQUEST_A>;
Expand description

Field BREQUEST reader - SETUP data, byte 1, bRequest. Values provided for standard requests only, user must implement class and vendor values.

Aliased Type§

struct BREQUEST_R { /* private fields */ }

Implementations§

Source§

impl BREQUEST_R

Source

pub fn variant(&self) -> Option<BREQUEST_A>

Get enumerated values variant

Source

pub fn is_std_get_status(&self) -> bool

Checks if the value of the field is STD_GET_STATUS

Source

pub fn is_std_clear_feature(&self) -> bool

Checks if the value of the field is STD_CLEAR_FEATURE

Source

pub fn is_std_set_feature(&self) -> bool

Checks if the value of the field is STD_SET_FEATURE

Source

pub fn is_std_set_address(&self) -> bool

Checks if the value of the field is STD_SET_ADDRESS

Source

pub fn is_std_get_descriptor(&self) -> bool

Checks if the value of the field is STD_GET_DESCRIPTOR

Source

pub fn is_std_set_descriptor(&self) -> bool

Checks if the value of the field is STD_SET_DESCRIPTOR

Source

pub fn is_std_get_configuration(&self) -> bool

Checks if the value of the field is STD_GET_CONFIGURATION

Source

pub fn is_std_set_configuration(&self) -> bool

Checks if the value of the field is STD_SET_CONFIGURATION

Source

pub fn is_std_get_interface(&self) -> bool

Checks if the value of the field is STD_GET_INTERFACE

Source

pub fn is_std_set_interface(&self) -> bool

Checks if the value of the field is STD_SET_INTERFACE

Source

pub fn is_std_synch_frame(&self) -> bool

Checks if the value of the field is STD_SYNCH_FRAME