/* Handler called for DFU Class requests not handled by the USB stack.  */
static int dfu_class_handle_req(struct usb_setup_packet *setup, int32_t *data_len, uint8_t **data)
/* Handler called for DFU Class requests not handled by the USB stack.  */
static int dfu_class_handle_req(struct usb_setup_packet *setup, int32_t *data_len, uint8_t **data)
{
	if (usb_reqtype_is_to_host(setup)) {
		return dfu_class_handle_to_host(setup, data_len, data);
	} else {
		return dfu_class_handle_to_device(setup, data_len, data);
	}
}