Struct rp2040_pac::usbctrl_dpram::RegisterBlock
source · #[repr(C)]pub struct RegisterBlock { /* private fields */ }
Expand description
Register block
Implementations§
source§impl RegisterBlock
impl RegisterBlock
sourcepub const fn setup_packet_low(&self) -> &SETUP_PACKET_LOW
pub const fn setup_packet_low(&self) -> &SETUP_PACKET_LOW
0x00 - Bytes 0-3 of the SETUP packet from the host.
sourcepub const fn setup_packet_high(&self) -> &SETUP_PACKET_HIGH
pub const fn setup_packet_high(&self) -> &SETUP_PACKET_HIGH
0x04 - Bytes 4-7 of the setup packet from the host.
sourcepub const fn ep_control(&self, n: usize) -> &EP_CONTROL
pub const fn ep_control(&self, n: usize) -> &EP_CONTROL
0x08..0x80 - -
sourcepub fn ep_control_iter(&self) -> impl Iterator<Item = &EP_CONTROL>
pub fn ep_control_iter(&self) -> impl Iterator<Item = &EP_CONTROL>
Iterator for array of: 0x08..0x80 - -
sourcepub const fn ep_buffer_control(&self, n: usize) -> &EP_BUFFER_CONTROL
pub const fn ep_buffer_control(&self, n: usize) -> &EP_BUFFER_CONTROL
0x80..0x100 - -
sourcepub fn ep_buffer_control_iter(&self) -> impl Iterator<Item = &EP_BUFFER_CONTROL>
pub fn ep_buffer_control_iter(&self) -> impl Iterator<Item = &EP_BUFFER_CONTROL>
Iterator for array of: 0x80..0x100 - -
sourcepub const fn epx_control(&self) -> &EPX_CONTROL
pub const fn epx_control(&self) -> &EPX_CONTROL
0x100 - EPx Control (Host-mode only!)
Auto Trait Implementations§
impl !Freeze for RegisterBlock
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more