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

Data Structures

struct  pbl_phy_ops
 PHY driver operations, called with the device lock held. More...
 
struct  pbl_phy_state
 PHY runtime state. More...
 
struct  pbl_phy
 PHY. More...
 

Macros

#define PBL_PHY_STATE_DEFINE(sym)
 Define the runtime state of a PHY.
 
#define PBL_PHY_INIT(sym, _name, _parent, _ops)
 Initialize a struct pbl_phy.
 

Functions

void pbl_phy_report_vbus_changed (const struct pbl_phy *phy)
 Report VBUS coming or going to the listeners, from thread context.