PebbleOS v4.47.0-1362-gd278268fe
Loading...
Searching...
No Matches
driver.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <pbl/device.h>
#include <pbl/drivers/spi.h>
#include <pbl/kernel/sem.h>
#include <pbl/util/size.h>

Data Structures

struct  pbl_spi_bus_ops
 Bus driver operations. More...
 

Macros

#define PBL_SPI_BUS_STATE_DEFINE(sym, ...)
 Define the class state of bus sym, for the PBL_SPI_*_DEFINE() macro of a driver.
 
#define PBL_SPI_BUS_INIT(sym, _name, _parent, _ops)
 Initializer for the struct pbl_spi_bus of bus sym.
 

Functions

int pbl_spi_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_spi_bus_complete (const struct pbl_spi_bus *bus, int status)
 Report the outcome of the transfer in flight.