19 #ifndef UBUNTU_APPLICATION_SENSORS_TEMPERATURE_H_ 20 #define UBUNTU_APPLICATION_SENSORS_TEMPERATURE_H_ 60 UASensorsTemperature* sensor);
70 UASensorsTemperature* sensor);
80 UASensorsTemperature* sensor);
90 UASensorsTemperature* sensor,
101 UASensorsTemperature* sensor,
112 UASensorsTemperature* sensor,
124 UASensorsTemperature* sensor,
137 UASensorsTemperature* sensor,
UBUNTU_DLL_PUBLIC void ua_sensors_temperature_set_reading_cb(UASensorsTemperature *sensor, on_temperature_event_cb cb, void *ctx)
Set the callback to be invoked whenever a new sensor reading is available.
void(* on_temperature_event_cb)(UASTemperatureEvent *event, void *context)
Callback type used by applications to subscribe to ambient light sensor events.
void UASTemperatureEvent
Opaque type describing an ambient light sensor reading.
UBUNTU_DLL_PUBLIC UStatus ua_sensors_temperature_disable(UASensorsTemperature *sensor)
Disables the supplied ambient light sensor.
UbuntuStatus
Indicates the status of an operation.
UBUNTU_DLL_PUBLIC UStatus ua_sensors_temperature_set_event_rate(UASensorsTemperature *sensor, uint32_t rate)
Set the sensor event delivery rate in nanoseconds..
UBUNTU_DLL_PUBLIC UASensorsTemperature * ua_sensors_temperature_new()
Create a new object for accessing the ambient light sensor.
UBUNTU_DLL_PUBLIC UStatus ua_sensors_temperature_get_max_value(UASensorsTemperature *sensor, float *value)
Queries the maximum value that can be reported by the sensor.
UBUNTU_DLL_PUBLIC UStatus ua_sensors_temperature_get_min_value(UASensorsTemperature *sensor, float *value)
Queries the minimum value that can be reported by the sensor.
UBUNTU_DLL_PUBLIC UStatus ua_sensors_temperature_get_resolution(UASensorsTemperature *sensor, float *value)
Queries the numeric resolution supported by the sensor.
#define UBUNTU_DLL_PUBLIC
void UASensorsTemperature
Opaque type that models the ambient light sensor.
UBUNTU_DLL_PUBLIC UStatus ua_sensors_temperature_enable(UASensorsTemperature *sensor)
Enables the supplied ambient light sensor.
UBUNTU_DLL_PUBLIC uint32_t ua_sensors_temperature_get_min_delay(UASensorsTemperature *sensor)
Queries the minimum delay between two readings for the supplied sensor.