STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
USB_DEF_Exported_Defines
Collaboration diagram for USB_DEF_Exported_Defines:

Macros

#define NULL   0U
#define USBD_MAX_NUM_INTERFACES   1U
#define USBD_MAX_NUM_CONFIGURATION   1U
#define USBD_MAX_SUPPORTED_CLASS   1U
#define USBD_MAX_CLASS_ENDPOINTS   5U
#define USBD_MAX_CLASS_INTERFACES   5U
#define USBD_LPM_ENABLED   0U
#define USBD_SELF_POWERED   1U
#define USBD_MAX_POWER   0x32U /* 100 mA */
#define USBD_SUPPORT_USER_STRING_DESC   0U
#define USBD_CLASS_USER_STRING_DESC   0U
#define USB_LEN_DEV_QUALIFIER_DESC   0x0AU
#define USB_LEN_DEV_DESC   0x12U
#define USB_LEN_CFG_DESC   0x09U
#define USB_LEN_IF_DESC   0x09U
#define USB_LEN_EP_DESC   0x07U
#define USB_LEN_OTG_DESC   0x03U
#define USB_LEN_LANGID_STR_DESC   0x04U
#define USB_LEN_OTHER_SPEED_DESC_SIZ   0x09U
#define USBD_IDX_LANGID_STR   0x00U
#define USBD_IDX_MFC_STR   0x01U
#define USBD_IDX_PRODUCT_STR   0x02U
#define USBD_IDX_SERIAL_STR   0x03U
#define USBD_IDX_CONFIG_STR   0x04U
#define USBD_IDX_INTERFACE_STR   0x05U
#define USB_REQ_TYPE_STANDARD   0x00U
#define USB_REQ_TYPE_CLASS   0x20U
#define USB_REQ_TYPE_VENDOR   0x40U
#define USB_REQ_TYPE_MASK   0x60U
#define USB_REQ_RECIPIENT_DEVICE   0x00U
#define USB_REQ_RECIPIENT_INTERFACE   0x01U
#define USB_REQ_RECIPIENT_ENDPOINT   0x02U
#define USB_REQ_RECIPIENT_MASK   0x03U
#define USB_REQ_GET_STATUS   0x00U
#define USB_REQ_CLEAR_FEATURE   0x01U
#define USB_REQ_SET_FEATURE   0x03U
#define USB_REQ_SET_ADDRESS   0x05U
#define USB_REQ_GET_DESCRIPTOR   0x06U
#define USB_REQ_SET_DESCRIPTOR   0x07U
#define USB_REQ_GET_CONFIGURATION   0x08U
#define USB_REQ_SET_CONFIGURATION   0x09U
#define USB_REQ_GET_INTERFACE   0x0AU
#define USB_REQ_SET_INTERFACE   0x0BU
#define USB_REQ_SYNCH_FRAME   0x0CU
#define USB_DESC_TYPE_DEVICE   0x01U
#define USB_DESC_TYPE_CONFIGURATION   0x02U
#define USB_DESC_TYPE_STRING   0x03U
#define USB_DESC_TYPE_INTERFACE   0x04U
#define USB_DESC_TYPE_ENDPOINT   0x05U
#define USB_DESC_TYPE_DEVICE_QUALIFIER   0x06U
#define USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION   0x07U
#define USB_DESC_TYPE_IAD   0x0BU
#define USB_DESC_TYPE_BOS   0x0FU
#define USB_CONFIG_REMOTE_WAKEUP   0x02U
#define USB_CONFIG_SELF_POWERED   0x01U
#define USB_FEATURE_EP_HALT   0x00U
#define USB_FEATURE_REMOTE_WAKEUP   0x01U
#define USB_FEATURE_TEST_MODE   0x02U
#define USB_DEVICE_CAPABITY_TYPE   0x10U
#define USB_CONF_DESC_SIZE   0x09U
#define USB_IF_DESC_SIZE   0x09U
#define USB_EP_DESC_SIZE   0x07U
#define USB_IAD_DESC_SIZE   0x08U
#define USB_HS_MAX_PACKET_SIZE   512U
#define USB_FS_MAX_PACKET_SIZE   64U
#define USB_MAX_EP0_SIZE   64U
#define USBD_STATE_DEFAULT   0x01U
#define USBD_STATE_ADDRESSED   0x02U
#define USBD_STATE_CONFIGURED   0x03U
#define USBD_STATE_SUSPENDED   0x04U
#define USBD_EP0_IDLE   0x00U
#define USBD_EP0_SETUP   0x01U
#define USBD_EP0_DATA_IN   0x02U
#define USBD_EP0_DATA_OUT   0x03U
#define USBD_EP0_STATUS_IN   0x04U
#define USBD_EP0_STATUS_OUT   0x05U
#define USBD_EP0_STALL   0x06U
#define USBD_EP_TYPE_CTRL   0x00U
#define USBD_EP_TYPE_ISOC   0x01U
#define USBD_EP_TYPE_BULK   0x02U
#define USBD_EP_TYPE_INTR   0x03U

