Type Alias atsamd51p::usb::device::device_endpoint::epintflag::W

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

Register EPINTFLAG writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn trcpt0(&mut self) -> TRCPT0_W<'_, EPINTFLAG_SPEC, 0>

Bit 0 - Transfer Complete 0

source

pub fn trcpt1(&mut self) -> TRCPT1_W<'_, EPINTFLAG_SPEC, 1>

Bit 1 - Transfer Complete 1

source

pub fn trfail0(&mut self) -> TRFAIL0_W<'_, EPINTFLAG_SPEC, 2>

Bit 2 - Error Flow 0

source

pub fn trfail1(&mut self) -> TRFAIL1_W<'_, EPINTFLAG_SPEC, 3>

Bit 3 - Error Flow 1

source

pub fn rxstp(&mut self) -> RXSTP_W<'_, EPINTFLAG_SPEC, 4>

Bit 4 - Received Setup

source

pub fn stall0(&mut self) -> STALL0_W<'_, EPINTFLAG_SPEC, 5>

Bit 5 - Stall 0 In/out

source

pub fn stall1(&mut self) -> STALL1_W<'_, EPINTFLAG_SPEC, 6>

Bit 6 - Stall 1 In/out

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