Ubuntu Platform API
3.0.0
A library helping with tight integration into the Ubuntu platform
|
|
Go to the documentation of this file.
19 #ifndef UBUNTU_APPLICATION_SENSORS_HAPTIC_H_
20 #define UBUNTU_APPLICATION_SENSORS_HAPTIC_H_
87 #define MAX_PATTERN_SIZE 6
UBUNTU_DLL_PUBLIC UStatus ua_sensors_haptic_disable(UASensorsHaptic *sensor)
Disables the supplied haptics device.
UBUNTU_DLL_PUBLIC UStatus ua_sensors_haptic_enable(UASensorsHaptic *sensor)
Enables the supplied haptics device.
UbuntuStatus
Indicates the status of an operation.
#define UBUNTU_DLL_PUBLIC
void UASensorsHaptic
Opaque type that models the haptics device.
UBUNTU_DLL_PUBLIC UStatus ua_sensors_haptic_vibrate_once(UASensorsHaptic *sensor, uint32_t duration)
Run the vibrator for a fixed duration.
UBUNTU_DLL_PUBLIC UStatus ua_sensors_haptic_vibrate_with_pattern(UASensorsHaptic *sensor, uint32_t pattern[MAX_PATTERN_SIZE], uint32_t repeat)
Run the vibrator with a pattern and repeat a precise number of times.
UBUNTU_DLL_PUBLIC void ua_sensors_haptic_destroy(UASensorsHaptic *sensor)
Destroys the given sensor instance and releases all resources held by the instance.
UBUNTU_DLL_PUBLIC UASensorsHaptic * ua_sensors_haptic_new()
Create a new object for accessing the haptics device. Ownership is transfered to caller.