Type Alias atsame54n::usb::device::device_endpoint::epcfg::W

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

Register EPCFG writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn eptype0(&mut self) -> EPTYPE0_W<'_, EPCFG_SPEC, 0>

Bits 0:2 - End Point Type0

source

pub fn eptype1(&mut self) -> EPTYPE1_W<'_, EPCFG_SPEC, 4>

Bits 4:6 - End Point Type1

source

pub fn nyetdis(&mut self) -> NYETDIS_W<'_, EPCFG_SPEC, 7>

Bit 7 - NYET Token Disable

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