pub struct Bus<'d, const MAX_EP_COUNT: usize> { /* private fields */ }
Expand description
USB bus.
Implementations§
source§impl<'d, const MAX_EP_COUNT: usize> Bus<'d, MAX_EP_COUNT>
impl<'d, const MAX_EP_COUNT: usize> Bus<'d, MAX_EP_COUNT>
sourcepub fn configure_as_device(&mut self)
pub fn configure_as_device(&mut self)
Configures the PHY as a device.
sourcepub fn config_v1(&mut self)
pub fn config_v1(&mut self)
Applies configuration specific to Core ID 0x0000_1100 and 0x0000_1200
sourcepub fn config_v2v3(&mut self)
pub fn config_v2v3(&mut self)
Applies configuration specific to Core ID 0x0000_2000, 0x0000_2100, 0x0000_2300, 0x0000_3000 and 0x0000_3100
Trait Implementations§
source§impl<'d, const MAX_EP_COUNT: usize> Bus for Bus<'d, MAX_EP_COUNT>
impl<'d, const MAX_EP_COUNT: usize> Bus for Bus<'d, MAX_EP_COUNT>
source§fn endpoint_set_stalled(&mut self, ep_addr: EndpointAddress, stalled: bool)
fn endpoint_set_stalled(&mut self, ep_addr: EndpointAddress, stalled: bool)
Set or clear the STALL condition for an endpoint. Read more
source§fn endpoint_is_stalled(&mut self, ep_addr: EndpointAddress) -> bool
fn endpoint_is_stalled(&mut self, ep_addr: EndpointAddress) -> bool
Get whether the STALL condition is set for an endpoint.
source§fn endpoint_set_enabled(&mut self, ep_addr: EndpointAddress, enabled: bool)
fn endpoint_set_enabled(&mut self, ep_addr: EndpointAddress, enabled: bool)
Enable or disable an endpoint.
source§async fn remote_wakeup(&mut self) -> Result<(), Unsupported>
async fn remote_wakeup(&mut self) -> Result<(), Unsupported>
Initiate a remote wakeup of the host by the device. Read more
source§fn force_reset(&mut self) -> Result<(), Unsupported>
fn force_reset(&mut self) -> Result<(), Unsupported>
Simulate a disconnect from the USB bus, causing the host to reset and re-enumerate the
device. Read more
Auto Trait Implementations§
impl<'d, const MAX_EP_COUNT: usize> Freeze for Bus<'d, MAX_EP_COUNT>
impl<'d, const MAX_EP_COUNT: usize> !RefUnwindSafe for Bus<'d, MAX_EP_COUNT>
impl<'d, const MAX_EP_COUNT: usize> Send for Bus<'d, MAX_EP_COUNT>
impl<'d, const MAX_EP_COUNT: usize> Sync for Bus<'d, MAX_EP_COUNT>
impl<'d, const MAX_EP_COUNT: usize> Unpin for Bus<'d, MAX_EP_COUNT>
impl<'d, const MAX_EP_COUNT: usize> !UnwindSafe for Bus<'d, MAX_EP_COUNT>
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