diff --git a/sys/include/usb/hid.h b/sys/include/usb/hid.h index 5100d6f93d..516dd7ebf9 100644 --- a/sys/include/usb/hid.h +++ b/sys/include/usb/hid.h @@ -83,6 +83,16 @@ extern "C" { #define USB_HID_REQUEST_SET_PROTOCOL 0x0b /** @} */ +/** + * @brief Number of IN EPs required for the HID interface + */ +#define USBUS_HID_EP_IN_REQUIRED_NUMOF 1 + +/** + * @brief Number of Out EPs required for the HID interface + */ +#define USBUS_HID_EP_OUT_REQUIRED_NUMOF 1 + /** * @brief USB HID descriptor struct * diff --git a/sys/include/usb/usbus/cdc/acm.h b/sys/include/usb/usbus/cdc/acm.h index 0a580b0855..103da7ffdb 100644 --- a/sys/include/usb/usbus/cdc/acm.h +++ b/sys/include/usb/usbus/cdc/acm.h @@ -89,6 +89,16 @@ extern "C" { */ #define USBUS_CDC_ACM_INT_EP_SIZE (8) +/** + * @brief Number of IN EPs required for the CDC ACM interface + */ +#define USBUS_CDC_ACM_EP_IN_REQUIRED_NUMOF 2 + +/** + * @brief Number of Out EPs required for the CDC ACM interface + */ +#define USBUS_CDC_ACM_EP_OUT_REQUIRED_NUMOF 1 + /** * @brief CDC ACM line state as reported by the host computer */ diff --git a/sys/include/usb/usbus/cdc/ecm.h b/sys/include/usb/usbus/cdc/ecm.h index 5f99af2dde..adaec1b732 100644 --- a/sys/include/usb/usbus/cdc/ecm.h +++ b/sys/include/usb/usbus/cdc/ecm.h @@ -87,6 +87,16 @@ extern "C" { */ #define USBUS_ETHERNET_FRAME_BUF MATH_ALIGN(ETHERNET_FRAME_LEN, USBUS_CDCECM_EP_DATA_SIZE) +/** + * @brief Number of IN EPs required for the CDC ECM interface + */ +#define USBUS_CDC_ECM_EP_IN_REQUIRED_NUMOF 2 + +/** + * @brief Number of Out EPs required for the CDC ECM interface + */ +#define USBUS_CDC_ECM_EP_OUT_REQUIRED_NUMOF 1 + /** * @brief notification state, used to track which information must be send to * the host diff --git a/sys/include/usb/usbus/control.h b/sys/include/usb/usbus/control.h index 69e8028111..3afa2ff880 100644 --- a/sys/include/usb/usbus/control.h +++ b/sys/include/usb/usbus/control.h @@ -21,6 +21,16 @@ #ifndef USB_USBUS_CONTROL_H #define USB_USBUS_CONTROL_H +/** + * @brief Number of IN EPs required for the control interface + */ +#define USBUS_CONTROL_EP_IN_REQUIRED_NUMOF 1 + +/** + * @brief Number of IN EPs required for the control interface + */ +#define USBUS_CONTROL_EP_OUT_REQUIRED_NUMOF 1 + #include "usb/usbus.h" #ifdef __cplusplus diff --git a/sys/include/usb/usbus/msc.h b/sys/include/usb/usbus/msc.h index 4e3ee02e8d..4f664ca13f 100644 --- a/sys/include/usb/usbus/msc.h +++ b/sys/include/usb/usbus/msc.h @@ -31,6 +31,16 @@ extern "C" { #endif +/** + * @brief Number of IN EPs required for the MSC interface + */ +#define USBUS_MSC_EP_IN_REQUIRED_NUMOF 1 + +/** + * @brief Number of Out EPs required for the MSC interface + */ +#define USBUS_MSC_EP_OUT_REQUIRED_NUMOF 1 + /** * @brief USBUS MSC Number of exported MTD device through USB */