Ubuntu Platform API  1.1.0
A library helping with tight integration into the Ubuntu platform
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
proximity.h File Reference
#include <ubuntu/visibility.h>
#include <stdint.h>
+ Include dependency graph for proximity.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef
UbuntuApplicationSensorsProximityDistance 
UASProximityDistance
 
typedef void UASProximityEvent
 Opaque type describing an accelerometer reading. More...
 

Enumerations

enum  UbuntuApplicationSensorsProximityDistance {
  U_PROXIMITY_NEAR = 1,
  U_PROXIMITY_FAR = 2
}
 Useful constants when inspecting readings from the proximity sensor. More...
 

Functions

UBUNTU_DLL_PUBLIC uint64_t uas_proximity_event_get_timestamp (UASProximityEvent *event)
 Query the timestamp of the sensor reading. More...
 
UBUNTU_DLL_PUBLIC
UASProximityDistance 
uas_proximity_event_get_distance (UASProximityEvent *event)
 Query the discrete distance as reported by the proximity sensor. More...
 

Typedef Documentation