Constants and enumerations used by many CMSIS-RTOS2 functions. More...
Content | |
| Flags Functions Error Codes | |
| Constants used by Thread Flags and Event Flags to return error codes.  | |
Macros | |
| #define | osWaitForever 0xFFFFFFFFU | 
| Wait forever timeout value.   | |
| #define | osFlagsWaitAny 0x00000000U | 
| Wait for any flag (default).   | |
| #define | osFlagsWaitAll 0x00000001U | 
| Wait for all flags.   | |
| #define | osFlagsNoClear 0x00000002U | 
| Do not clear flags which have been specified to wait for.   | |
| #define | osSafetyClass(n) | 
| Safety class value in attribute bit field format.   | |
| #define | osSafetyWithSameClass 0x00000001U | 
| Objects with same safety class.   | |
| #define | osSafetyWithLowerClass 0x00000002U | 
| Objects with lower safety class.   | |
Enumerations | |
| enum | osStatus_t {  osOK = 0 , osError = -1 , osErrorTimeout = -2 , osErrorResource = -3 , osErrorParameter = -4 , osErrorNoMemory = -5 , osErrorISR = -6 , osErrorSafetyClass = -7 , osStatusReserved = 0x7FFFFFFF }  | 
| Status code values returned by CMSIS-RTOS functions.  More... | |
Constants and enumerations used by many CMSIS-RTOS2 functions.
The following constants and enumerations are used by many CMSIS-RTOS2 function calls.
| #define osWaitForever 0xFFFFFFFFU | 
Wait forever timeout value.
A special Timeout Values that informs the RTOS to wait infinite until a resource becomes available. It applies to the following functions:
| #define osFlagsWaitAny 0x00000000U | 
| #define osFlagsWaitAll 0x00000001U | 
| #define osFlagsNoClear 0x00000002U | 
Do not clear flags which have been specified to wait for.
Reference:
| #define osSafetyClass | ( | n | ) | 
Safety class value in attribute bit field format.
Safety class.
| n | safety class value. | 
The preprocessor macro osSafetyClass constructs attribute bitmask with safety class bits set to n.
Code Example:
| #define osSafetyWithSameClass 0x00000001U | 
Objects with same safety class.
Definition for RTOS objects with the same safety class. Can be used as mode argument in the following functions:
| #define osSafetyWithLowerClass 0x00000002U | 
Objects with lower safety class.
Definition for RTOS objects with lower safety class. Can be used as mode argument in the following functions:
| enum osStatus_t | 
Status code values returned by CMSIS-RTOS functions.
The osStatus_t enumeration defines the event status and error codes that are returned by many CMSIS-RTOS2 functions.