|
| void | pbl_udc_register (const struct pbl_udc *udc, const struct pbl_udc_callbacks *cb, void *arg) |
| | Take what the controller reports.
|
| |
| int | pbl_udc_enable (const struct pbl_udc *udc) |
| | Connect to the bus.
|
| |
| int | pbl_udc_disable (const struct pbl_udc *udc) |
| | Disconnect from the bus.
|
| |
| enum pbl_udc_speed | pbl_udc_speed (const struct pbl_udc *udc) |
| | The speed the bus runs at, once enumerated.
|
| |
| int | pbl_udc_set_address (const struct pbl_udc *udc, uint8_t addr) |
| | Take the address the host gave, before the status stage of its request.
|
| |
| int | pbl_udc_ep_enable (const struct pbl_udc *udc, uint8_t ep, enum pbl_udc_ep_type type, uint16_t mps) |
| | Set an endpoint up.
|
| |
| int | pbl_udc_ep_disable (const struct pbl_udc *udc, uint8_t ep) |
| | Shut an endpoint down.
|
| |
| int | pbl_udc_ep_set_halt (const struct pbl_udc *udc, uint8_t ep, bool halt) |
| | Stall an endpoint, or clear its stall.
|
| |
| int | pbl_udc_ep_queue (const struct pbl_udc *udc, uint8_t ep, void *buf, size_t len) |
| | Start a transfer.
|
| |
| 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_xfer_done (const struct pbl_udc *udc, uint8_t ep, int ret) |
| | Report the end of a transfer, from the controller's interrupt.
|
| |