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:
parent
9e998d108a
commit
7b9fcfd30d
1 changed files with 23 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue