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