Type Alias rp2040_pac::usbctrl_regs::addr_endp::R

source ·
pub type R = R<ADDR_ENDP_SPEC>;
Expand description

Register ADDR_ENDP reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn address(&self) -> ADDRESS_R

Bits 0:6 - In device mode, the address that the device should respond to. Set in response to a SET_ADDR setup packet from the host. In host mode set to the address of the device to communicate with.

source

pub fn endpoint(&self) -> ENDPOINT_R

Bits 16:19 - Device endpoint to send data to. Only valid for HOST mode.