pub struct Peripheral {
pub usb: USB,
pub pin_dm: PA11<AF14>,
pub pin_dp: PA12<AF14>,
}
Expand description
USB Peripheral
Constructs the peripheral, which
than gets passed to the UsbBus
.
Fields§
§usb: USB
USB Register Block
pin_dm: PA11<AF14>
Data Negativ Pin
pin_dp: PA12<AF14>
Data Positiv Pin
Trait Implementations§
Source§impl UsbPeripheral for Peripheral
impl UsbPeripheral for Peripheral
Source§const DP_PULL_UP_FEATURE: bool = false
const DP_PULL_UP_FEATURE: bool = false
Embedded pull-up resistor on USB_DP line
Source§const EP_MEMORY_SIZE: usize = 512usize
const EP_MEMORY_SIZE: usize = 512usize
Endpoint memory size in bytes
Source§fn startup_delay()
fn startup_delay()
Performs a chip specific startup delay Read more
impl Sync for Peripheral
Auto Trait Implementations§
impl Freeze for Peripheral
impl RefUnwindSafe for Peripheral
impl Send for Peripheral
impl Unpin for Peripheral
impl UnwindSafe for Peripheral
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