AutosarOS
TaskTypes.h File Reference

Types used for tasks. More...

#include <stdint.h>
#include "EventTypes.h"
Include dependency graph for TaskTypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  task_s
 Data structure for task. More...
 

Macros

#define TASK(TaskName)   extern void Func ## TaskName(void)
 
#define PTASK(TaskName)   &Func ## TaskName
 

Typedefs

typedef void(* pTaskFxn) ()
 
typedef enum tasks_e TaskType
 Type for task reference. More...
 
typedef TaskTypeTaskRefType
 Reference to a task reference. More...
 
typedef enum OsTaskType_e OsTaskType
 OSEK task type. More...
 
typedef enum OsTaskSchedule_e OsTaskSchedule
 Task scheduling scheme. More...
 
typedef enum OsTaskState_e TaskStateType
 Task state. More...
 
typedef TaskStateTypeTaskStateRefType
 Type for task state reference. More...
 
typedef enum OsTaskAutostart_e OsTaskAutostart
 Task autostart mode. More...
 

Enumerations

enum  OsTaskType_e { BASIC = 0, EXTENDED }
 OSEK task type. More...
 
enum  OsTaskSchedule_e { PREEMPTIVE = 0, NON_PREEMPTIVE }
 Task scheduling scheme. More...
 
enum  OsTaskState_e {
  SUSPENDED = 0, PRE_READY, READY, RUNNING,
  WAITING
}
 Task state. More...
 
enum  OsTaskAutostart_e { NO_AUTOSTART = 0, AUTOSTART }
 Task autostart mode. More...
 

Detailed Description

Types used for tasks.

Date
2019-09-03
Author
Pascal Romahn

Definition in file TaskTypes.h.

Macro Definition Documentation

◆ PTASK

#define PTASK (   TaskName)    &Func ## TaskName

Definition at line 22 of file TaskTypes.h.

◆ TASK

#define TASK (   TaskName)    extern void Func ## TaskName(void)

Definition at line 21 of file TaskTypes.h.

Typedef Documentation

◆ OsTaskAutostart

Task autostart mode.

◆ OsTaskSchedule

Task scheduling scheme.

◆ OsTaskType

typedef enum OsTaskType_e OsTaskType

OSEK task type.

◆ pTaskFxn

typedef void(* pTaskFxn) ()

Definition at line 24 of file TaskTypes.h.

◆ TaskRefType

Reference to a task reference.

Reference an TaskType

Definition at line 36 of file TaskTypes.h.

◆ TaskStateRefType

Type for task state reference.

Reference a TaskStateType.

Definition at line 70 of file TaskTypes.h.

◆ TaskStateType

Task state.

◆ TaskType

typedef enum tasks_e TaskType

Type for task reference.

Definition at line 24 of file TaskTypes.h.

Enumeration Type Documentation

◆ OsTaskAutostart_e

Task autostart mode.

Enumerator
NO_AUTOSTART 

Do not autostart task.

AUTOSTART 

Autostart task.

Definition at line 75 of file TaskTypes.h.

◆ OsTaskSchedule_e

Task scheduling scheme.

Enumerator
PREEMPTIVE 

The task may be preempted by another task.

NON_PREEMPTIVE 

The task may not be preempted.

Definition at line 49 of file TaskTypes.h.

◆ OsTaskState_e

Task state.

Enumerator
SUSPENDED 

The task is suspended and will not be scheduled.

PRE_READY 

The task is ready but its stack is uninitialized.

READY 

The task is ready to be scheduled.

RUNNING 

The task is currently running.

WAITING 

The task is waiting for an event.

Definition at line 57 of file TaskTypes.h.

◆ OsTaskType_e

OSEK task type.

Enumerator
BASIC 

The task is a basic task, thus unable to wait on an event.

EXTENDED 

The task is a extended task.

Definition at line 41 of file TaskTypes.h.