Struct capsules::usbc_client::Client
[−]
[src]
pub struct Client<'a, C: 'a> { controller: &'a C, state: Cell<State>, ep0_storage: [VolatileCell<u8>; 8], descriptor_storage: [Cell<u8>; 30], }
Fields
controller: &'a C
state: Cell<State>
ep0_storage: [VolatileCell<u8>; 8]
descriptor_storage: [Cell<u8>; 30]
Methods
impl<'a, C: UsbController> Client<'a, C>
[src]
pub fn new(controller: &'a C) -> Self
[src]
fn ep0_buf(&self) -> &[VolatileCell<u8>]
[src]
fn descriptor_buf(&'a self) -> &'a [Cell<u8>]
[src]
Trait Implementations
impl<'a, C: UsbController> Client for Client<'a, C>
[src]
fn enable(&self)
[src]
fn attach(&self)
[src]
fn bus_reset(&self)
[src]
fn ctrl_setup(&self) -> CtrlSetupResult
[src]
Handle a Control Setup transaction
fn ctrl_in(&self) -> CtrlInResult
[src]
Handle a Control In transaction
fn ctrl_out(&self, packet_bytes: u32) -> CtrlOutResult
[src]
Handle a Control Out transaction
fn ctrl_status(&self)
[src]
fn ctrl_status_complete(&self)
[src]
Handle the completion of a Control transfer