Ubuntu Platform API  2.0.0
A library helping with tight integration into the Ubuntu platform
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
haptic.h File Reference
#include <ubuntu/status.h>
#include <ubuntu/visibility.h>
#include <stdint.h>
+ Include dependency graph for haptic.h:

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 UASensorsHapticua_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...
 

Macro Definition Documentation

#define MAX_PATTERN_SIZE   6

Definition at line 77 of file haptic.h.