Skip to content

Commit

Permalink
Merge pull request #185 from ayedm1/add-a-define-check-device-state
Browse files Browse the repository at this point in the history
add device state check define to avoid use of internal struct fileds in app level
  • Loading branch information
fdesbiens authored Feb 14, 2025
2 parents 4e578be + aafe6d4 commit 93d7dcc
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 93d7dcc

Please sign in to comment.