Wait for Timeout (Time Delay).
\param[in] ticks \ref CMSIS_RTOS_TimeOutValue “time ticks” value
\return status code that indicates the execution status of the function.
Clear the specified Event Flags.
\param[in] ef_id event flags ID obtained by \ref osEventFlagsNew.
\param[in] flags specifies the flags that shall be cleared.
\return event flags before clearing or error code if highest bit set.
Delete an Event Flags object.
\param[in] ef_id event flags ID obtained by \ref osEventFlagsNew.
\return status code that indicates the execution status of the function.
Create and Initialize an Event Flags object.
\param[in] attr event flags attributes; NULL: default values.
\return event flags ID for reference by other functions or NULL in case of error.
Set the specified Event Flags.
\param[in] ef_id event flags ID obtained by \ref osEventFlagsNew.
\param[in] flags specifies the flags that shall be set.
\return event flags after setting or error code if highest bit set.
Wait for one or more Event Flags to become signaled.
\param[in] ef_id event flags ID obtained by \ref osEventFlagsNew.
\param[in] flags specifies the flags to wait for.
\param[in] options specifies flags options (osFlagsXxxx).
\param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
\return event flags before clearing or error code if highest bit set.
Get RTOS Kernel Information.
\param[out] version pointer to buffer for retrieving version information.
\param[out] id_buf pointer to buffer for retrieving kernel identification string.
\param[in] id_size size of buffer for kernel identification string.
\return status code that indicates the execution status of the function.
Restore the RTOS Kernel scheduler lock state.
\param[in] lock lock state obtained by \ref osKernelLock or \ref osKernelUnlock.
\return new lock state (1 - locked, 0 - not locked, error code if negative).
Allocate a memory block from a Memory Pool.
\param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
\param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
\return address of the allocated memory block or NULL in case of no memory is available.
Delete a Memory Pool object.
\param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
\return status code that indicates the execution status of the function.
Return an allocated memory block back to a Memory Pool.
\param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
\param[in] block address of the allocated memory block to be returned to the memory pool.
\return status code that indicates the execution status of the function.
Get maximum number of memory blocks in a Memory Pool.
\param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
\return maximum number of memory blocks.
Get number of memory blocks used in a Memory Pool.
\param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
\return number of memory blocks used.
Get number of memory blocks available in a Memory Pool.
\param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
\return number of memory blocks available.
Create and Initialize a Memory Pool object.
\param[in] block_count maximum number of memory blocks in memory pool.
\param[in] block_size memory block size in bytes.
\param[in] attr memory pool attributes; NULL: default values.
\return memory pool ID for reference by other functions or NULL in case of error.
Delete a Message Queue object.
\param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
\return status code that indicates the execution status of the function.
Get a Message from a Queue or timeout if Queue is empty.
\param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
\param[out] msg_ptr pointer to buffer for message to get from a queue.
\param[out] msg_prio pointer to buffer for message priority or NULL.
\param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
\return status code that indicates the execution status of the function.
Get maximum number of messages in a Message Queue.
\param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
\return maximum number of messages.
Get number of queued messages in a Message Queue.
\param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
\return number of queued messages.
Get maximum message size in a Memory Pool.
\param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
\return maximum message size in bytes.
Get number of available slots for messages in a Message Queue.
\param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
\return number of available slots for messages.
Create and Initialize a Message Queue object.
\param[in] msg_count maximum number of messages in queue.
\param[in] msg_size maximum message size in bytes.
\param[in] attr message queue attributes; NULL: default values.
\return message queue ID for reference by other functions or NULL in case of error.
Put a Message into a Queue or timeout if Queue is full.
\param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
\param[in] msg_ptr pointer to buffer with message to put into a queue.
\param[in] msg_prio message priority.
\param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
\return status code that indicates the execution status of the function.
Reset a Message Queue to initial empty state.
\param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
\return status code that indicates the execution status of the function.
Acquire a Mutex or timeout if it is locked.
\param[in] mutex_id mutex ID obtained by \ref osMutexNew.
\param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
\return status code that indicates the execution status of the function.
Delete a Mutex object.
\param[in] mutex_id mutex ID obtained by \ref osMutexNew.
\return status code that indicates the execution status of the function.
Get Thread which owns a Mutex object.
\param[in] mutex_id mutex ID obtained by \ref osMutexNew.
\return thread ID of owner thread or NULL when mutex was not acquired.
Create and Initialize a Mutex object.
\param[in] attr mutex attributes; NULL: default values.
\return mutex ID for reference by other functions or NULL in case of error.
Release a Mutex that was acquired by \ref osMutexAcquire.
\param[in] mutex_id mutex ID obtained by \ref osMutexNew.
\return status code that indicates the execution status of the function.
Acquire a Semaphore token or timeout if no tokens are available.
\param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew.
\param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
\return status code that indicates the execution status of the function.
Delete a Semaphore object.
\param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew.
\return status code that indicates the execution status of the function.
Create and Initialize a Semaphore object.
\param[in] max_count maximum number of available tokens.
\param[in] initial_count initial number of available tokens.
\param[in] attr semaphore attributes; NULL: default values.
\return semaphore ID for reference by other functions or NULL in case of error.
Release a Semaphore token up to the initial maximum count.
\param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew.
\return status code that indicates the execution status of the function.
Detach a thread (thread storage can be reclaimed when thread terminates).
\param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
\return status code that indicates the execution status of the function.
Enumerate active threads.
\param[out] thread_array pointer to array for retrieving thread IDs.
\param[in] array_items maximum number of items in array for retrieving thread IDs.
\return number of enumerated threads.
Clear the specified Thread Flags of current running thread.
\param[in] flags specifies the flags of the thread that shall be cleared.
\return thread flags before clearing or error code if highest bit set.
Set the specified Thread Flags of a thread.
\param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
\param[in] flags specifies the flags of the thread that shall be set.
\return thread flags after setting or error code if highest bit set.
Wait for one or more Thread Flags of the current running thread to become signaled.
\param[in] flags specifies the flags to wait for.
\param[in] options specifies flags options (osFlagsXxxx).
\param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
\return thread flags before clearing or error code if highest bit set.
Get current priority of a thread.
\param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
\return current priority value of the specified thread.
Get available stack space of a thread based on stack watermark recording during execution.
\param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
\return remaining stack space in bytes.
Get current thread state of a thread.
\param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
\return current thread state of the specified thread.
Wait for specified thread to terminate.
\param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
\return status code that indicates the execution status of the function.
Create a thread and add it to Active Threads.
\param[in] func thread function.
\param[in] argument pointer that is passed to the thread function as start argument.
\param[in] attr thread attributes; NULL: default values.
\return thread ID for reference by other functions or NULL in case of error.
Resume execution of a thread.
\param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
\return status code that indicates the execution status of the function.
Change priority of a thread.
\param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
\param[in] priority new priority value for the thread function.
\return status code that indicates the execution status of the function.
Suspend execution of a thread.
\param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
\return status code that indicates the execution status of the function.
Terminate execution of a thread.
\param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
\return status code that indicates the execution status of the function.
Create and Initialize a timer.
\param[in] func function pointer to callback function.
\param[in] type \ref osTimerOnce for one-shot or \ref osTimerPeriodic for periodic behavior.
\param[in] argument argument to the timer callback function.
\param[in] attr timer attributes; NULL: default values.
\return timer ID for reference by other functions or NULL in case of error.
Start or restart a timer.
\param[in] timer_id timer ID obtained by \ref osTimerNew.
\param[in] ticks \ref CMSIS_RTOS_TimeOutValue “time ticks” value of the timer.
\return status code that indicates the execution status of the function.