Embassy
embassy-stm32

Crates

git

Versions

stm32l486vg

Flavors

Struct embassy_stm32::usb::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>

source§

async fn poll(&mut self) -> Event

Wait for a bus-related event. Read more
source§

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

Get whether the STALL condition is set for an endpoint.
source§

fn endpoint_set_enabled(&mut self, ep_addr: EndpointAddress, enabled: bool)

Enable or disable an endpoint.
source§

async fn enable(&mut self)

Enable the USB peripheral.
source§

async fn disable(&mut self)

Disable and powers down the USB peripheral.
source§

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>

Simulate a disconnect from the USB bus, causing the host to reset and re-enumerate the device. Read more
source§

impl<'d, T: Instance> Drop for Bus<'d, T>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl<'d, T> Freeze for Bus<'d, T>

§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.