Struct capsules::humidity::HumiditySensor
[−]
[src]
pub struct HumiditySensor<'a> { driver: &'a HumidityDriver, apps: Grant<App>, busy: Cell<bool>, }
Fields
driver: &'a HumidityDriver
apps: Grant<App>
busy: Cell<bool>
Methods
impl<'a> HumiditySensor<'a>
[src]
pub fn new(driver: &'a HumidityDriver, grant: Grant<App>) -> HumiditySensor<'a>
[src]
fn enqueue_command(
&self,
command: HumidityCommand,
arg1: usize,
appid: AppId
) -> ReturnCode
[src]
&self,
command: HumidityCommand,
arg1: usize,
appid: AppId
) -> ReturnCode
fn call_driver(&self, command: HumidityCommand, _: usize) -> ReturnCode
[src]
fn configure_callback(&self, callback: Callback) -> ReturnCode
[src]
Trait Implementations
impl<'a> HumidityClient for HumiditySensor<'a>
[src]
impl<'a> Driver for HumiditySensor<'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