usb_d_register_callback

Register the USB device callback.

void usb_d_register_callback(
    const enum usb_d_cb_type type,
    const FUNC_PTR func
)

Parameters

type

Type: const enum usb_d_cb_type

The callback type to register.

func

Type: const FUNC_PTR typedef

The callback function, NULL to disable callback.

Returns

Type: void