Struct embassy_stm32::usb_otg::Bus
source · pub struct Bus<'d, T: Instance> { /* private fields */ }
Expand description
USB bus.
Trait Implementations§
source§impl<'d, T: Instance> Bus for Bus<'d, T>
impl<'d, T: Instance> Bus for Bus<'d, T>
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, T> RefUnwindSafe for Bus<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for Bus<'d, T>where
T: Send,
impl<'d, T> Sync for Bus<'d, T>where
T: Sync,
impl<'d, T> Unpin for Bus<'d, T>
impl<'d, T> !UnwindSafe for Bus<'d, T>
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