drivers: usb: Add enum type for Synchronization Type.

This commit adds enumeration type for isochronous
endpoints specific information required by USB Audio Class.

Signed-off-by: Emil Obalski <emil.obalski@nordicsemi.no>
This commit is contained in:
Emil Obalski 2020-04-21 14:56:41 +02:00 committed by Carles Cufí
commit 7b9fcfd30d

View file

@ -31,6 +31,13 @@
*/
#define USB_EP_TRANSFER_TYPE_MASK 0x3
/**
* USB endpoint Synchronization Type mask.
*
* @note Valid only for Isochronous Endpoints
*/
#define USB_EP_SYNCHRONIZATION_TYPE_MASK (0x3 << 2U)
/**
* @brief USB Device Controller API
* @defgroup _usb_device_controller_api USB Device Controller API
@ -97,6 +104,22 @@ enum usb_dc_ep_transfer_type {
USB_DC_EP_INTERRUPT
};
/**
* @brief USB Endpoint Synchronization Type
*
* @note Valid only for Isochronous Endpoints
*/
enum usb_dc_ep_synchronozation_type {
/** No Synchronization */
USB_DC_EP_NO_SYNCHRONIZATION = (0U << 2U),
/** Asynchronous */
USB_DC_EP_ASYNCHRONOUS = (1U << 2U),
/** Adaptive */
USB_DC_EP_ADAPTIVE = (2U << 2U),
/** Synchronous*/
USB_DC_EP_SYNCHRONOUS = (3U << 2U)
};
/**
* @brief USB Endpoint Configuration.
*