Ubuntu Platform API  1.0.0
A library helping with tight integration into the Ubuntu platform
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ubuntu_application_sensors.h File Reference
#include <ubuntu/status.h>
#include <ubuntu/visibility.h>
#include <stdint.h>
+ Include dependency graph for ubuntu_application_sensors.h:

Go to the source code of this file.

Data Structures

struct  ubuntu_sensor_accelerometer_reading
 
struct  ubuntu_sensor_proximity_reading
 
struct  ubuntu_sensor_ambient_light_reading
 
struct  ubuntu_sensor_observer
 

Typedefs

typedef void(* on_new_accelerometer_reading )(ubuntu_sensor_accelerometer_reading *reading, void *context)
 
typedef void(* on_new_proximity_reading )(ubuntu_sensor_proximity_reading *reading, void *context)
 
typedef void(* on_new_ambient_light_reading )(ubuntu_sensor_ambient_light_reading *reading, void *context)
 

Enumerations

enum  ubuntu_sensor_type {
  first_defined_sensor_type = 0,
  ubuntu_sensor_type_accelerometer = first_defined_sensor_type,
  ubuntu_sensor_type_magnetic_field,
  ubuntu_sensor_type_gyroscope,
  ubuntu_sensor_type_light,
  ubuntu_sensor_type_proximity,
  ubuntu_sensor_type_orientation,
  ubuntu_sensor_type_linear_acceleration,
  ubuntu_sensor_type_rotation_vector,
  undefined_sensor_type
}
 

Functions

UBUNTU_DLL_PUBLIC void ubuntu_sensor_initialize_observer (ubuntu_sensor_observer *observer)
 
UBUNTU_DLL_PUBLIC void ubuntu_sensor_install_observer (ubuntu_sensor_observer *observer)
 
UBUNTU_DLL_PUBLIC void ubuntu_sensor_uninstall_observer (ubuntu_sensor_observer *observer)
 
UBUNTU_DLL_PUBLIC void ubuntu_sensor_enable_sensor (ubuntu_sensor_type sensor_type)
 
UBUNTU_DLL_PUBLIC void ubuntu_sensor_disable_sensor (ubuntu_sensor_type sensor_type)
 
UBUNTU_DLL_PUBLIC int32_t ubuntu_sensor_get_sensor_min_delay (ubuntu_sensor_type sensor_type)
 
UBUNTU_DLL_PUBLIC UStatus ubuntu_sensor_get_sensor_min_value (ubuntu_sensor_type sensor_type, float *value)
 
UBUNTU_DLL_PUBLIC UStatus ubuntu_sensor_get_sensor_max_value (ubuntu_sensor_type sensor_type, float *value)
 
UBUNTU_DLL_PUBLIC UStatus ubuntu_sensor_get_sensor_resolution (ubuntu_sensor_type sensor_type, float *value)
 

Function Documentation

UBUNTU_DLL_PUBLIC void ubuntu_sensor_initialize_observer ( ubuntu_sensor_observer observer)