UsbDriver

Struct UsbDriver 

Source
pub struct UsbDriver<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> UsbDriver<'a>

Source

pub fn set_full_speed(&mut self)

Trait Implementations§

Source§

impl<'a> Default for UsbDriver<'a>

Source§

fn default() -> UsbDriver<'a>

Returns the “default value” for a type. Read more
Source§

impl<'a> Driver<'a> for UsbDriver<'a>

Source§

type EndpointOut = EndpointOut<'a>

Type of the OUT endpoints for this driver.
Source§

type EndpointIn = EndpointIn<'a>

Type of the IN endpoints for this driver.
Source§

type ControlPipe = ControlPipe<'a>

Type of the control pipe for this driver.
Source§

type Bus = UsbBus<'a>

Type for bus control for this driver.
Source§

fn alloc_endpoint_out( &mut self, endpoint_type: EndpointType, max_packet_size: u16, interval_ms: u8, ) -> Result<Self::EndpointOut, EndpointAllocError>

Allocates an OUT endpoint. Read more
Source§

fn alloc_endpoint_in( &mut self, endpoint_type: EndpointType, max_packet_size: u16, interval_ms: u8, ) -> Result<Self::EndpointIn, EndpointAllocError>

Allocates an IN endpoint. Read more
Source§

fn start(self, control_packet_size: u16) -> (Self::Bus, Self::ControlPipe)

Start operation of the USB device. Read more
Source§

impl<'a> Peripheral for UsbDriver<'a>

Source§

fn take() -> Option<Self>

Source§

unsafe fn steal() -> Self

Auto Trait Implementations§

§

impl<'a> Freeze for UsbDriver<'a>

§

impl<'a> RefUnwindSafe for UsbDriver<'a>

§

impl<'a> Send for UsbDriver<'a>

§

impl<'a> Sync for UsbDriver<'a>

§

impl<'a> Unpin for UsbDriver<'a>

§

impl<'a> UnwindSafe for UsbDriver<'a>

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.