Type Alias rp2040_pac::usbctrl_regs::host_addr_endp::W

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

Register HOST_ADDR_ENDP%s writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn address(&mut self) -> ADDRESS_W<'_, HOST_ADDR_ENDP_SPEC>

Bits 0:6 - Device address

source

pub fn endpoint(&mut self) -> ENDPOINT_W<'_, HOST_ADDR_ENDP_SPEC>

Bits 16:19 - Endpoint number of the interrupt endpoint

source

pub fn intep_dir(&mut self) -> INTEP_DIR_W<'_, HOST_ADDR_ENDP_SPEC>

Bit 25 - Direction of the interrupt endpoint. In=0, Out=1

source

pub fn intep_preamble(&mut self) -> INTEP_PREAMBLE_W<'_, HOST_ADDR_ENDP_SPEC>

Bit 26 - Interrupt EP requires preamble (is a low speed device on a full speed hub)

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual