pub struct UsbDpram(pub *mut u8);
Expand description
DPRAM layout for USB device.
Tuple Fields§
§0: *mut u8
Implementations§
Source§impl UsbDpram
impl UsbDpram
Sourcepub fn setup_packet_low(self) -> Reg<SetupPacketLow, RW>
pub fn setup_packet_low(self) -> Reg<SetupPacketLow, RW>
Bytes 0-3 of the SETUP packet from the host.
Sourcepub fn setup_packet_high(self) -> Reg<SetupPacketHigh, RW>
pub fn setup_packet_high(self) -> Reg<SetupPacketHigh, RW>
Bytes 4-7 of the setup packet from the host.
pub fn ep_in_control(self, n: usize) -> Reg<EpControl, RW>
pub fn ep_out_control(self, n: usize) -> Reg<EpControl, RW>
Sourcepub fn ep_in_buffer_control(self, n: usize) -> Reg<EpBufferControl, RW>
pub 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 fn ep_out_buffer_control(self, n: usize) -> Reg<EpBufferControl, RW>
pub 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