pub struct ClientCtrl<'a, 'b, U: 'a> {
pub ctrl_buffer: Buffer64,
/* private fields */
}
Expand description
Handler for USB control endpoint requests.
Fields§
§ctrl_buffer: Buffer64
A 64-byte buffer for the control endpoint to be passed to the USB driver.
Implementations§
Source§impl<'a, 'b, U: UsbController<'a>> ClientCtrl<'a, 'b, U>
impl<'a, 'b, U: UsbController<'a>> ClientCtrl<'a, 'b, U>
pub fn new( controller: &'a U, device_descriptor_buffer: DeviceBuffer, other_descriptor_buffer: DescriptorBuffer, hid_descriptor: Option<&'b HIDDescriptor<'b>>, report_descriptor: Option<&'b ReportDescriptor<'b>>, language: &'b [u16; 1], strings: &'b [&'b str], ) -> Self
pub fn controller(&self) -> &'a U
pub fn enable(&'a self)
pub fn attach(&'a self)
Sourcepub fn ctrl_setup(&'a self, endpoint: usize) -> CtrlSetupResult
pub fn ctrl_setup(&'a self, endpoint: usize) -> CtrlSetupResult
Handle a Control Setup transaction
Sourcepub fn ctrl_in(&'a self, endpoint: usize) -> CtrlInResult
pub fn ctrl_in(&'a self, endpoint: usize) -> CtrlInResult
Handle a Control In transaction
Sourcepub fn ctrl_out(&'a self, endpoint: usize, _packet_bytes: u32) -> CtrlOutResult
pub fn ctrl_out(&'a self, endpoint: usize, _packet_bytes: u32) -> CtrlOutResult
Handle a Control Out transaction
pub fn ctrl_status(&'a self, _endpoint: usize)
Sourcepub fn ctrl_status_complete(&'a self, endpoint: usize)
pub fn ctrl_status_complete(&'a self, endpoint: usize)
Handle the completion of a Control transfer
Auto Trait Implementations§
impl<'a, 'b, U> !Freeze for ClientCtrl<'a, 'b, U>
impl<'a, 'b, U> !RefUnwindSafe for ClientCtrl<'a, 'b, U>
impl<'a, 'b, U> Send for ClientCtrl<'a, 'b, U>where
U: Sync,
impl<'a, 'b, U> !Sync for ClientCtrl<'a, 'b, U>
impl<'a, 'b, U> Unpin for ClientCtrl<'a, 'b, U>
impl<'a, 'b, U> UnwindSafe for ClientCtrl<'a, 'b, U>where
U: 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