AutosarOS
task_s Struct Reference

Data structure for task. More...

#include <TaskTypes.h>

Collaboration diagram for task_s:

Data Fields

uint8_t *const stack
 Pointer to stack base. More...
 
const uint16_t stackSize
 Size of stack in bytes. More...
 
const uint8_t prio
 Static priority of the task. More...
 
const uint8_t numberOfActivations
 Number of simultaneous activations. More...
 
const OsTaskAutostart autostart
 Whether or not to start the task during startup. More...
 
const OsTaskType taskType
 Type of task. More...
 
const OsTaskSchedule taskSchedule
 Scheduling-type of task. More...
 
const pTaskFxn taskFxn
 Pointer to task function. More...
 
volatile struct internalResource_s *const internalResource
 Pointer to internal resource. More...
 
const EventMaskType events
 Mask of assigned task events. More...
 
uint8_t * context
 Current context/stack pointer. More...
 
uint8_t curPrio
 Current priority. More...
 
uint8_t curNumberOfActivations
 Current number of activations. More...
 
TaskStateType curState
 Current state of the task. More...
 
struct resource_sresourceQueue
 Current queue of allocated resources. More...
 
EventMaskType waitEvents
 Mask of events the task is currently waiting on. More...
 
EventMaskType pendingEvents
 Mask of currently pending events. More...
 

Detailed Description

Data structure for task.

Definition at line 83 of file TaskTypes.h.

Field Documentation

◆ autostart

const OsTaskAutostart autostart

Whether or not to start the task during startup.

Definition at line 88 of file TaskTypes.h.

◆ context

uint8_t* context

Current context/stack pointer.

Definition at line 94 of file TaskTypes.h.

◆ curNumberOfActivations

uint8_t curNumberOfActivations

Current number of activations.

Definition at line 96 of file TaskTypes.h.

◆ curPrio

uint8_t curPrio

Current priority.

Definition at line 95 of file TaskTypes.h.

◆ curState

TaskStateType curState

Current state of the task.

Definition at line 97 of file TaskTypes.h.

◆ events

const EventMaskType events

Mask of assigned task events.

Definition at line 93 of file TaskTypes.h.

◆ internalResource

volatile struct internalResource_s* const internalResource

Pointer to internal resource.

Definition at line 92 of file TaskTypes.h.

◆ numberOfActivations

const uint8_t numberOfActivations

Number of simultaneous activations.

Definition at line 87 of file TaskTypes.h.

◆ pendingEvents

EventMaskType pendingEvents

Mask of currently pending events.

Definition at line 106 of file TaskTypes.h.

◆ prio

const uint8_t prio

Static priority of the task.

Definition at line 86 of file TaskTypes.h.

◆ resourceQueue

struct resource_s* resourceQueue

Current queue of allocated resources.

Definition at line 104 of file TaskTypes.h.

◆ stack

uint8_t* const stack

Pointer to stack base.

Definition at line 84 of file TaskTypes.h.

◆ stackSize

const uint16_t stackSize

Size of stack in bytes.

Definition at line 85 of file TaskTypes.h.

◆ taskFxn

const pTaskFxn taskFxn

Pointer to task function.

Definition at line 91 of file TaskTypes.h.

◆ taskSchedule

const OsTaskSchedule taskSchedule

Scheduling-type of task.

Definition at line 90 of file TaskTypes.h.

◆ taskType

const OsTaskType taskType

Type of task.

Definition at line 89 of file TaskTypes.h.

◆ waitEvents

EventMaskType waitEvents

Mask of events the task is currently waiting on.

Definition at line 105 of file TaskTypes.h.


The documentation for this struct was generated from the following file: