Miscellaneous Library, read Encoder etc.
Diff: Signal.h
- Revision:
- 1:c680da75a614
- Parent:
- 0:3312872854c4
- Child:
- 2:1c5c71a6fac9
--- a/Signal.h Mon Mar 04 11:03:51 2019 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -/* - * Signal.h - * Copyright (c) 2017, ZHAW - * All rights reserved. - */ - -#ifndef SIGNAL_H_ -#define SIGNAL_H_ - -#include <cstdlib> -#include <stdint.h> -#include <mbed.h> - -/** - * This class manages the handling of unique signal flags to trigger rtos threads. - */ -class Signal { - - public: - - Signal(); - virtual ~Signal(); - virtual int32_t read(); - operator int32_t(); - - private: - - static int32_t signals; // variable that holds all assigned signal flags - int32_t signal; // signal flag of this object - Mutex mutex; // mutex to lock critical sections -}; - -#endif /* SIGNAL_H_ */ -