Ubuntu Platform API  3.0.0
A library helping with tight integration into the Ubuntu platform
temperature.h File Reference
#include <ubuntu/visibility.h>
#include <stdint.h>
+ Include dependency graph for temperature.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void UASTemperatureEvent
 Opaque type describing an ambient light sensor reading. More...
 

Functions

UBUNTU_DLL_PUBLIC uint64_t uas_temperature_event_get_timestamp (UASTemperatureEvent *event)
 Query the timestamp of the sensor reading. More...
 
UBUNTU_DLL_PUBLIC UStatus uas_temperature_event_get_temperature (UASTemperatureEvent *event, float *value)
 Query the value measured by the ambient light sensor. More...
 

Typedef Documentation

◆ UASTemperatureEvent

typedef void UASTemperatureEvent

Opaque type describing an ambient light sensor reading.

Definition at line 34 of file temperature.h.

Function Documentation

◆ uas_temperature_event_get_temperature()

UBUNTU_DLL_PUBLIC UStatus uas_temperature_event_get_temperature ( UASTemperatureEvent event,
float *  value 
)

Query the value measured by the ambient light sensor.

Returns
The ambient light level.
Parameters
[in]eventThe reading to be queried.

◆ uas_temperature_event_get_timestamp()

UBUNTU_DLL_PUBLIC uint64_t uas_temperature_event_get_timestamp ( UASTemperatureEvent event)

Query the timestamp of the sensor reading.

Returns
The timestamp of the sensor reading in [µs], timebase: monotonic clock.
Parameters
[in]eventThe reading to be queried.