Skip to content

Commit

Permalink
add device state check define to avoid use of internal struct fileds …
Browse files Browse the repository at this point in the history
…in app level
  • Loading branch information
ayedm1 committed Feb 4, 2025
1 parent 2d4a4ae commit aafe6d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/core/inc/ux_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

Expand Down

0 comments on commit aafe6d4

Please sign in to comment.