Type Alias rp2040_pac::usbctrl_regs::usb_pwr::W

source ·
pub type W = W<USB_PWR_SPEC>;
Expand description

Register USB_PWR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn vbus_en(&mut self) -> VBUS_EN_W<'_, USB_PWR_SPEC>

Bit 0

source

pub fn vbus_en_override_en(&mut self) -> VBUS_EN_OVERRIDE_EN_W<'_, USB_PWR_SPEC>

Bit 1

source

pub fn vbus_detect(&mut self) -> VBUS_DETECT_W<'_, USB_PWR_SPEC>

Bit 2

source

pub fn vbus_detect_override_en( &mut self, ) -> VBUS_DETECT_OVERRIDE_EN_W<'_, USB_PWR_SPEC>

Bit 3

source

pub fn overcurr_detect(&mut self) -> OVERCURR_DETECT_W<'_, USB_PWR_SPEC>

Bit 4

source

pub fn overcurr_detect_en(&mut self) -> OVERCURR_DETECT_EN_W<'_, USB_PWR_SPEC>

Bit 5

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual