summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohamed AYED <[email protected]>2025-02-04 22:02:06 +0100
committerMohamed AYED <[email protected]>2025-02-04 22:02:06 +0100
commitaafe6d435b9f2ea7c0d4242dc47715ac86fcd9d1 (patch)
tree37b25d68685e42b77e1823823048af5f43a33316
parent2d4a4aea0c17e365fed92443b22b28e2f81bb114 (diff)
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
{