32 #ifndef RTOS_APPTASK_TYPE_DEFINITION_HEADER_H 33 #define RTOS_APPTASK_TYPE_DEFINITION_HEADER_H 46 enum APPTASK_CLASS_e {
49 APP_CLASS_LOW_PRIORITY = 1,
50 APP_CLASS_HIGH_PRIORITY = 2
53 typedef enum APPTASK_CLASS_e APPTASK_CLASS_t;
volatile struct APPTASK_EXECUTION_s Settings
Execution time settings of the task object.
volatile uint16_t TaskID
Task identifier encoding task execution list and list index (read only)
volatile uint32_t max_time
Maximum execution time of the task object (latched tracking, reset in software)
volatile bool enabled
Bit 15: Control bit enabling the execution of the task execute function.
volatile struct APPTASK_TASKLINK_s Functions
Function pointer to main API user task functions.
volatile uint32_t exec_time
Execution time in CPU ticks of the most recent task execution (read only)
volatile bool retval
Bit 0: Status bit indicating a failed execution of the user task.
volatile struct APPTASK_STATUS_s Status
Status word of the task object.
volatile uint16_t(* Initialize)(void)
Function pointer to INITIALIZATION routine.
volatile uint16_t(* Start)(void)
Function pointer to START routine.
volatile int32_t Period
Task execution period defined in multiples of OS task execution base clock ticks (e....
volatile unsigned
Bit 1: (reserved)
volatile uint16_t(* Dispose)(void)
Function pointer to DISPOSE routine.
volatile int32_t Counter
Execution period counter (read only)
volatile bool busy
Bit 7: Status bit indicating the task is busy.
enum APPTASK_CLASS_e execClass
Execution class of the task object (low priority, high priority)
volatile struct APPTASK_STATISTICS_s Statistics
Task execution statistics data.
volatile uint16_t(* Execute)(void)
Function pointer to EXECUTE routine.
volatile int32_t Offset
Task execution period offset defined in multiples of OS task execution base clock ticks (e....
volatile uint32_t avg_time
Moving average execution time of the task object (read only)