Struct rp_pac::usb_dpram::regs::SetupPacketLow
source · #[repr(transparent)]pub struct SetupPacketLow(pub u32);
Expand description
Bytes 0-3 of the SETUP packet from the host.
Tuple Fields§
§0: u32
Implementations§
source§impl SetupPacketLow
impl SetupPacketLow
pub const fn bmrequesttype(&self) -> u8
pub fn set_bmrequesttype(&mut self, val: u8)
pub const fn brequest(&self) -> u8
pub fn set_brequest(&mut self, val: u8)
pub const fn wvalue(&self) -> u16
pub fn set_wvalue(&mut self, val: u16)
Trait Implementations§
source§impl Clone for SetupPacketLow
impl Clone for SetupPacketLow
source§fn clone(&self) -> SetupPacketLow
fn clone(&self) -> SetupPacketLow
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for SetupPacketLow
impl Default for SetupPacketLow
source§fn default() -> SetupPacketLow
fn default() -> SetupPacketLow
Returns the “default value” for a type. Read more
source§impl PartialEq for SetupPacketLow
impl PartialEq for SetupPacketLow
impl Copy for SetupPacketLow
impl Eq for SetupPacketLow
impl StructuralPartialEq for SetupPacketLow
Auto Trait Implementations§
impl Freeze for SetupPacketLow
impl RefUnwindSafe for SetupPacketLow
impl Send for SetupPacketLow
impl Sync for SetupPacketLow
impl Unpin for SetupPacketLow
impl UnwindSafe for SetupPacketLow
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
)