54 #ifndef _TN_EVENTGRP_H
55 #define _TN_EVENTGRP_H
171 unsigned int initial_pattern
230 unsigned int wait_pattern,
232 unsigned int *p_flags_pattern,
245 unsigned int wait_pattern,
247 unsigned int *p_flags_pattern
259 unsigned int wait_pattern,
261 unsigned int *p_flags_pattern
310 #endif // _TN_EVENTGRP_H
Task waits for all of the event bits from the wait_pattern to be set in the event group...
enum TN_EGrpWaitMode wait_mode
event wait mode: AND or OR
enum TN_RCode tn_eventgrp_imodify(struct TN_EventGrp *eventgrp, enum TN_EGrpOp operation, unsigned int pattern)
The same as tn_eventgrp_modify(), but for using in the ISR.
unsigned int pattern
current flags pattern
TN_EGrpOp
Modify operation: set, clear or toggle.
Clear flags that are set in the given pattern argument.
TN_RCode
Result code returned by kernel services.
TN_ObjId
Magic number for object validity verification.
enum TN_RCode tn_eventgrp_modify(struct TN_EventGrp *eventgrp, enum TN_EGrpOp operation, unsigned int pattern)
Modify current events bit pattern in the event group.
unsigned long TN_Timeout
The value representing maximum number of system ticks to wait.
EventGrp-specific fields related to waiting task, to be included in struct TN_Task.
enum TN_RCode tn_eventgrp_create(struct TN_EventGrp *eventgrp, unsigned int initial_pattern)
Construct event group.
TN_EGrpWaitMode
Events waiting mode: wait for all flags to be set or just for any of the specified flags to be set...
Definitions used through the whole kernel.
int actual_pattern
pattern that caused task to finish waiting
Toggle flags that are set in the given pattern argument.
enum TN_RCode tn_eventgrp_wait(struct TN_EventGrp *eventgrp, unsigned int wait_pattern, enum TN_EGrpWaitMode wait_mode, unsigned int *p_flags_pattern, TN_Timeout timeout)
Wait for specified event(s) in the event group.
Task waits for any of the event bits from the wait_pattern to be set in the event group...
enum TN_ObjId id_event
id for object validity verification
enum TN_RCode tn_eventgrp_iwait_polling(struct TN_EventGrp *eventgrp, unsigned int wait_pattern, enum TN_EGrpWaitMode wait_mode, unsigned int *p_flags_pattern)
The same as tn_eventgrp_wait() with zero timeout, but for using in the ISR.
enum TN_RCode tn_eventgrp_delete(struct TN_EventGrp *eventgrp)
Destruct event group.
enum TN_RCode tn_eventgrp_wait_polling(struct TN_EventGrp *eventgrp, unsigned int wait_pattern, enum TN_EGrpWaitMode wait_mode, unsigned int *p_flags_pattern)
The same as tn_eventgrp_wait() with zero timeout.
int wait_pattern
event wait pattern
Set flags that are set in given pattern argument.
struct TN_ListItem wait_queue
task wait queue