|
PebbleOS v4.47.0-1362-gd278268fe
|
#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <pbl/device.h>#include <pbl/drivers/charger.h>#include <pbl/drivers/udc.h>Data Structures | |
| struct | pbl_udc_ops |
| Driver operations. More... | |
| struct | pbl_udc |
| USB device controller. More... | |
Macros | |
| #define | PBL_UDC_STATE_DEFINE(sym) |
| Define the runtime state of a controller. | |
| #define | PBL_UDC_INIT(sym, _name, _parent, _ops, _num_eps, _max_speed, _caps, _vbus_charger) |
| Initializer of a controller. | |
Functions | |
| void | pbl_udc_event (const struct pbl_udc *udc, enum pbl_udc_event evt, const uint8_t *setup) |
| Report a bus event, from the controller's interrupt. | |
| void | pbl_udc_vbus_changed (const struct pbl_udc *udc, bool present) |
| Report USB power coming or going, from thread context, for a controller that senses it. | |
| void | pbl_udc_xfer_done (const struct pbl_udc *udc, uint8_t ep, int ret) |
| Report the end of a transfer, from the controller's interrupt. | |