Ubuntu Platform API  3.0.0
A library helping with tight integration into the Ubuntu platform
gyroscope.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Canonical, Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it under
5  * the terms of the GNU Lesser General Public License version 3, as published by
6  * the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
10  * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Author: Gerry Boland <gerry.boland@canonical.com>
17  */
18 
19 #ifndef UBUNTU_APPLICATION_SENSORS_GYROSCOPE_EVENT_H_
20 #define UBUNTU_APPLICATION_SENSORS_GYROSCOPE_EVENT_H_
21 
22 #include <ubuntu/visibility.h>
23 
24 #include <stdint.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
34  typedef void UASGyroscopeEvent;
35 
42  UBUNTU_DLL_PUBLIC uint64_t
44  UASGyroscopeEvent* event);
45 
55  UASGyroscopeEvent* event,
56  float* value);
57 
67  UASGyroscopeEvent* event,
68  float* value);
69 
79  UASGyroscopeEvent* event,
80  float* value);
81 
82 #ifdef __cplusplus
83 }
84 #endif
85 
86 #endif // UBUNTU_APPLICATION_SENSORS_GYROSCOPE_EVENT_H_
visibility.h
UbuntuStatus
UbuntuStatus
Indicates the status of an operation.
Definition: status.h:26
UBUNTU_DLL_PUBLIC
#define UBUNTU_DLL_PUBLIC
Definition: visibility.h:26
uas_gyroscope_event_get_timestamp
UBUNTU_DLL_PUBLIC uint64_t uas_gyroscope_event_get_timestamp(UASGyroscopeEvent *event)
Query the timestamp of the sensor reading.
uas_gyroscope_event_get_rate_of_rotation_around_y
UBUNTU_DLL_PUBLIC UStatus uas_gyroscope_event_get_rate_of_rotation_around_y(UASGyroscopeEvent *event, float *value)
Query the rate of rotation around the y-axis.
UASGyroscopeEvent
void UASGyroscopeEvent
Opaque type describing a gyroscope reading.
Definition: gyroscope.h:34
uas_gyroscope_event_get_rate_of_rotation_around_z
UBUNTU_DLL_PUBLIC UStatus uas_gyroscope_event_get_rate_of_rotation_around_z(UASGyroscopeEvent *event, float *value)
Query the rate of rotation around the z-axis.
uas_gyroscope_event_get_rate_of_rotation_around_x
UBUNTU_DLL_PUBLIC UStatus uas_gyroscope_event_get_rate_of_rotation_around_x(UASGyroscopeEvent *event, float *value)
Query the rate of rotation around the x-axis.