Commit 7b9fcfd3 authored by Emil Obalski's avatar Emil Obalski Committed by Carles Cufi
Browse files

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: default avatarEmil Obalski <emil.obalski@nordicsemi.no>
parent 9e998d10
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -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.
 *