Make sure docs are updated / settings_md (push) Canceled after 0s
Build firmware / test (push) Canceled after 0s
Build firmware / build-SITL-Windows (push) Canceled after 0s
Build firmware / build-SITL-Mac (push) Canceled after 0s
Build firmware / build-SITL-Linux (push) Canceled after 0s
Build firmware / build-SITL-Linux-arm64 (push) Canceled after 0s
Build firmware / upload-artifacts (push) Canceled after 0s
Build firmware / build-single-target (push) Canceled after 0s
Build firmware / build (9) (push) Canceled after 0s
Build firmware / build (8) (push) Canceled after 0s
Build firmware / build (7) (push) Canceled after 0s
Build firmware / build (6) (push) Canceled after 0s
Build firmware / build (5) (push) Canceled after 0s
Build firmware / build (4) (push) Canceled after 0s
Build firmware / build (3) (push) Canceled after 0s
Build firmware / build (2) (push) Canceled after 0s
Build firmware / build (14) (push) Canceled after 0s
Build firmware / build (13) (push) Canceled after 0s
Build firmware / build (12) (push) Canceled after 0s
Build firmware / build (11) (push) Canceled after 0s
Build firmware / build (10) (push) Canceled after 0s
Build firmware / build (1) (push) Canceled after 0s
Build firmware / build (0) (push) Canceled after 0s
Build firmware / detect (push) Canceled after 0s
Build pre-release / build (push) Canceled after 0s
Build pre-release / Release (push) Canceled after 0s
93 lines
2.9 KiB
C
93 lines
2.9 KiB
C
/**
|
|
******************************************************************************
|
|
* @file usb_def.h
|
|
* @author MCD Application Team
|
|
* @version V4.0.0
|
|
* @date 28-August-2012
|
|
* @brief Definitions related to USB Core
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* <h2><center>© COPYRIGHT 2012 STMicroelectronics</center></h2>
|
|
*
|
|
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
|
|
* You may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at:
|
|
*
|
|
* http://www.st.com/software_license_agreement_liberty_v2
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
#ifndef __USB_DEF_H
|
|
#define __USB_DEF_H
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
/* Exported types ------------------------------------------------------------*/
|
|
typedef enum _RECIPIENT_TYPE
|
|
{
|
|
DEVICE_RECIPIENT, /* Recipient device */
|
|
INTERFACE_RECIPIENT, /* Recipient interface */
|
|
ENDPOINT_RECIPIENT, /* Recipient endpoint */
|
|
OTHER_RECIPIENT
|
|
} RECIPIENT_TYPE;
|
|
|
|
|
|
typedef enum _STANDARD_REQUESTS
|
|
{
|
|
GET_STATUS = 0,
|
|
CLEAR_FEATURE,
|
|
RESERVED1,
|
|
SET_FEATURE,
|
|
RESERVED2,
|
|
SET_ADDRESS,
|
|
GET_DESCRIPTOR,
|
|
SET_DESCRIPTOR,
|
|
GET_CONFIGURATION,
|
|
SET_CONFIGURATION,
|
|
GET_INTERFACE,
|
|
SET_INTERFACE,
|
|
TOTAL_sREQUEST, /* Total number of Standard request */
|
|
SYNCH_FRAME = 12
|
|
} STANDARD_REQUESTS;
|
|
|
|
/* Definition of "USBwValue" */
|
|
typedef enum _DESCRIPTOR_TYPE
|
|
{
|
|
DEVICE_DESCRIPTOR = 1,
|
|
CONFIG_DESCRIPTOR,
|
|
STRING_DESCRIPTOR,
|
|
INTERFACE_DESCRIPTOR,
|
|
ENDPOINT_DESCRIPTOR
|
|
} DESCRIPTOR_TYPE;
|
|
|
|
/* Feature selector of a SET_FEATURE or CLEAR_FEATURE */
|
|
typedef enum _FEATURE_SELECTOR
|
|
{
|
|
ENDPOINT_STALL,
|
|
DEVICE_REMOTE_WAKEUP
|
|
} FEATURE_SELECTOR;
|
|
|
|
/* Exported constants --------------------------------------------------------*/
|
|
/* Definition of "USBbmRequestType" */
|
|
#define REQUEST_TYPE 0x60 /* Mask to get request type */
|
|
#define STANDARD_REQUEST 0x00 /* Standard request */
|
|
#define CLASS_REQUEST 0x20 /* Class request */
|
|
#define VENDOR_REQUEST 0x40 /* Vendor request */
|
|
|
|
#define RECIPIENT 0x1F /* Mask to get recipient */
|
|
|
|
/* Exported macro ------------------------------------------------------------*/
|
|
/* Exported functions ------------------------------------------------------- */
|
|
|
|
#endif /* __USB_DEF_H */
|
|
|
|
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|