Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
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
Generated on Tue Aug 2 2022 10:35:51 by
