Go to the source code of this file.
Macros | |
#define | MAX_PATTERN_SIZE 6 |
Typedefs | |
typedef void | UASensorsHaptic |
Opaque type that models the haptics device. More... | |
Functions | |
UBUNTU_DLL_PUBLIC UASensorsHaptic * | ua_sensors_haptic_new () |
Create a new object for accessing the haptics device. More... | |
UBUNTU_DLL_PUBLIC UStatus | ua_sensors_haptic_enable (UASensorsHaptic *sensor) |
Enables the supplied haptics device. More... | |
UBUNTU_DLL_PUBLIC UStatus | ua_sensors_haptic_disable (UASensorsHaptic *sensor) |
Disables the supplied haptics device. More... | |
UBUNTU_DLL_PUBLIC UStatus | ua_sensors_haptic_vibrate_once (UASensorsHaptic *sensor, uint32_t duration) |
Run the vibrator for a fixed duration. More... | |
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. More... | |