Type Alias nrf52840_pac::power::usbregstatus::VBUSDETECT_R
source · pub type VBUSDETECT_R = BitReader<VBUSDETECT_A>;
Expand description
Field VBUSDETECT
reader - VBUS input detection status (USBDETECTED and USBREMOVED events are derived from this information)
Aliased Type§
struct VBUSDETECT_R { /* private fields */ }
Implementations§
source§impl VBUSDETECT_R
impl VBUSDETECT_R
sourcepub fn variant(&self) -> VBUSDETECT_A
pub fn variant(&self) -> VBUSDETECT_A
Get enumerated values variant
sourcepub fn is_no_vbus(&self) -> bool
pub fn is_no_vbus(&self) -> bool
Checks if the value of the field is NO_VBUS
sourcepub fn is_vbus_present(&self) -> bool
pub fn is_vbus_present(&self) -> bool
Checks if the value of the field is VBUS_PRESENT