-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug #1 about recover from error in adquisition thread
- Loading branch information
Showing
13 changed files
with
120 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright (C) 2018 by IMDEA Networks Institute | ||
* | ||
* This file is part of Electrosense. | ||
* | ||
* Electrosense is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Electrosense is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with RTL-Spec. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* Authors: | ||
* Roberto Calvo-Palomino <[email protected]> | ||
* | ||
*/ | ||
|
||
#ifndef ES_SENSOR_COMMUNCATION_H | ||
#define ES_SENSOR_COMMUNCATION_H | ||
|
||
#include <thread> | ||
|
||
#include "../misc/readerwriterqueue.h" | ||
|
||
using namespace moodycamel; | ||
|
||
template <typename Tin, typename Tout> | ||
class Communication { | ||
|
||
public: | ||
|
||
typedef const Tin ParamIn; | ||
typedef const Tout ParamOut; | ||
|
||
// Getters for the queue | ||
virtual ReaderWriterQueue<Tin>* getQueueIn() = 0; | ||
virtual ReaderWriterQueue<Tout>* getQueueOut() = 0; | ||
|
||
// Setters for the queue | ||
virtual void setQueueIn (ReaderWriterQueue<Tin>* QueueIn) = 0; | ||
virtual void setQueueOut (ReaderWriterQueue<Tout>* QueueOut) = 0; | ||
|
||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,8 @@ class Driver { | |
virtual int close() = 0; | ||
|
||
|
||
|
||
// | ||
virtual bool isRunning() = 0; | ||
|
||
private: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.