39.2.1.5 usb_h_register_callback
Register callbacks for USB HCD.
static int32_t usb_h_register_callback(
struct usb_h_desc * drv,
enum usb_h_cb_type type,
FUNC_PTR cb
)
Parameters
- drv
-
Type: struct usb_h_desc *
The driver
- type
-
Type: enum usb_h_cb_type
The callback type
- cb
-
Type: FUNC_PTR typedef
The callback function entry
Returns
Type: int32_t
Operation result status
- ERR_INVALID_ARG
-
Argument error
- ERR_NONE
-
Operation done successfully