Type Alias atsamd51n::usb::device::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 detach(&mut self) -> DETACH_W<'_, CTRLB_SPEC, 0>

Bit 0 - Detach

source

pub fn uprsm(&mut self) -> UPRSM_W<'_, CTRLB_SPEC, 1>

Bit 1 - Upstream Resume

source

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

Bits 2:3 - Speed Configuration

source

pub fn nreply(&mut self) -> NREPLY_W<'_, CTRLB_SPEC, 4>

Bit 4 - No Reply

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 tstpckt(&mut self) -> TSTPCKT_W<'_, CTRLB_SPEC, 7>

Bit 7 - Test packet mode

source

pub fn opmode2(&mut self) -> OPMODE2_W<'_, CTRLB_SPEC, 8>

Bit 8 - Specific Operational Mode

source

pub fn gnak(&mut self) -> GNAK_W<'_, CTRLB_SPEC, 9>

Bit 9 - Global NAK

source

pub fn lpmhdsk(&mut self) -> LPMHDSK_W<'_, CTRLB_SPEC, 10>

Bits 10:11 - Link Power Management Handshake

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