Skip to main content

Haptic Service

The haptic service is responsible for managing device vibration functions, providing different intensities of haptic feedback.

Haptic Strength Presets

typedef enum {
EOS_HAPTIC_STRENGTH_OFF = 0, // Off
EOS_HAPTIC_STRENGTH_NORMAL = 128, // Normal strength
EOS_HAPTIC_STRENGTH_INTENSE = 255, // Intense strength
} eos_haptic_strength_t;

Haptic Feedback Patterns

Short Light Vibration

Used for light haptic feedback prompts:

void eos_haptic_tick(void);

Stronger Longer Vibration

Used for scenarios requiring stronger haptic feedback:

void eos_haptic_buzz(void);

Strongest Longest Vibration

Used for important notifications or alerts:

void eos_haptic_vibrate_long(void);

Service Management

Initialize

void eos_service_haptic_init(void);

Set Global Vibration Strength

void eos_haptic_set_strength(eos_haptic_strength_t s);