26
26
/* APPLICATION INTERFACE DEFINITION RELEASE */
27
27
/* */
28
28
/* ux_api.h PORTABLE C */
29
- /* 6.1.11 */
29
+ /* 6.1.12 */
30
30
/* AUTHOR */
31
31
/* */
32
32
/* Chaoqiong Xiao, Microsoft Corporation */
115
115
/* standalone compiling error, */
116
116
/* added CCID trace IDs, */
117
117
/* resulting in version 6.1.11 */
118
+ /* 07-29-2022 Chaoqiong Xiao Modified comment(s), */
119
+ /* fixed parameter/variable */
120
+ /* names conflict C++ keyword, */
121
+ /* added feedback size defs, */
122
+ /* added shared device config */
123
+ /* descriptor for enum scan, */
124
+ /* resulting in version 6.1.12 */
118
125
/* */
119
126
/**************************************************************************/
120
127
@@ -282,7 +289,7 @@ typedef signed char SCHAR;
282
289
#define AZURE_RTOS_USBX
283
290
#define USBX_MAJOR_VERSION 6
284
291
#define USBX_MINOR_VERSION 1
285
- #define USBX_PATCH_VERSION 11
292
+ #define USBX_PATCH_VERSION 12
286
293
287
294
/* Macros for concatenating tokens, where UX_CONCATn concatenates n tokens. */
288
295
@@ -1130,6 +1137,9 @@ VOID _ux_trace_event_update(TX_TRACE_BUFFER_ENTRY *event, ULONG timestamp, UL
1130
1137
#define UX_MAX_NUMBER_OF_TRANSACTIONS_MASK 0x1800u
1131
1138
#define UX_MAX_NUMBER_OF_TRANSACTIONS_SHIFT 11
1132
1139
1140
+ #define UX_FEEDBACK_SIZE_FULL_SPEED 3 /* 10.10 format fits into 3 bytes. */
1141
+ #define UX_FEEDBACK_SIZE_HIGH_SPEED 4 /* 12.13 format fits into 4 bytes. */
1142
+
1133
1143
#define UX_REQUEST_DIRECTION 0x80u
1134
1144
#define UX_REQUEST_IN 0x80u
1135
1145
#define UX_REQUEST_OUT 0x00u
@@ -1261,9 +1271,9 @@ VOID _ux_trace_event_update(TX_TRACE_BUFFER_ENTRY *event, ULONG timestamp, UL
1261
1271
1262
1272
#define UX_DEVICE_CONNECTION 0x81u
1263
1273
#define UX_DEVICE_DISCONNECTION 0x82u
1264
-
1274
+
1265
1275
/* Host change callback events : _callback(event, NULL, NULL) */
1266
-
1276
+
1267
1277
#define UX_STANDALONE_WAIT_BACKGROUND_TASK 0x00u
1268
1278
1269
1279
@@ -1398,6 +1408,7 @@ VOID _ux_trace_event_update(TX_TRACE_BUFFER_ENTRY *event, ULONG timestamp, UL
1398
1408
#define UX_INVALID_STATE 0xfb
1399
1409
#define UX_INVALID_PARAMETER 0xfa
1400
1410
#define UX_ABORTED 0xf9
1411
+ #define UX_MATH_OVERFLOW 0xf8
1401
1412
1402
1413
#define UX_TOO_MANY_DEVICES 0x11
1403
1414
#define UX_MEMORY_INSUFFICIENT 0x12
@@ -1469,6 +1480,7 @@ VOID _ux_trace_event_update(TX_TRACE_BUFFER_ENTRY *event, ULONG timestamp, UL
1469
1480
1470
1481
#define UX_HOST_CLASS_AUDIO_WRONG_TYPE 0x80
1471
1482
#define UX_HOST_CLASS_AUDIO_WRONG_INTERFACE 0x81
1483
+ #define UX_HOST_CLASS_AUDIO_WRONG_FREQUENCY 0x82
1472
1484
1473
1485
#define UX_CLASS_CDC_ECM_LINK_STATE_DOWN_ERROR 0x90
1474
1486
@@ -1898,6 +1910,8 @@ typedef struct UX_DEVICE_STRUCT
1898
1910
ULONG ux_device_power_source ;
1899
1911
struct UX_CONFIGURATION_STRUCT
1900
1912
* ux_device_current_configuration ;
1913
+ UCHAR * ux_device_packed_configuration ;
1914
+ ULONG ux_device_packed_configuration_keep_count ;
1901
1915
#if !defined(UX_HOST_STANDALONE )
1902
1916
UX_SEMAPHORE ux_device_protection_semaphore ;
1903
1917
#endif
@@ -2709,7 +2723,7 @@ UINT ux_host_stack_class_instance_get(UX_HOST_CLASS *host_class, UINT class_i
2709
2723
UINT ux_host_stack_class_register (UCHAR * class_name , UINT (* class_entry_function )(struct UX_HOST_CLASS_COMMAND_STRUCT * ));
2710
2724
UINT ux_host_stack_class_unregister (UINT (* class_entry_function )(struct UX_HOST_CLASS_COMMAND_STRUCT * ));
2711
2725
UINT ux_host_stack_configuration_interface_get (UX_CONFIGURATION * configuration , UINT interface_index ,
2712
- UINT alternate_setting_index , UX_INTERFACE * * interface );
2726
+ UINT alternate_setting_index , UX_INTERFACE * * ux_interface );
2713
2727
UINT ux_host_stack_device_configuration_activate (UX_CONFIGURATION * configuration );
2714
2728
UINT ux_host_stack_device_configuration_deactivate (UX_DEVICE * device );
2715
2729
UINT ux_host_stack_device_configuration_get (UX_DEVICE * device , UINT configuration_index , UX_CONFIGURATION * * configuration );
@@ -2721,8 +2735,8 @@ UINT ux_host_stack_hcd_register(UCHAR *hcd_name, UINT (*hcd_initialize_functi
2721
2735
UINT ux_host_stack_hcd_unregister (UCHAR * hcd_name , ULONG hcd_param1 , ULONG hcd_param2 );
2722
2736
UINT ux_host_stack_initialize (UINT (* ux_system_host_change_function )(ULONG , UX_HOST_CLASS * , VOID * ));
2723
2737
UINT ux_host_stack_uninitialize (VOID );
2724
- UINT ux_host_stack_interface_endpoint_get (UX_INTERFACE * interface , UINT endpoint_index , UX_ENDPOINT * * endpoint );
2725
- UINT ux_host_stack_interface_setting_select (UX_INTERFACE * interface );
2738
+ UINT ux_host_stack_interface_endpoint_get (UX_INTERFACE * ux_interface , UINT endpoint_index , UX_ENDPOINT * * endpoint );
2739
+ UINT ux_host_stack_interface_setting_select (UX_INTERFACE * ux_interface );
2726
2740
UINT ux_host_stack_transfer_request (UX_TRANSFER * transfer_request );
2727
2741
UINT ux_host_stack_transfer_request_abort (UX_TRANSFER * transfer_request );
2728
2742
VOID ux_host_stack_hnp_polling_thread_entry (ULONG id );
@@ -2762,11 +2776,11 @@ UINT ux_device_stack_initialize(UCHAR * device_framework_high_speed, ULONG de
2762
2776
UCHAR * language_id_framework , ULONG language_id_framework_length ,
2763
2777
UINT (* ux_system_slave_change_function )(ULONG ));
2764
2778
UINT ux_device_stack_uninitialize (VOID );
2765
- UINT ux_device_stack_interface_delete (UX_SLAVE_INTERFACE * interface );
2779
+ UINT ux_device_stack_interface_delete (UX_SLAVE_INTERFACE * ux_interface );
2766
2780
UINT ux_device_stack_interface_get (UINT interface_value );
2767
2781
UINT ux_device_stack_interface_set (UCHAR * device_framework , ULONG device_framework_length ,
2768
2782
ULONG alternate_setting_value );
2769
- UINT ux_device_stack_interface_start (UX_SLAVE_INTERFACE * interface );
2783
+ UINT ux_device_stack_interface_start (UX_SLAVE_INTERFACE * ux_interface );
2770
2784
UINT ux_device_stack_transfer_request (UX_SLAVE_TRANSFER * transfer_request , ULONG slave_length , ULONG host_length );
2771
2785
UINT ux_device_stack_transfer_request_abort (UX_SLAVE_TRANSFER * transfer_request , ULONG completion_code );
2772
2786
0 commit comments