Detailed Description

Macro Definition Documentation

◆ NULL

#define NULL   0U

Definition at line 44 of file usbd_def.h.

Referenced by _sbrk(), board_bringup_power_up(), board_spi_idle_clocks(), board_spi_init(), bringup_task(), bringup_task_start(), CDC_Transmit_HS(), check_gps(), disk_new(), emmc_log_init(), emmc_stm32_card(), emmc_stm32_init(), find(), gnss_task(), gnss_task_start(), idle_enter(), idle_init(), idle_last_heartbeat(), idle_on_wake(), idle_task(), idle_task_start(), main(), main(), mount(), ms5611_reset(), ms5611_start(), nominal(), osEventFlagsClear(), osEventFlagsDelete(), osEventFlagsGet(), osEventFlagsNew(), osEventFlagsSet(), osEventFlagsWait(), osKernelGetInfo(), osMessageQueueDelete(), osMessageQueueGet(), osMessageQueueGetCapacity(), osMessageQueueGetCount(), osMessageQueueGetMsgSize(), osMessageQueueGetSpace(), osMessageQueueNew(), osMessageQueuePut(), osMessageQueueReset(), osSemaphoreAcquire(), osSemaphoreDelete(), osSemaphoreGetCount(), osSemaphoreNew(), osSemaphoreRelease(), osThreadEnumerate(), osThreadExit(), osThreadGetName(), osThreadGetPriority(), osThreadGetStackSpace(), osThreadGetState(), osThreadNew(), osThreadResume(), osThreadSetPriority(), osThreadSuspend(), osThreadTerminate(), poll_command(), port_valid(), prvAddNewTaskToReadyList(), prvCopyDataToQueue(), prvHeapInit(), prvInitialiseNewQueue(), prvInitialiseTaskLists(), prvUnlockQueue(), pvPortCalloc(), route(), sd_command(), sd_nand_probe(), sd_read_cid(), search(), self_test_status(), sensors_task_start(), start_emmc(), take(), test_init_rejects_bad_input(), test_invalid_init(), test_invalid_inputs(), test_missing_and_optional(), test_missing_arguments_are_refused(), test_required_chip_or_bad_battery_is_fail(), test_reset_and_copied_dependencies(), ubx_poll(), USBD_CDC_DataIn(), USBD_CDC_DataOut(), USBD_CDC_DeInit(), USBD_CDC_EP0_RxReady(), USBD_CDC_GetFSCfgDesc(), USBD_CDC_GetHSCfgDesc(), USBD_CDC_GetOtherSpeedCfgDesc(), USBD_CDC_Init(), USBD_CDC_ReceivePacket(), USBD_CDC_RegisterInterface(), USBD_CDC_SetRxBuffer(), USBD_CDC_SetTxBuffer(), USBD_CDC_Setup(), USBD_CDC_TransmitPacket(), USBD_ClrClassConfig(), USBD_CoreFindEP(), USBD_CoreFindIF(), USBD_CtlReceiveStatus(), USBD_CtlSendStatus(), USBD_DeInit(), USBD_GetDescriptor(), USBD_GetEpDesc(), USBD_GetString(), USBD_Init(), USBD_LL_DataInStage(), USBD_LL_DataOutStage(), USBD_LL_DevDisconnected(), USBD_LL_IsoINIncomplete(), USBD_LL_IsoOUTIncomplete(), USBD_LL_Reset(), USBD_LL_SOF(), USBD_RegisterClass(), USBD_SetClassConfig(), USBD_SetConfig(), USBD_StdEPReq(), USBD_StdItfReq(), USBD_Stop(), uxListRemove(), vListInitialise(), vListInitialiseItem(), vPortFree(), vPortGetHeapStats(), vTaskStartScheduler(), world_init(), write_reg(), write_reg(), xQueueGenericReset(), xQueueGenericSend(), xQueueGenericSendFromISR(), xQueueGiveFromISR(), xQueuePeek(), xQueuePeekFromISR(), xQueueReceive(), xQueueReceiveFromISR(), xStreamBufferReceive(), xStreamBufferReceiveCompletedFromISR(), xStreamBufferReset(), xStreamBufferSend(), xStreamBufferSendCompletedFromISR(), xTaskIncrementTick(), and xTaskResumeAll().

◆ USB_CONF_DESC_SIZE

#define USB_CONF_DESC_SIZE   0x09U

Definition at line 150 of file usbd_def.h.

◆ USB_CONFIG_REMOTE_WAKEUP

#define USB_CONFIG_REMOTE_WAKEUP   0x02U

Definition at line 141 of file usbd_def.h.

Referenced by USBD_GetStatus().

◆ USB_CONFIG_SELF_POWERED

#define USB_CONFIG_SELF_POWERED   0x01U

Definition at line 142 of file usbd_def.h.

Referenced by USBD_GetStatus().

◆ USB_DESC_TYPE_BOS

#define USB_DESC_TYPE_BOS   0x0FU

Definition at line 139 of file usbd_def.h.

Referenced by USBD_GetDescriptor().

◆ USB_DESC_TYPE_CONFIGURATION

#define USB_DESC_TYPE_CONFIGURATION   0x02U

Definition at line 132 of file usbd_def.h.

Referenced by USBD_GetDescriptor().

◆ USB_DESC_TYPE_DEVICE

#define USB_DESC_TYPE_DEVICE   0x01U

Definition at line 131 of file usbd_def.h.

Referenced by USBD_GetDescriptor().

◆ USB_DESC_TYPE_DEVICE_QUALIFIER

#define USB_DESC_TYPE_DEVICE_QUALIFIER   0x06U

Definition at line 136 of file usbd_def.h.

Referenced by USBD_GetDescriptor().

◆ USB_DESC_TYPE_ENDPOINT

#define USB_DESC_TYPE_ENDPOINT   0x05U

Definition at line 135 of file usbd_def.h.

Referenced by USBD_GetEpDesc().

◆ USB_DESC_TYPE_IAD

#define USB_DESC_TYPE_IAD   0x0BU

Definition at line 138 of file usbd_def.h.

◆ USB_DESC_TYPE_INTERFACE

#define USB_DESC_TYPE_INTERFACE   0x04U

Definition at line 134 of file usbd_def.h.

◆ USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION

#define USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION   0x07U

Definition at line 137 of file usbd_def.h.

Referenced by USBD_GetDescriptor().

◆ USB_DESC_TYPE_STRING

#define USB_DESC_TYPE_STRING   0x03U

Definition at line 133 of file usbd_def.h.

Referenced by USBD_GetDescriptor(), and USBD_GetString().

◆ USB_DEVICE_CAPABITY_TYPE

#define USB_DEVICE_CAPABITY_TYPE   0x10U

Definition at line 148 of file usbd_def.h.

◆ USB_EP_DESC_SIZE

#define USB_EP_DESC_SIZE   0x07U

Definition at line 152 of file usbd_def.h.

◆ USB_FEATURE_EP_HALT

#define USB_FEATURE_EP_HALT   0x00U

Definition at line 144 of file usbd_def.h.

Referenced by USBD_StdEPReq().

◆ USB_FEATURE_REMOTE_WAKEUP

#define USB_FEATURE_REMOTE_WAKEUP   0x01U

Definition at line 145 of file usbd_def.h.

Referenced by USBD_ClrFeature(), and USBD_SetFeature().

◆ USB_FEATURE_TEST_MODE

#define USB_FEATURE_TEST_MODE   0x02U

Definition at line 146 of file usbd_def.h.

Referenced by USBD_SetFeature().

◆ USB_FS_MAX_PACKET_SIZE

#define USB_FS_MAX_PACKET_SIZE   64U

Definition at line 156 of file usbd_def.h.

◆ USB_HS_MAX_PACKET_SIZE

#define USB_HS_MAX_PACKET_SIZE   512U

Definition at line 155 of file usbd_def.h.

◆ USB_IAD_DESC_SIZE

#define USB_IAD_DESC_SIZE   0x08U

Definition at line 153 of file usbd_def.h.

◆ USB_IF_DESC_SIZE

#define USB_IF_DESC_SIZE   0x09U

Definition at line 151 of file usbd_def.h.

◆ USB_LEN_CFG_DESC

#define USB_LEN_CFG_DESC   0x09U

Definition at line 95 of file usbd_def.h.

◆ USB_LEN_DEV_DESC

#define USB_LEN_DEV_DESC   0x12U

Definition at line 94 of file usbd_def.h.

◆ USB_LEN_DEV_QUALIFIER_DESC

#define USB_LEN_DEV_QUALIFIER_DESC   0x0AU

Definition at line 93 of file usbd_def.h.

◆ USB_LEN_EP_DESC

#define USB_LEN_EP_DESC   0x07U

Definition at line 97 of file usbd_def.h.

◆ USB_LEN_IF_DESC

#define USB_LEN_IF_DESC   0x09U

Definition at line 96 of file usbd_def.h.

◆ USB_LEN_LANGID_STR_DESC

#define USB_LEN_LANGID_STR_DESC   0x04U

Definition at line 99 of file usbd_def.h.

◆ USB_LEN_OTG_DESC

#define USB_LEN_OTG_DESC   0x03U

Definition at line 98 of file usbd_def.h.

◆ USB_LEN_OTHER_SPEED_DESC_SIZ

#define USB_LEN_OTHER_SPEED_DESC_SIZ   0x09U

Definition at line 100 of file usbd_def.h.

◆ USB_MAX_EP0_SIZE

#define USB_MAX_EP0_SIZE   64U

Definition at line 157 of file usbd_def.h.

Referenced by USBD_CDC_Setup(), and USBD_LL_Reset().

◆ USB_REQ_CLEAR_FEATURE

#define USB_REQ_CLEAR_FEATURE   0x01U

Definition at line 120 of file usbd_def.h.

Referenced by USBD_CDC_Setup(), USBD_StdDevReq(), and USBD_StdEPReq().

◆ USB_REQ_GET_CONFIGURATION

#define USB_REQ_GET_CONFIGURATION   0x08U

Definition at line 125 of file usbd_def.h.

Referenced by USBD_StdDevReq().

◆ USB_REQ_GET_DESCRIPTOR

#define USB_REQ_GET_DESCRIPTOR   0x06U

Definition at line 123 of file usbd_def.h.

Referenced by USBD_StdDevReq().

◆ USB_REQ_GET_INTERFACE

#define USB_REQ_GET_INTERFACE   0x0AU

Definition at line 127 of file usbd_def.h.

Referenced by USBD_CDC_Setup().

◆ USB_REQ_GET_STATUS

#define USB_REQ_GET_STATUS   0x00U

Definition at line 119 of file usbd_def.h.

Referenced by USBD_CDC_Setup(), USBD_StdDevReq(), and USBD_StdEPReq().

◆ USB_REQ_RECIPIENT_DEVICE

#define USB_REQ_RECIPIENT_DEVICE   0x00U

Definition at line 114 of file usbd_def.h.

Referenced by USBD_LL_DataOutStage(), and USBD_LL_SetupStage().

◆ USB_REQ_RECIPIENT_ENDPOINT

#define USB_REQ_RECIPIENT_ENDPOINT   0x02U

Definition at line 116 of file usbd_def.h.

Referenced by USBD_LL_DataOutStage(), and USBD_LL_SetupStage().

◆ USB_REQ_RECIPIENT_INTERFACE

#define USB_REQ_RECIPIENT_INTERFACE   0x01U

Definition at line 115 of file usbd_def.h.

Referenced by USBD_LL_DataOutStage(), and USBD_LL_SetupStage().

◆ USB_REQ_RECIPIENT_MASK

#define USB_REQ_RECIPIENT_MASK   0x03U

Definition at line 117 of file usbd_def.h.

◆ USB_REQ_SET_ADDRESS

#define USB_REQ_SET_ADDRESS   0x05U

Definition at line 122 of file usbd_def.h.

Referenced by USBD_StdDevReq().

◆ USB_REQ_SET_CONFIGURATION

#define USB_REQ_SET_CONFIGURATION   0x09U

Definition at line 126 of file usbd_def.h.

Referenced by USBD_StdDevReq().

◆ USB_REQ_SET_DESCRIPTOR

#define USB_REQ_SET_DESCRIPTOR   0x07U

Definition at line 124 of file usbd_def.h.

◆ USB_REQ_SET_FEATURE

#define USB_REQ_SET_FEATURE   0x03U

Definition at line 121 of file usbd_def.h.

Referenced by USBD_StdDevReq(), and USBD_StdEPReq().

◆ USB_REQ_SET_INTERFACE

#define USB_REQ_SET_INTERFACE   0x0BU

Definition at line 128 of file usbd_def.h.

Referenced by USBD_CDC_Setup().

◆ USB_REQ_SYNCH_FRAME

#define USB_REQ_SYNCH_FRAME   0x0CU

Definition at line 129 of file usbd_def.h.

◆ USB_REQ_TYPE_CLASS

#define USB_REQ_TYPE_CLASS   0x20U

Definition at line 110 of file usbd_def.h.

Referenced by USBD_CDC_Setup(), USBD_StdDevReq(), USBD_StdEPReq(), and USBD_StdItfReq().

◆ USB_REQ_TYPE_MASK

#define USB_REQ_TYPE_MASK   0x60U

Definition at line 112 of file usbd_def.h.

Referenced by USBD_CDC_Setup(), USBD_StdDevReq(), USBD_StdEPReq(), and USBD_StdItfReq().

◆ USB_REQ_TYPE_STANDARD

#define USB_REQ_TYPE_STANDARD   0x00U

Definition at line 109 of file usbd_def.h.

Referenced by USBD_CDC_Setup(), USBD_StdDevReq(), USBD_StdEPReq(), and USBD_StdItfReq().

◆ USB_REQ_TYPE_VENDOR

#define USB_REQ_TYPE_VENDOR   0x40U

Definition at line 111 of file usbd_def.h.

Referenced by USBD_StdDevReq(), USBD_StdEPReq(), and USBD_StdItfReq().

◆ USBD_CLASS_USER_STRING_DESC

#define USBD_CLASS_USER_STRING_DESC   0U

Definition at line 90 of file usbd_def.h.

◆ USBD_EP0_DATA_IN

#define USBD_EP0_DATA_IN   0x02U

Definition at line 169 of file usbd_def.h.

Referenced by USBD_CtlSendData(), and USBD_LL_DataInStage().

◆ USBD_EP0_DATA_OUT

#define USBD_EP0_DATA_OUT   0x03U

Definition at line 170 of file usbd_def.h.

Referenced by USBD_CtlPrepareRx(), and USBD_LL_DataOutStage().

◆ USBD_EP0_IDLE

#define USBD_EP0_IDLE   0x00U

Definition at line 167 of file usbd_def.h.

Referenced by USBD_LL_Reset().

◆ USBD_EP0_SETUP

#define USBD_EP0_SETUP   0x01U

Definition at line 168 of file usbd_def.h.

Referenced by USBD_LL_SetupStage().

◆ USBD_EP0_STALL

#define USBD_EP0_STALL   0x06U

Definition at line 173 of file usbd_def.h.

◆ USBD_EP0_STATUS_IN

#define USBD_EP0_STATUS_IN   0x04U

Definition at line 171 of file usbd_def.h.

Referenced by USBD_CtlSendStatus().

◆ USBD_EP0_STATUS_OUT

#define USBD_EP0_STATUS_OUT   0x05U

Definition at line 172 of file usbd_def.h.

Referenced by USBD_CtlReceiveStatus().

◆ USBD_EP_TYPE_BULK

#define USBD_EP_TYPE_BULK   0x02U

◆ USBD_EP_TYPE_CTRL

#define USBD_EP_TYPE_CTRL   0x00U

Definition at line 175 of file usbd_def.h.

Referenced by USBD_LL_Reset().

◆ USBD_EP_TYPE_INTR

#define USBD_EP_TYPE_INTR   0x03U

Definition at line 178 of file usbd_def.h.

Referenced by USBD_CDC_DeInit(), and USBD_CDC_Init().

◆ USBD_EP_TYPE_ISOC

#define USBD_EP_TYPE_ISOC   0x01U

Definition at line 176 of file usbd_def.h.

◆ USBD_IDX_CONFIG_STR

#define USBD_IDX_CONFIG_STR   0x04U

Definition at line 106 of file usbd_def.h.

Referenced by USBD_GetDescriptor().

◆ USBD_IDX_INTERFACE_STR

#define USBD_IDX_INTERFACE_STR   0x05U

Definition at line 107 of file usbd_def.h.

Referenced by USBD_GetDescriptor().

◆ USBD_IDX_LANGID_STR

#define USBD_IDX_LANGID_STR   0x00U

Definition at line 102 of file usbd_def.h.

Referenced by USBD_GetDescriptor().

◆ USBD_IDX_MFC_STR

#define USBD_IDX_MFC_STR   0x01U

Definition at line 103 of file usbd_def.h.

Referenced by USBD_GetDescriptor().

◆ USBD_IDX_PRODUCT_STR

#define USBD_IDX_PRODUCT_STR   0x02U

Definition at line 104 of file usbd_def.h.

Referenced by USBD_GetDescriptor().

◆ USBD_IDX_SERIAL_STR

#define USBD_IDX_SERIAL_STR   0x03U

Definition at line 105 of file usbd_def.h.

Referenced by USBD_GetDescriptor().

◆ USBD_LPM_ENABLED

#define USBD_LPM_ENABLED   0U

Definition at line 74 of file usbd_def.h.

◆ USBD_MAX_CLASS_ENDPOINTS

#define USBD_MAX_CLASS_ENDPOINTS   5U

Definition at line 66 of file usbd_def.h.

◆ USBD_MAX_CLASS_INTERFACES

#define USBD_MAX_CLASS_INTERFACES   5U

Definition at line 70 of file usbd_def.h.

◆ USBD_MAX_NUM_CONFIGURATION

#define USBD_MAX_NUM_CONFIGURATION   1U

Definition at line 52 of file usbd_def.h.

Referenced by USBD_SetConfig().

◆ USBD_MAX_NUM_INTERFACES

#define USBD_MAX_NUM_INTERFACES   1U

Definition at line 48 of file usbd_def.h.

Referenced by USBD_StdItfReq().

◆ USBD_MAX_POWER

#define USBD_MAX_POWER   0x32U /* 100 mA */

Definition at line 82 of file usbd_def.h.

◆ USBD_MAX_SUPPORTED_CLASS

◆ USBD_SELF_POWERED

#define USBD_SELF_POWERED   1U

Definition at line 78 of file usbd_def.h.

◆ USBD_STATE_ADDRESSED

#define USBD_STATE_ADDRESSED   0x02U

◆ USBD_STATE_CONFIGURED

◆ USBD_STATE_DEFAULT

◆ USBD_STATE_SUSPENDED

#define USBD_STATE_SUSPENDED   0x04U

Definition at line 163 of file usbd_def.h.

Referenced by USBD_LL_Resume(), and USBD_LL_Suspend().

◆ USBD_SUPPORT_USER_STRING_DESC

#define USBD_SUPPORT_USER_STRING_DESC   0U

Definition at line 86 of file usbd_def.h.