Struct PeripheralUsb
pub struct PeripheralUsb {Show 13 fields
pub kind: UsbKind,
pub speed: UsbSpeed,
pub device_endpoints: u8,
pub host_channels: u8,
pub ram_words: Option<u16>,
pub ram_bytes: Option<u16>,
pub tx_fifo_count: Option<u8>,
pub tx_fifo_min_words: Option<u16>,
pub rx_fifo_margin_words: Option<u16>,
pub dedicated_tx_fifo: bool,
pub double_buffer: bool,
pub pma_granularity: Option<u8>,
pub max_packet_size: u16,
}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).
ram_words: Option<u16>OTG DFIFO size in 32-bit words.
ram_bytes: Option<u16>PMA size in bytes.
tx_fifo_count: Option<u8>Number of dedicated TX FIFOs (OTG only).
tx_fifo_min_words: Option<u16>Minimum TX FIFO size, in words (OTG only).
rx_fifo_margin_words: Option<u16>Fixed RX FIFO safety margin, in words (OTG only).
dedicated_tx_fifo: boolTrue if each IN endpoint has its own TX FIFO (OTG device mode).
double_buffer: boolTrue if the controller can double-buffer bulk endpoints.
pma_granularity: Option<u8>PMA allocation granularity, in bytes (PMA only).
max_packet_size: u16Maximum packet size allowed at speed.
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