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/i2c.h>
#include <pbl/kernel/mutex.h>
#include <pbl/kernel/sem.h>
#include <pbl/kernel/timer.h>

Data Structures

struct  pbl_i2c_bus_ops
 Bus driver operations. More...
 

Macros

#define PBL_I2C_BUS_STATE_DEFINE(sym)
 Define the class state of bus sym, for the PBL_I2C_*_DEFINE() macro of a driver.
 
#define PBL_I2C_BUS_INIT(sym, _name, _parent, _ops)
 Initializer for the struct pbl_i2c_bus of bus sym.
 

Functions

int pbl_i2c_bus_dev_init (const struct pbl_device *dev)
 Device init of every bus: sets the class state up, then calls the driver's init.
 
void pbl_i2c_bus_complete (const struct pbl_i2c_bus *bus, int status)
 Report the outcome of the transfer in flight.