pub struct UsbDpram { /* private fields */ }
Expand description
DPRAM layout for USB device.
Implementations§
source§impl UsbDpram
impl UsbDpram
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
sourcepub const fn setup_packet_low(self) -> Reg<SetupPacketLow, RW>
pub const fn setup_packet_low(self) -> Reg<SetupPacketLow, RW>
Bytes 0-3 of the SETUP packet from the host.
sourcepub const fn setup_packet_high(self) -> Reg<SetupPacketHigh, RW>
pub const fn setup_packet_high(self) -> Reg<SetupPacketHigh, RW>
Bytes 4-7 of the setup packet from the host.
pub const fn ep_in_control(self, n: usize) -> Reg<EpControl, RW>
pub const fn ep_out_control(self, n: usize) -> Reg<EpControl, RW>
sourcepub const fn ep_in_buffer_control(self, n: usize) -> Reg<EpBufferControl, RW>
pub const fn ep_in_buffer_control(self, n: usize) -> Reg<EpBufferControl, RW>
Buffer control for both buffers of an endpoint. Fields ending in a _1 are for buffer 1. Fields ending in a _0 are for buffer 0. Buffer 1 controls are only valid if the endpoint is in double buffered mode.
sourcepub const fn ep_out_buffer_control(self, n: usize) -> Reg<EpBufferControl, RW>
pub const fn ep_out_buffer_control(self, n: usize) -> Reg<EpBufferControl, RW>
Buffer control for both buffers of an endpoint. Fields ending in a _1 are for buffer 1. Fields ending in a _0 are for buffer 0. Buffer 1 controls are only valid if the endpoint is in double buffered mode.
Trait Implementations§
impl Copy for UsbDpram
impl Eq for UsbDpram
impl Send for UsbDpram
impl StructuralPartialEq for UsbDpram
impl Sync for UsbDpram
Auto Trait Implementations§
impl Freeze for UsbDpram
impl RefUnwindSafe for UsbDpram
impl Unpin for UsbDpram
impl UnwindSafe for UsbDpram
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)