summaryrefslogtreecommitdiff
path: root/common/core/inc/ux_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/core/inc/ux_api.h')
-rw-r--r--common/core/inc/ux_api.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/common/core/inc/ux_api.h b/common/core/inc/ux_api.h
index 6689eb0..5f5feba 100644
--- a/common/core/inc/ux_api.h
+++ b/common/core/inc/ux_api.h
@@ -1,10 +1,10 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
@@ -141,9 +141,12 @@
/* resulting in version 6.3.0 */
/* 12-31-2023 Chaoqiong Xiao Modified comment(s), */
/* resulting in version 6.4.0 */
-/* 03-01-2024 Tiejun Zhou Modified comment(s), */
+/* 03-01-2024 Tiejun Zhou Modified comment(s), */
/* update version number, */
/* resulting in version 6.4.1 */
+/* 02-19-2025 Frédéric Desbiens Modified comment(s), */
+/* update version number, */
+/* resulting in version 6.4.2 */
/* */
/**************************************************************************/
@@ -345,7 +348,7 @@ typedef signed char SCHAR;
#define AZURE_RTOS_USBX
#define USBX_MAJOR_VERSION 6
#define USBX_MINOR_VERSION 4
-#define USBX_PATCH_VERSION 1
+#define USBX_PATCH_VERSION 2
/* Macros for concatenating tokens, where UX_CONCATn concatenates n tokens. */
@@ -2685,6 +2688,10 @@ typedef struct UX_SYSTEM_SLAVE_STRUCT
#define UX_SYSTEM_DEVICE_MAX_CLASS_GET() (1)
#endif
+#define UX_SLAVE_DEVICE_CHECK_STATE(state) \
+ (_ux_system_slave->ux_system_slave_device.ux_slave_device_state & (state)) ? UX_TRUE : UX_FALSE \
+
+
typedef struct UX_SYSTEM_OTG_STRUCT
{
@@ -2838,6 +2845,7 @@ typedef struct UX_HOST_CLASS_DPUMP_STRUCT
#define ux_device_stack_interface_start _ux_device_stack_interface_start
#define ux_device_stack_transfer_request _ux_device_stack_transfer_request
#define ux_device_stack_transfer_abort _ux_device_stack_transfer_abort
+#define ux_device_stack_microsoft_extension_register _ux_device_stack_microsoft_extension_register
#define ux_device_stack_tasks_run _ux_device_stack_tasks_run
#define ux_device_stack_transfer_run _ux_device_stack_transfer_run
@@ -2938,6 +2946,8 @@ UINT ux_device_stack_interface_set(UCHAR * device_framework, ULONG device_fra
UINT ux_device_stack_interface_start(UX_SLAVE_INTERFACE *ux_interface);
UINT ux_device_stack_transfer_request(UX_SLAVE_TRANSFER *transfer_request, ULONG slave_length, ULONG host_length);
UINT ux_device_stack_transfer_request_abort(UX_SLAVE_TRANSFER *transfer_request, ULONG completion_code);
+UINT ux_device_stack_microsoft_extension_register(ULONG vendor_request,
+ UINT (*vendor_request_function)(ULONG, ULONG, ULONG, ULONG, UCHAR *, ULONG *));
UINT ux_device_stack_tasks_run(VOID);
UINT ux_device_stack_transfer_run(UX_SLAVE_TRANSFER *transfer_request, ULONG slave_length, ULONG host_length);