Type Alias atsame54n::usb::host::host_pipe::pcfg::W

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

Register PCFG writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn ptoken(&mut self) -> PTOKEN_W<'_, PCFG_SPEC, 0>

Bits 0:1 - Pipe Token

source

pub fn bk(&mut self) -> BK_W<'_, PCFG_SPEC, 2>

Bit 2 - Pipe Bank

source

pub fn ptype(&mut self) -> PTYPE_W<'_, PCFG_SPEC, 3>

Bits 3:5 - Pipe Type

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual