Struct capsules::usb_user::UsbSyscallDriver
[−]
[src]
pub struct UsbSyscallDriver<'a, C: Client + 'a> { usbc_client: &'a C, apps: Grant<App>, serving_app: Cell<Option<AppId>>, }
Fields
usbc_client: &'a C
apps: Grant<App>
serving_app: Cell<Option<AppId>>
Methods
impl<'a, C> UsbSyscallDriver<'a, C> where
C: Client,
[src]
C: Client,
Trait Implementations
impl<'a, C> Driver for UsbSyscallDriver<'a, C> where
C: Client,
[src]
C: Client,
fn subscribe(&self, subscribe_num: usize, callback: Callback) -> ReturnCode
[src]
subscribe
lets an application pass a callback to the driver to be called later. This returns ENOSUPPORT
if not used. Read more
fn command(
&self,
command_num: usize,
_arg: usize,
_: usize,
appid: AppId
) -> ReturnCode
[src]
&self,
command_num: usize,
_arg: usize,
_: usize,
appid: AppId
) -> ReturnCode
command
instructs a driver to perform some action synchronously. This returns ENOSUPPORT
if not used. Read more
fn allow(
&self,
app: AppId,
minor_num: usize,
slice: AppSlice<Shared, u8>
) -> ReturnCode
[src]
&self,
app: AppId,
minor_num: usize,
slice: AppSlice<Shared, u8>
) -> ReturnCode
allow
lets an application give the driver access to a buffer in the application's memory. This returns ENOSUPPORT
if not used. Read more