Robot Agent  1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Typedefs | Functions
scheduler.h File Reference

Go to the source code of this file.

Data Structures

struct  s_SCHEDULER_STRUCT
 Scheduler structure. More...
 

Typedefs

typedef struct s_SCHEDULER_STRUCT scheduler_t
 Scheduler structure. More...
 

Functions

scheduler_tscheduler_init (void)
 
void scheduler_destroy (scheduler_t *ces)
 
void scheduler_start (scheduler_t *ces)
 
void scheduler_wait_for_timer (scheduler_t *ces)
 
void scheduler_exec_task (scheduler_t *ces, int task_id)
 
void scheduler_run (scheduler_t *ces)
 

Detailed Description

Author
Eriks Zaharans
Date
1 Jul 2013

DESCRIPTION

Cyclic executive scheduler library header file.

Definition in file scheduler.h.

Typedef Documentation

Scheduler structure.

Function Documentation

void scheduler_destroy ( scheduler_t ces)

Deinitialize cyclic executive scheduler

Parameters
cesPointer to scheduler structure
Returns
Void

Definition at line 44 of file scheduler.c.

void scheduler_exec_task ( scheduler_t ces,
int  task_id 
)

Execute task

Parameters
cesPointer to scheduler structure
task_idTask ID
Returns
Void

Definition at line 91 of file scheduler.c.

scheduler_t* scheduler_init ( void  )

Initialize cyclic executive scheduler

Parameters
minorMinor cycle in miliseconds (ms)
Returns
Pointer to scheduler structure

Definition at line 31 of file scheduler.c.

void scheduler_run ( scheduler_t ces)

Run scheduler

Parameters
cesPointer to scheduler structure
Returns
Void

Definition at line 135 of file scheduler.c.

void scheduler_start ( scheduler_t ces)

Start scheduler

Parameters
cesPointer to scheduler structure
Returns
Void

Definition at line 55 of file scheduler.c.

void scheduler_wait_for_timer ( scheduler_t ces)

Wait (sleep) till end of minor cycle

Parameters
cesPointer to scheduler structure
Returns
Void

Definition at line 67 of file scheduler.c.