Ubuntu Platform API
3.0.0
A library helping with tight integration into the Ubuntu platform
|
|
Go to the documentation of this file.
19 #ifndef UBUNTU_APPLICATION_SENSORS_PRESSURE_H_
20 #define UBUNTU_APPLICATION_SENSORS_PRESSURE_H_
UBUNTU_DLL_PUBLIC UStatus ua_sensors_pressure_get_min_value(UASensorsPressure *sensor, float *value)
Queries the minimum value that can be reported by the sensor.
UBUNTU_DLL_PUBLIC void ua_sensors_pressure_set_reading_cb(UASensorsPressure *sensor, on_pressure_event_cb cb, void *ctx)
Set the callback to be invoked whenever a new sensor reading is available.
UBUNTU_DLL_PUBLIC UStatus ua_sensors_pressure_get_resolution(UASensorsPressure *sensor, float *value)
Queries the numeric resolution supported by the sensor.
UBUNTU_DLL_PUBLIC UASensorsPressure * ua_sensors_pressure_new()
Create a new object for accessing the ambient light sensor.
UBUNTU_DLL_PUBLIC UStatus ua_sensors_pressure_set_event_rate(UASensorsPressure *sensor, uint32_t rate)
Set the sensor event delivery rate in nanoseconds..
UbuntuStatus
Indicates the status of an operation.
#define UBUNTU_DLL_PUBLIC
UBUNTU_DLL_PUBLIC uint32_t ua_sensors_pressure_get_min_delay(UASensorsPressure *sensor)
Queries the minimum delay between two readings for the supplied sensor.
void UASensorsPressure
Opaque type that models the pressure sensor.
UBUNTU_DLL_PUBLIC UStatus ua_sensors_pressure_disable(UASensorsPressure *sensor)
Disables the supplied ambient light sensor.
UBUNTU_DLL_PUBLIC UStatus ua_sensors_pressure_get_max_value(UASensorsPressure *sensor, float *value)
Queries the maximum value that can be reported by the sensor.
void(* on_pressure_event_cb)(UASPressureEvent *event, void *context)
Callback type used by applications to subscribe to pressure sensor events.
UBUNTU_DLL_PUBLIC UStatus ua_sensors_pressure_enable(UASensorsPressure *sensor)
Enables the supplied ambient light sensor.
void UASPressureEvent
Opaque type describing an ambient light sensor reading.