39.1.3.16 usb_d_ep_register_callback
Register the USB device endpoint callback on initialized endpoint.
void usb_d_ep_register_callback(
const uint8_t ep,
const enum usb_d_ep_cb_type type,
const FUNC_PTR func
)
Parameters
- ep
-
Type: const uint8_t
The endpoint address.
- type
-
Type: const enum usb_d_ep_cb_type
The callback type to register.
- func
-
Type: const FUNC_PTR typedef
The callback function, NULL to disable callback.
Returns
Type: void