PebbleOS v4.47.0-757-g12b6c531f
Loading...
Searching...
No Matches
pbl_udc_callbacks Struct Reference

What the stack does with what a controller reports, from its interrupt. More...

#include <udc.h>

Data Fields

void(* event )(const struct pbl_udc *udc, enum pbl_udc_event evt, const uint8_t *setup, void *arg)
 A bus event; for PBL_UDC_EVENT_SETUP, setup holds the 8 bytes of the packet.
 
void(* xfer_done )(const struct pbl_udc *udc, uint8_t ep, int ret, void *arg)
 The transfer queued on ep ended: ret bytes moved, or a negative errno.
 

Detailed Description

What the stack does with what a controller reports, from its interrupt.

Field Documentation

◆ event

void(* pbl_udc_callbacks::event) (const struct pbl_udc *udc, enum pbl_udc_event evt, const uint8_t *setup, void *arg)

A bus event; for PBL_UDC_EVENT_SETUP, setup holds the 8 bytes of the packet.

◆ xfer_done

void(* pbl_udc_callbacks::xfer_done) (const struct pbl_udc *udc, uint8_t ep, int ret, void *arg)

The transfer queued on ep ended: ret bytes moved, or a negative errno.


The documentation for this struct was generated from the following file: