Type Alias rp2040_pac::usbctrl_regs::main_ctrl::W

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

Register MAIN_CTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn controller_en(&mut self) -> CONTROLLER_EN_W<'_, MAIN_CTRL_SPEC>

Bit 0 - Enable controller

source

pub fn host_ndevice(&mut self) -> HOST_NDEVICE_W<'_, MAIN_CTRL_SPEC>

Bit 1 - Device mode = 0, Host mode = 1

source

pub fn sim_timing(&mut self) -> SIM_TIMING_W<'_, MAIN_CTRL_SPEC>

Bit 31 - Reduced timings for simulation

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