Struct PeripheralUsb
pub struct PeripheralUsb {
pub kind: UsbKind,
pub speed: UsbSpeed,
pub device_endpoints: u8,
pub host_channels: u8,
pub phys: &'static [UsbPhy],
pub vbus_sensing: bool,
pub id_pin: bool,
pub sof_output: bool,
}Expand description
USB controller capabilities, mirrored from data/usb.yaml.
Fields§
§kind: UsbKind§speed: UsbSpeed§device_endpoints: u8Number of device endpoints, including EP0.
host_channels: u8Number of host channels (pipes).
phys: &'static [UsbPhy]PHYs available to this instance.
vbus_sensing: boolTrue if VBUS sensing is available.
id_pin: boolTrue if the OTG ID pin is available.
sof_output: boolTrue if a SOF output pin is available.
Trait Implementations§
§impl Clone for PeripheralUsb
impl Clone for PeripheralUsb
§fn clone(&self) -> PeripheralUsb
fn clone(&self) -> PeripheralUsb
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for PeripheralUsb
impl Debug for PeripheralUsb
impl Eq for PeripheralUsb
§impl PartialEq for PeripheralUsb
impl PartialEq for PeripheralUsb
impl StructuralPartialEq for PeripheralUsb
Auto Trait Implementations§
impl Freeze for PeripheralUsb
impl RefUnwindSafe for PeripheralUsb
impl Send for PeripheralUsb
impl Sync for PeripheralUsb
impl Unpin for PeripheralUsb
impl UnsafeUnpin for PeripheralUsb
impl UnwindSafe for PeripheralUsb
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