pub struct Peripheral<Dm: DmPin, Dp: DpPin> {
pub usb: USB,
pub pin_dm: Dm,
pub pin_dp: Dp,
}
Available on crate feature
usb
only.Expand description
USB Peripheral
Constructs the peripheral, which
than gets passed to the UsbBus
.
Fields§
§usb: USB
USB Register Block
pin_dm: Dm
Data Negativ Pin
pin_dp: Dp
Data Positiv Pin
Trait Implementations§
Source§impl<Dm, Dp> Debug for Peripheral<Dm, Dp>
impl<Dm, Dp> Debug for Peripheral<Dm, Dp>
Source§impl<Dm: DmPin + Send, Dp: DpPin + Send> UsbPeripheral for Peripheral<Dm, Dp>
impl<Dm: DmPin + Send, Dp: DpPin + Send> UsbPeripheral for Peripheral<Dm, Dp>
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§const EP_MEMORY_ACCESS_2X16: bool = false
const EP_MEMORY_ACCESS_2X16: bool = false
Endpoint memory access scheme Read more
Source§fn startup_delay()
fn startup_delay()
Performs a chip specific startup delay Read more
impl<Dm: DmPin, Dp: DpPin> Sync for Peripheral<Dm, Dp>
Auto Trait Implementations§
impl<Dm, Dp> Freeze for Peripheral<Dm, Dp>
impl<Dm, Dp> RefUnwindSafe for Peripheral<Dm, Dp>where
Dm: RefUnwindSafe,
Dp: RefUnwindSafe,
impl<Dm, Dp> Send for Peripheral<Dm, Dp>
impl<Dm, Dp> Unpin for Peripheral<Dm, Dp>
impl<Dm, Dp> UnwindSafe for Peripheral<Dm, Dp>where
Dm: UnwindSafe,
Dp: UnwindSafe,
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