embassy-stm32

Crates

git

Versions

stm32f469ng

Flavors

embassy_stm32::usb

Struct 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>

§

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>,

Source§

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>,

Source§

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.