Struct capsules_extra::usb::usbc_client::Client
source · pub struct Client<'a, C: 'a> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<'a, C: UsbController<'a>> Client<'a> for Client<'a, C>
impl<'a, C: UsbController<'a>> Client<'a> for Client<'a, C>
source§fn ctrl_setup(&'a self, endpoint: usize) -> CtrlSetupResult
fn ctrl_setup(&'a self, endpoint: usize) -> CtrlSetupResult
Handle a Control Setup transaction
source§fn ctrl_in(&'a self, endpoint: usize) -> CtrlInResult
fn ctrl_in(&'a self, endpoint: usize) -> CtrlInResult
Handle a Control In transaction
source§fn ctrl_out(&'a self, endpoint: usize, packet_bytes: u32) -> CtrlOutResult
fn ctrl_out(&'a self, endpoint: usize, packet_bytes: u32) -> CtrlOutResult
Handle a Control Out transaction
source§fn ctrl_status_complete(&'a self, endpoint: usize)
fn ctrl_status_complete(&'a self, endpoint: usize)
Handle the completion of a Control transfer
source§fn packet_in(&'a self, transfer_type: TransferType, endpoint: usize) -> InResult
fn packet_in(&'a self, transfer_type: TransferType, endpoint: usize) -> InResult
Handle a Bulk/Interrupt IN transaction
source§fn packet_out(
&'a self,
transfer_type: TransferType,
endpoint: usize,
packet_bytes: u32,
) -> OutResult
fn packet_out( &'a self, transfer_type: TransferType, endpoint: usize, packet_bytes: u32, ) -> OutResult
Handle a Bulk/Interrupt OUT transaction
fn enable(&'a self)
fn attach(&'a self)
fn bus_reset(&'a self)
fn ctrl_status(&'a self, endpoint: usize)
fn packet_transmitted(&'a self, _endpoint: usize)
Auto Trait Implementations§
impl<'a, C> !Freeze for Client<'a, C>
impl<'a, C> !RefUnwindSafe for Client<'a, C>
impl<'a, C> Send for Client<'a, C>where
C: Sync,
impl<'a, C> !Sync for Client<'a, C>
impl<'a, C> Unpin for Client<'a, C>
impl<'a, C> UnwindSafe for Client<'a, C>where
C: RefUnwindSafe,
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