PebbleOS
Loading...
Searching...
No Matches
Enumerations | Functions
vibe_pattern.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <time.h>

Enumerations

enum  VibePatternOwner {
  VibePatternOwner_Other = 0 , VibePatternOwner_App , VibePatternOwner_Notification , VibePatternOwner_PhoneCall ,
  VibePatternOwner_Alarm
}
 Source that started a vibe pattern. More...
 

Functions

void vibes_init ()
 Initialize the service.
 
int32_t vibes_get_vibe_strength (void)
 Get the strength the motor is currently driven at.
 
uint32_t vibes_get_time_since_last_vibe_ms (void)
 Get the time since the motor was last active.
 
int32_t vibes_get_default_vibe_strength (void)
 Get the default strength, used by on/off pattern steps.
 
void vibes_set_default_vibe_strength (int32_t vibe_strength_default)
 Set the default strength, from the vibration strength setting.
 
void vibe_service_set_enabled (bool enable)
 Runlevel hook.
 
void vibe_pattern_set_owner (VibePatternOwner owner)
 Set the owner of the next pattern.
 
void vibe_pattern_clear_for_owner (VibePatternOwner owner)
 Stop the current pattern if owned by owner.