Type Alias W

Source
pub type W = W<USB_CTL_SPEC>;
Expand description

Register usb_ctl writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn reg_usb_sw_rst_n(&mut self) -> REG_USB_SW_RST_N_W<'_, USB_CTL_SPEC>

Bit 0

Source

pub fn reg_usb_ext_susp_n(&mut self) -> REG_USB_EXT_SUSP_N_W<'_, USB_CTL_SPEC>

Bit 1

Source

pub fn reg_usb_wakeup(&mut self) -> REG_USB_WAKEUP_W<'_, USB_CTL_SPEC>

Bit 2

Source

pub fn reg_usb_l1_wakeup(&mut self) -> REG_USB_L1_WAKEUP_W<'_, USB_CTL_SPEC>

Bit 3

Source

pub fn reg_usb_drvbus_pol(&mut self) -> REG_USB_DRVBUS_POL_W<'_, USB_CTL_SPEC>

Bit 4

Source

pub fn reg_usb_iddig(&mut self) -> REG_USB_IDDIG_W<'_, USB_CTL_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