usb: device: Add composite status callback
Add new status callback with usb_cfg_data parameter to be able to identify instance callback. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
9ef8ad412f
commit
b48a8c3247
3 changed files with 47 additions and 14 deletions
|
@ -191,6 +191,11 @@ struct usb_cfg_data {
|
|||
usb_interface_config interface_config;
|
||||
/** Callback to be notified on USB connection status change */
|
||||
usb_dc_status_callback cb_usb_status;
|
||||
/** Composite callback */
|
||||
void (*cb_usb_status_composite)(struct usb_cfg_data *cfg,
|
||||
enum usb_dc_status_code cb_status,
|
||||
const u8_t *param);
|
||||
|
||||
/** USB interface (Class) handler and storage space */
|
||||
struct usb_interface_cfg_data interface;
|
||||
/** Number of individual endpoints in the device configuration */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue