Type Alias atsame54n::usb::host::ctrlb::W

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

Register CTRLB writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn resume(&mut self) -> RESUME_W<'_, CTRLB_SPEC, 1>

Bit 1 - Send USB Resume

source

pub fn spdconf(&mut self) -> SPDCONF_W<'_, CTRLB_SPEC, 2>

Bits 2:3 - Speed Configuration for Host

source

pub fn autoresume(&mut self) -> AUTORESUME_W<'_, CTRLB_SPEC, 4>

Bit 4 - Auto Resume Enable

source

pub fn tstj(&mut self) -> TSTJ_W<'_, CTRLB_SPEC, 5>

Bit 5 - Test mode J

source

pub fn tstk(&mut self) -> TSTK_W<'_, CTRLB_SPEC, 6>

Bit 6 - Test mode K

source

pub fn sofe(&mut self) -> SOFE_W<'_, CTRLB_SPEC, 8>

Bit 8 - Start of Frame Generation Enable

source

pub fn busreset(&mut self) -> BUSRESET_W<'_, CTRLB_SPEC, 9>

Bit 9 - Send USB Reset

source

pub fn vbusok(&mut self) -> VBUSOK_W<'_, CTRLB_SPEC, 10>

Bit 10 - VBUS is OK

source

pub fn l1resume(&mut self) -> L1RESUME_W<'_, CTRLB_SPEC, 11>

Bit 11 - Send L1 Resume

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual