summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/core/inc/ux_api.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/core/inc/ux_api.h b/common/core/inc/ux_api.h
index 6689eb0..8ab0ea4 100644
--- a/common/core/inc/ux_api.h
+++ b/common/core/inc/ux_api.h
@@ -2685,6 +2685,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
{