14 #ifndef HEADERS_R_RTOS_TASK_H_ 15 #define HEADERS_R_RTOS_TASK_H_ unified structure for all synchronization mechanism objects.
Definition: R_RTOS_inc.h:1208
enum tskState TskState
Possible states of tasks.
Defines, Typedefs and Macros for the whole system.
RetCode tsk_ChngePrio(PTskTCB const tsk, const TskPrio newTskPrio)
Definition: R_RTOS_task.c:243
RetCode tsk_ClrEvt(PTskTCB const tsk, PSyncEle const syncEle)
Clear the event that currently blocks the task.
Definition: R_RTOS_task.c:194
FktCall TskStartAddr
function pointer to a task's function with no arguments and no return.
Definition: R_RTOS_inc.h:548
uint8_t TskID
Task identification number (ID).
Definition: R_RTOS_inc.h:532
RetCode tsk_SetInactive(PTskTCB const tsk, TskState tskInactvState)
Set the specified task inactive, remove from active wait queue and set the specified new task state...
Definition: R_RTOS_task.c:212
RetCode tsk_tskDestroy(TskTCB *const tsk)
Destroy the given task.
Definition: R_RTOS_task.c:147
RetCode tsk_tskInit(const TskID tskID, const TskStartAddr const strtAddr, const TskEndAddr const endAddr, const StackSize stkSze)
Creates a task according to the provided input parameters.
Definition: R_RTOS_task.c:82
Task Control Block.
Definition: R_RTOS_inc.h:1322
FktCall TskEndAddr
function pointer to a function which shall be called if a task finishes its execution.
Definition: R_RTOS_inc.h:553
RetCode tsk_SetEvt(PTskTCB const tsk, PSyncEle const syncEle)
Set the event described by syncEle for the specified task.
Definition: R_RTOS_task.c:207
uint16_t StackSize
Used to describe the size of a stack.
Definition: R_RTOS_inc.h:371
uint8_t RetCode
Return codes for functions.
Definition: R_RTOS_inc.h:1424
enum tskPrio TskPrio
Task priority level.
RetCode os_IDLETskInit(const TskStartAddr const strtAddr)
Creates the IDLE Task.
Definition: R_RTOS_task.c:125