ROME2 - TI / Mbed 2 deprecated ROME2 - Praktikum

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Task.h Source File

Task.h

00001 /*
00002  * Task.h
00003  * Copyright (c) 2017, ZHAW
00004  * All rights reserved.
00005  */
00006 
00007 #ifndef TASK_H_
00008 #define TASK_H_
00009 
00010 #include <cstdlib>
00011 
00012 /**
00013  * This is an abstract task class with a method that
00014  * is called periodically by a task sequencer.
00015  */
00016 class Task {
00017     
00018     public:
00019         
00020         static const int    FAULT = -1;     /**< Task return value. */
00021         static const int    RUNNING = 0;    /**< Task return value. */
00022         static const int    DONE = 1;       /**< Task return value. */
00023         
00024                         Task();
00025         virtual         ~Task();
00026         virtual int     run(float period);
00027 };
00028 
00029 #endif /* TASK_H_ */
00030