libgpac
Documentation of the core library of GPAC
sensors_def.h File Reference
+ This graph shows which files directly or indirectly include this file:

Macros

#define SENSOR_ACCELEROMETER   0
 
#define SENSOR_GYROSCOPE   1
 
#define SENSOR_ORIENTATION   2
 
#define SENSOR_MAGNETOMETER   3
 
#define SENSOR_GPS   4
 

Typedefs

typedef void() SensorDataCallback(int sensor_type, float x, float y, float z, float w)
 

Functions

void * sensor_create (int type, SensorDataCallback *callback)
 
int sensor_destroy (void **inst)
 
int sensor_get_type (void *inst)
 
int sensor_start (void *inst)
 
int sensor_stop (void *inst)
 
int sensor_is_running (void *inst)
 

Macro Definition Documentation

◆ SENSOR_ACCELEROMETER

#define SENSOR_ACCELEROMETER   0

◆ SENSOR_GYROSCOPE

#define SENSOR_GYROSCOPE   1

◆ SENSOR_ORIENTATION

#define SENSOR_ORIENTATION   2

◆ SENSOR_MAGNETOMETER

#define SENSOR_MAGNETOMETER   3

◆ SENSOR_GPS

#define SENSOR_GPS   4

Typedef Documentation

◆ SensorDataCallback

typedef void() SensorDataCallback(int sensor_type, float x, float y, float z, float w)

Function Documentation

◆ sensor_create()

void* sensor_create ( int  type,
SensorDataCallback callback 
)
+ Here is the caller graph for this function:

◆ sensor_destroy()

int sensor_destroy ( void **  inst)

◆ sensor_get_type()

int sensor_get_type ( void *  inst)

◆ sensor_start()

int sensor_start ( void *  inst)
+ Here is the caller graph for this function:

◆ sensor_stop()

int sensor_stop ( void *  inst)
+ Here is the caller graph for this function:

◆ sensor_is_running()

int sensor_is_running ( void *  inst)