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

Data Structures

struct  pbl_als_ops
 Ambient light sensor driver operations, called with the device lock held. More...
 
struct  pbl_als_state
 Ambient light sensor runtime state. More...
 
struct  pbl_als
 Ambient light sensor. More...
 

Macros

#define PBL_ALS_STATE_DEFINE(sym)
 Define the class state of an ambient light sensor.
 
#define PBL_ALS_INIT(sym, _name, _parent, _ops, _scale)
 Initialize a struct pbl_als.