Trait kernel::hil::usb::Client

source ·
pub trait Client<'a> {
    // Required methods
    fn enable(&'a self);
    fn attach(&'a self);
    fn bus_reset(&'a self);
    fn ctrl_setup(&'a self, endpoint: usize) -> CtrlSetupResult;
    fn ctrl_in(&'a self, endpoint: usize) -> CtrlInResult;
    fn ctrl_out(&'a self, endpoint: usize, packet_bytes: u32) -> CtrlOutResult;
    fn ctrl_status(&'a self, endpoint: usize);
    fn ctrl_status_complete(&'a self, endpoint: usize);
    fn packet_in(
        &'a self,
        transfer_type: TransferType,
        endpoint: usize,
    ) -> InResult;
    fn packet_out(
        &'a self,
        transfer_type: TransferType,
        endpoint: usize,
        packet_bytes: u32,
    ) -> OutResult;
    fn packet_transmitted(&'a self, endpoint: usize);
}
Expand description

USB controller client interface

Required Methods§

source

fn enable(&'a self)

source

fn attach(&'a self)

source

fn bus_reset(&'a self)

source

fn ctrl_setup(&'a self, endpoint: usize) -> CtrlSetupResult

source

fn ctrl_in(&'a self, endpoint: usize) -> CtrlInResult

source

fn ctrl_out(&'a self, endpoint: usize, packet_bytes: u32) -> CtrlOutResult

source

fn ctrl_status(&'a self, endpoint: usize)

source

fn ctrl_status_complete(&'a self, endpoint: usize)

source

fn packet_in(&'a self, transfer_type: TransferType, endpoint: usize) -> InResult

source

fn packet_out( &'a self, transfer_type: TransferType, endpoint: usize, packet_bytes: u32, ) -> OutResult

source

fn packet_transmitted(&'a self, endpoint: usize)

Implementors§