nrf52840_pac::power::usbregstatus

# Type Alias 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

Source

#### pub fn variant(&self) -> VBUSDETECT_A

Get enumerated values variant

Source

#### pub fn is_no_vbus(&self) -> bool

Checks if the value of the field is `NO_VBUS`

Source

#### pub fn is_vbus_present(&self) -> bool

Checks if the value of the field is `VBUS_PRESENT`