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
impl W
sourcepub fn controller_en(&mut self) -> CONTROLLER_EN_W<'_, MAIN_CTRL_SPEC>
pub fn controller_en(&mut self) -> CONTROLLER_EN_W<'_, MAIN_CTRL_SPEC>
Bit 0 - Enable controller
sourcepub fn host_ndevice(&mut self) -> HOST_NDEVICE_W<'_, MAIN_CTRL_SPEC>
pub fn host_ndevice(&mut self) -> HOST_NDEVICE_W<'_, MAIN_CTRL_SPEC>
Bit 1 - Device mode = 0, Host mode = 1
sourcepub fn sim_timing(&mut self) -> SIM_TIMING_W<'_, MAIN_CTRL_SPEC>
pub fn sim_timing(&mut self) -> SIM_TIMING_W<'_, MAIN_CTRL_SPEC>
Bit 31 - Reduced timings for simulation