Struct capsules::ninedof::NineDof
[−]
[src]
pub struct NineDof<'a> { driver: &'a NineDof, apps: Grant<App>, current_app: Cell<Option<AppId>>, }
Fields
driver: &'a NineDof
apps: Grant<App>
current_app: Cell<Option<AppId>>
Methods
impl<'a> NineDof<'a>
[src]
pub fn new(driver: &'a NineDof, grant: Grant<App>) -> NineDof<'a>
[src]
fn enqueue_command(
&self,
command: NineDofCommand,
arg1: usize,
appid: AppId
) -> ReturnCode
[src]
&self,
command: NineDofCommand,
arg1: usize,
appid: AppId
) -> ReturnCode
fn call_driver(&self, command: NineDofCommand, _: usize) -> ReturnCode
[src]
Trait Implementations
impl<'a> NineDofClient for NineDof<'a>
[src]
fn callback(&self, arg1: usize, arg2: usize, arg3: usize)
[src]
Signals a command has finished. The arguments will most likely be passed over the syscall interface to an application. Read more
impl<'a> Driver for NineDof<'a>
[src]
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,
arg1: usize,
_: usize,
appid: AppId
) -> ReturnCode
[src]
&self,
command_num: usize,
arg1: 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