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