summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2025-02-14 08:56:15 -0500
committerGitHub <[email protected]>2025-02-14 08:56:15 -0500
commit93d7dcc53fe1bef5cf88695868ddf4996317f4e9 (patch)
tree12cb4b6b9e1146b57ff5712c3f33fc7d4f9c3163
parent4e578be9e83f8a2f3e4969bd90fda6f49bb3ebf1 (diff)
parentaafe6d435b9f2ea7c0d4242dc47715ac86fcd9d1 (diff)
Merge pull request #185 from ayedm1/add-a-define-check-device-state
add device state check define to avoid use of internal struct fileds in app level
-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
{