Skip to content

Commit e2b117f

Browse files
author
Filip Jagodzinski
committed
EventFlags docs update.
1 parent ba23fef commit e2b117f

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

rtos/EventFlags.h

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -37,73 +37,75 @@ namespace rtos {
3737
* @{
3838
*/
3939

40-
/** The EventFlags class is used to signal or wait for an arbitrary event or events.
40+
/** The EventFlags class is used to control event flags or wait for event flags other threads control.
41+
4142
@note
42-
EventFlags support 31 flags so the MSB flag is ignored, it is used to return an error code (@a osFlagsError)
43+
EventFlags support 31 flags. The MSB flag is ignored. It is used to return an error code (@a osFlagsError).
44+
4345
@note
44-
Memory considerations: The EventFlags control structures will be created on current thread's stack, both for the mbed OS
46+
Memory considerations: The EventFlags control structures will be created on current thread's stack, both for the Mbed OS
4547
and underlying RTOS objects (static or dynamic RTOS memory pools are not being used).
4648
*/
4749
class EventFlags : private mbed::NonCopyable<EventFlags> {
4850
public:
49-
/** Create and Initialize an EventFlags object
51+
/** Create and initialize an EventFlags object.
5052
*
5153
* @note You cannot call this function from ISR context.
5254
*/
5355
EventFlags();
5456

55-
/** Create and Initialize a EventFlags object
57+
/** Create and initialize a EventFlags object.
5658
5759
@param name name to be used for this EventFlags. It has to stay allocated for the lifetime of the thread.
5860
5961
@note You cannot call this function from ISR context.
6062
*/
6163
EventFlags(const char *name);
6264

63-
/** Set the specified Event Flags.
64-
@param flags specifies the flags that shall be set.
65-
@return event flags after setting or error code if highest bit set (@a osFlagsError).
65+
/** Set the specified event flags.
66+
@param flags the flags that shall be set.
67+
@return event flags after setting or error code if highest bit set (see @a osFlagsError for details).
6668
6769
@note This function may be called from ISR context.
6870
*/
6971
uint32_t set(uint32_t flags);
7072

71-
/** Clear the specified Event Flags.
72-
@param flags specifies the flags that shall be cleared. (default: 0x7fffffff - all flags)
73-
@return event flags before clearing or error code if highest bit set (@a osFlagsError).
73+
/** Clear the specified event flags.
74+
@param flags the flags that shall be cleared (default: 0x7fffffff -- all flags).
75+
@return event flags before clearing or error code if highest bit set (see @a osFlagsError for details).
7476
7577
@note You may call this function from ISR context.
7678
*/
7779
uint32_t clear(uint32_t flags = 0x7fffffff);
7880

79-
/** Get the currently set Event Flags.
80-
@return set event flags.
81+
/** Get the currently set event flags.
82+
@return current event flags.
8183
8284
@note You may call this function from ISR context.
8385
*/
8486
uint32_t get() const;
8587

8688
/** Wait for all of the specified event flags to become signaled.
87-
@param flags specifies the flags to wait for.
88-
@param timeout timeout value or 0 in case of no time-out. (default: osWaitForever)
89-
@param clear specifies wether to clear the flags after waiting for them. (default: true)
90-
@return event flags before clearing or error code if highest bit set (@a osFlagsError).
89+
@param flags the flags to wait for (default: 0 -- no flags).
90+
@param timeout timeout value or 0 in case of no time-out (default: osWaitForever).
91+
@param clear clear specified event flags after waiting for them (default: true).
92+
@return event flags before clearing or error code if highest bit set (see @a osFlagsError for details).
9193
9294
@note You may call this function from ISR context if the timeout parameter is set to 0.
9395
*/
9496
uint32_t wait_all(uint32_t flags = 0, uint32_t timeout = osWaitForever, bool clear = true);
9597

9698
/** Wait for any of the specified event flags to become signaled.
97-
@param flags specifies the flags to wait for. (default: 0)
98-
@param timeout timeout value or 0 in case of no time-out. (default: osWaitForever)
99-
@param clear specifies wether to clear the flags after waiting for them. (default: true)
100-
@return event flags before clearing or error code if highest bit set (@a osFlagsError).
99+
@param flags the flags to wait for (default: 0 -- no flags).
100+
@param timeout timeout value or 0 in case of no time-out (default: osWaitForever).
101+
@param clear clear specified event flags after waiting for them (default: true).
102+
@return event flags before clearing or error code if highest bit set (see @a osFlagsError for details).
101103
102104
@note This function may be called from ISR context if the timeout parameter is set to 0.
103105
*/
104106
uint32_t wait_any(uint32_t flags = 0, uint32_t timeout = osWaitForever, bool clear = true);
105107

106-
/** Event flags destructor
108+
/** EventFlags destructor.
107109
108110
@note You cannot call this function from ISR context.
109111
*/

0 commit comments

Comments
 (0)