pub struct Peripheral {
pub regs: USB,
}
Expand description
Represents a Universal Serial Bus (USB) peripheral. Functionality is implemented through the
implemented stm32_usbd::UsbPeripheral
trait.
Fields§
§regs: USB
USB Register Block
Trait Implementations§
Source§impl UsbPeripheral for Peripheral
impl UsbPeripheral for Peripheral
Source§const DP_PULL_UP_FEATURE: bool = true
const DP_PULL_UP_FEATURE: bool = true
Embedded pull-up resistor on USB_DP line
Source§const EP_MEMORY_SIZE: usize = 1_024usize
const EP_MEMORY_SIZE: usize = 1_024usize
Endpoint memory size in bytes
Source§const EP_MEMORY_ACCESS_2X16: bool = true
const EP_MEMORY_ACCESS_2X16: bool = true
Endpoint memory access scheme Read more
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