usb_h_pipe_register_callback

Register transfer callback on a pipe.

static int32_t usb_h_pipe_register_callback(
    struct usb_h_pipe * pipe,
    usb_h_pipe_cb_xfer_t cb
)

Parameters

pipe

Type: struct usb_h_pipe *

The pipe

cb

Type: usb_h_pipe_cb_xfer_t

Transfer callback function

Returns

Type: int32_t

Operation result status

ERR_INVALID_ARG

Argument error

ERR_NONE

Operation done successfully