#[repr(transparent)]pub struct AddrEndp(pub u32);
Expand description
Device address and endpoint control
Tuple Fields§
§0: u32
Implementations§
source§impl AddrEndp
impl AddrEndp
sourcepub const fn address(&self) -> u8
pub const fn address(&self) -> u8
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.
sourcepub fn set_address(&mut self, val: u8)
pub fn set_address(&mut self, val: u8)
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.
sourcepub fn set_endpoint(&mut self, val: u8)
pub fn set_endpoint(&mut self, val: u8)
Device endpoint to send data to. Only valid for HOST mode.
Trait Implementations§
impl Copy for AddrEndp
impl Eq for AddrEndp
impl StructuralPartialEq for AddrEndp
Auto Trait Implementations§
impl Freeze for AddrEndp
impl RefUnwindSafe for AddrEndp
impl Send for AddrEndp
impl Sync for AddrEndp
impl Unpin for AddrEndp
impl UnwindSafe for AddrEndp
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
)