Go to the source code of this file.
Callback type used by applications to subscribe to orientation events.
Definition at line 41 of file orientation.h.
Opaque type that models the orientation.
Definition at line 35 of file orientation.h.
Disables the supplied orientation sensor.
- Returns
- U_STATUS_SUCCESS if successful or U_STATUS_ERROR if an error occured.
- Parameters
-
[in] | sensor | The sensor instance to be disabled. |
Enables the supplied orientation sensor.
- Returns
- U_STATUS_SUCCESS if successful or U_STATUS_ERROR if an error occured.
- Parameters
-
[in] | sensor | The sensor instance to be enabled. |
Queries the maximum value that can be reported by the sensor.
- Returns
- The maximum value that can be reported by the sensor.
- Parameters
-
[in] | sensor | The sensor instance to be queried. |
Queries the minimum delay between two readings for the supplied sensor.
- Returns
- The minimum delay between two readings in [ms].
- Parameters
-
[in] | sensor | The sensor instance to be queried. |
Queries the minimum value that can be reported by the sensor.
- Returns
- The minimum value that can be reported by the sensor.
- Parameters
-
[in] | sensor | The sensor instance to be queried. |
Queries the numeric resolution supported by the sensor.
- Returns
- The numeric resolution supported by the sensor.
- Parameters
-
[in] | sensor | The sensor instance to be queried. |
Create a new object for accessing the orientation sensor.
- Returns
- A new instance or NULL in case of errors.
Set the sensor event delivery rate in nanoseconds..
- Returns
- U_STATUS_SUCCESS if successful or U_STATUS_ERROR if an error occured.
- Parameters
-
[in] | sensor | The sensor instance to be modified. |
[in] | rate | The new event delivery rate. |
Set the callback to be invoked whenever a new sensor reading is available.
- Parameters
-
[in] | sensor | The sensor instance to associate the callback with. |
[in] | cb | The callback to be invoked. |
[in] | ctx | The context supplied to the callback invocation. |