hv_vos_EventGroup.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * @file hv_vos_EventGroup.h
  3. * @brief Header file of eventgroup.
  4. *
  5. * @verbatim
  6. * ==============================================================================
  7. * ##### How to use #####
  8. * ==============================================================================
  9. * (+) Use ()
  10. *
  11. * @endverbatim
  12. * @author HiView SoC Software Team
  13. * @version 1.0.0
  14. * @date 2023-03-01
  15. */
  16. #ifndef _HV_VOS_EVENT_GROUP_H
  17. #define _HV_VOS_EVENT_GROUP_H
  18. #include "hv_vos_Types.h"
  19. VOS_EXTERN_C_BEGIN
  20. /** @brief task forward declaration */
  21. typedef struct _HV_VOS_EVENT_GROUP_S HV_VOS_EVENT_GROUP_S;
  22. HV_VOS_EVENT_GROUP_S* Hv_Vos_EventGroupInit();
  23. UINT32 Hv_Vos_EventGroupWaitBits(HV_VOS_EVENT_GROUP_S *self, UINT32 uiBitsToWait);
  24. UINT32 Hv_Vos_EventGroupTimedWaitBits(HV_VOS_EVENT_GROUP_S *self, UINT32 uiBitsToWait, UINT32 waitMs);
  25. UINT32 Hv_Vos_EventGroupSetBits(HV_VOS_EVENT_GROUP_S *self, UINT32 uiBitsToSet);
  26. BOOL Hv_Vos_EventGroupSetBitsFromISR(HV_VOS_EVENT_GROUP_S *self, UINT32 uiBitsToSet);
  27. VOS_EXTERN_C_END
  28. #endif