[−][src]Struct arduino_mkrzero::usb::UsbBus
Implementations
impl UsbBus
[src]
pub fn new(
_clock: &UsbClock,
pm: &mut PM,
dm_pad: Pin<PA24, Alternate<G>>,
dp_pad: Pin<PA25, Alternate<G>>,
_usb: USB
) -> UsbBus
[src]
_clock: &UsbClock,
pm: &mut PM,
dm_pad: Pin<PA24, Alternate<G>>,
dp_pad: Pin<PA25, Alternate<G>>,
_usb: USB
) -> UsbBus
Trait Implementations
impl UsbBus for UsbBus
[src]
pub fn enable(&mut self)
[src]
pub fn reset(&self)
[src]
pub fn suspend(&self)
[src]
pub fn resume(&self)
[src]
pub fn alloc_ep(
&mut self,
dir: UsbDirection,
addr: Option<EndpointAddress>,
ep_type: EndpointType,
max_packet_size: u16,
interval: u8
) -> Result<EndpointAddress, UsbError>
[src]
&mut self,
dir: UsbDirection,
addr: Option<EndpointAddress>,
ep_type: EndpointType,
max_packet_size: u16,
interval: u8
) -> Result<EndpointAddress, UsbError>
pub fn set_device_address(&self, addr: u8)
[src]
pub fn poll(&self) -> PollResult
[src]
pub fn write(&self, ep: EndpointAddress, buf: &[u8]) -> Result<usize, UsbError>
[src]
pub fn read(
&self,
ep: EndpointAddress,
buf: &mut [u8]
) -> Result<usize, UsbError>
[src]
&self,
ep: EndpointAddress,
buf: &mut [u8]
) -> Result<usize, UsbError>
pub fn set_stalled(&self, ep: EndpointAddress, stalled: bool)
[src]
pub fn is_stalled(&self, ep: EndpointAddress) -> bool
[src]
pub fn force_reset(&self) -> Result<(), UsbError>
[src]
pub const QUIRK_SET_ADDRESS_BEFORE_STATUS: bool
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,