Struct stm32_metapac::usb::regs::Daddr
#[repr(transparent)]pub struct Daddr(pub u32);
Expand description
device address
Tuple Fields§
§0: u32
Implementations§
§impl Daddr
impl Daddr
pub const fn add(&self) -> u8
pub const fn add(&self) -> u8
Device address Device mode These bits contain the USB function address assigned by the host PC during the enumeration process. Both this field and the endpoint/channel Address (EA) field in the associated USB_EPnR register must match with the information contained in a USB token in order to handle a transaction to the required endpoint. Host mode These bits contain the address transmitted with the LPM transaction
pub fn set_add(&mut self, val: u8)
pub fn set_add(&mut self, val: u8)
Device address Device mode These bits contain the USB function address assigned by the host PC during the enumeration process. Both this field and the endpoint/channel Address (EA) field in the associated USB_EPnR register must match with the information contained in a USB token in order to handle a transaction to the required endpoint. Host mode These bits contain the address transmitted with the LPM transaction
Trait Implementations§
impl Copy for Daddr
impl Eq for Daddr
impl StructuralPartialEq for Daddr
Auto Trait Implementations§
impl Freeze for Daddr
impl RefUnwindSafe for Daddr
impl Send for Daddr
impl Sync for Daddr
impl Unpin for Daddr
impl UnwindSafe for Daddr
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
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)
clone_to_uninit
)