PebbleOS v4.47.0-1362-gd278268fe
Loading...
Searching...
No Matches
driver.h File Reference
#include <stdint.h>
#include <pbl/device.h>
#include <pbl/drivers/vibe.h>
#include <pbl/kernel/mutex.h>

Data Structures

struct  pbl_vibe_ops
 Vibration motor driver operations, called with the device lock held. More...
 
struct  pbl_vibe_state
 Vibration motor runtime state. More...
 
struct  pbl_vibe
 Vibration motor. More...
 

Macros

#define PBL_VIBE_STATE_DEFINE(sym)
 Define the class state of a vibration motor.
 
#define PBL_VIBE_INIT(sym, _name, _parent, _ops, _braking_strength)
 Initialize a struct pbl_vibe.