2626/* APPLICATION INTERFACE DEFINITION RELEASE */
2727/* */
2828/* ux_api.h PORTABLE C */
29- /* 6.1.10 */
29+ /* 6.1.11 */
3030/* AUTHOR */
3131/* */
3232/* Chaoqiong Xiao, Microsoft Corporation */
110110/* added some general errors, */
111111/* added printer trace IDs, */
112112/* resulting in version 6.1.10 */
113+ /* 04-25-2022 Chaoqiong Xiao Modified comment(s), */
114+ /* assumed OS types to avoid */
115+ /* standalone compiling error, */
116+ /* added CCID trace IDs, */
117+ /* resulting in version 6.1.11 */
113118/* */
114119/**************************************************************************/
115120
@@ -277,7 +282,7 @@ typedef signed char SCHAR;
277282#define AZURE_RTOS_USBX
278283#define USBX_MAJOR_VERSION 6
279284#define USBX_MINOR_VERSION 1
280- #define USBX_PATCH_VERSION 10
285+ #define USBX_PATCH_VERSION 11
281286
282287/* Macros for concatenating tokens, where UX_CONCATn concatenates n tokens. */
283288
@@ -764,6 +769,32 @@ VOID _ux_trace_event_update(TX_TRACE_BUFFER_ENTRY *event, ULONG timestamp, UL
764769#define UX_TRACE_DEVICE_CLASS_PRINTER_READ (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 102) /* I1 = class instance , I2 = buffer , I3 = requested_length */
765770#define UX_TRACE_DEVICE_CLASS_PRINTER_WRITE (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 103) /* I1 = class instance , I2 = buffer , I3 = requested_length */
766771
772+ #define UX_TRACE_DEVICE_CLASS_CCID_ACTIVATE (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 110) /* I1 = class instance */
773+ #define UX_TRACE_DEVICE_CLASS_CCID_DEACTIVATE (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 111) /* I1 = class instance */
774+ #define UX_TRACE_DEVICE_CLASS_CCID_REQ_ABORT (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 112) /* I1 = class instance , I2 = slot */
775+ #define UX_TRACE_DEVICE_CLASS_CCID_PC_TO_RDR_ICC_POWER_ON (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 113) /* I1 = class instance , I2 = slot */
776+ #define UX_TRACE_DEVICE_CLASS_CCID_PC_TO_RDR_ICC_POWER_OFF (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 114) /* I1 = class instance , I2 = slot */
777+ #define UX_TRACE_DEVICE_CLASS_CCID_PC_TO_RDR_GET_SLOT_STATUS (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 115) /* I1 = class instance , I2 = slot */
778+ #define UX_TRACE_DEVICE_CLASS_CCID_PC_TO_RDR_XFR_BLOCK (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 116) /* I1 = class instance , I2 = slot */
779+ #define UX_TRACE_DEVICE_CLASS_CCID_PC_TO_RDR_GET_PARAMETERS (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 117) /* I1 = class instance , I2 = slot */
780+ #define UX_TRACE_DEVICE_CLASS_CCID_PC_TO_RDR_RESET_PARAMETERS (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 118) /* I1 = class instance , I2 = slot */
781+ #define UX_TRACE_DEVICE_CLASS_CCID_PC_TO_RDR_SET_PARAMETERS (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 119) /* I1 = class instance , I2 = slot */
782+ #define UX_TRACE_DEVICE_CLASS_CCID_PC_TO_RDR_ESCAPE (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 120) /* I1 = class instance , I2 = slot */
783+ #define UX_TRACE_DEVICE_CLASS_CCID_PC_TO_RDR_ICC_CLOCK (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 121) /* I1 = class instance , I2 = slot */
784+ #define UX_TRACE_DEVICE_CLASS_CCID_PC_TO_RDR_T0_APDU (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 122) /* I1 = class instance , I2 = slot */
785+ #define UX_TRACE_DEVICE_CLASS_CCID_PC_TO_RDR_SECURE (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 123) /* I1 = class instance , I2 = slot */
786+ #define UX_TRACE_DEVICE_CLASS_CCID_PC_TO_RDR_MECHANICAL (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 124) /* I1 = class instance , I2 = slot */
787+ #define UX_TRACE_DEVICE_CLASS_CCID_PC_TO_RDR_ABORT (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 125) /* I1 = class instance , I2 = slot */
788+ #define UX_TRACE_DEVICE_CLASS_CCID_PC_TO_RDR_SET_RATE_CLOCK (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 126) /* I1 = class instance , I2 = slot */
789+ #define UX_TRACE_DEVICE_CLASS_CCID_RDR_TO_PC_RESPONSE (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 127) /* I1 = class instance , I2 = slot */
790+ #define UX_TRACE_DEVICE_CLASS_CCID_ICC_INSERT (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 128) /* I1 = class instance , I2 = slot */
791+ #define UX_TRACE_DEVICE_CLASS_CCID_ICC_REMOVE (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 129) /* I1 = class instance , I2 = slot */
792+ #define UX_TRACE_DEVICE_CLASS_CCID_AUTO_SEQ_START (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 130) /* I1 = class instance , I2 = slot */
793+ #define UX_TRACE_DEVICE_CLASS_CCID_AUTO_SEQ_STOP (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 131) /* I1 = class instance , I2 = slot */
794+ #define UX_TRACE_DEVICE_CLASS_CCID_TIME_EXTENSION (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 132) /* I1 = class instance , I2 = slot , I3 = time */
795+ #define UX_TRACE_DEVICE_CLASS_CCID_HARDWARE_ERROR (UX_TRACE_DEVICE_CLASS_EVENTS_BASE + 133) /* I1 = class instance , I2 = slot */
796+
797+
767798/* Define the USBX Error Event. */
768799
769800#define UX_TRACE_ERROR 999
@@ -858,12 +889,16 @@ VOID _ux_trace_event_update(TX_TRACE_BUFFER_ENTRY *event, ULONG timestamp, UL
858889#ifndef UX_TIMER
859890#ifdef TX_API_H
860891#define UX_TIMER TX_TIMER
892+ #else
893+ #define UX_TIMER VOID* /* Dummy type for standalone compile. */
861894#endif
862895#endif
863896
864897#ifndef UX_THREAD
865898#ifdef TX_API_H
866899#define UX_THREAD TX_THREAD
900+ #else
901+ #define UX_THREAD VOID* /* Dummy type for standalone compile. */
867902#endif
868903#endif
869904
@@ -933,6 +968,8 @@ VOID _ux_trace_event_update(TX_TRACE_BUFFER_ENTRY *event, ULONG timestamp, UL
933968#ifndef UX_SEMAPHORE
934969#ifdef TX_API_H
935970#define UX_SEMAPHORE TX_SEMAPHORE
971+ #else
972+ #define UX_SEMAPHORE VOID* /* Dummy type for standalone compile. */
936973#endif
937974#endif
938975
@@ -942,6 +979,8 @@ VOID _ux_trace_event_update(TX_TRACE_BUFFER_ENTRY *event, ULONG timestamp, UL
942979#ifndef UX_MUTEX
943980#ifdef TX_API_H
944981#define UX_MUTEX TX_MUTEX
982+ #else
983+ #define UX_MUTEX VOID* /* Dummy type for standalone compile. */
945984#endif
946985#endif
947986
@@ -951,6 +990,8 @@ VOID _ux_trace_event_update(TX_TRACE_BUFFER_ENTRY *event, ULONG timestamp, UL
951990#ifndef UX_EVENT_FLAGS_GROUP
952991#ifdef TX_API_H
953992#define UX_EVENT_FLAGS_GROUP TX_EVENT_FLAGS_GROUP
993+ #else
994+ #define UX_EVENT_FLAGS_GROUP VOID* /* Dummy type for standalone compile. */
954995#endif
955996#endif
956997
0 commit comments