-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from makers-for-life/EolTestForSeb
Eol test for seb
- Loading branch information
Showing
3 changed files
with
576 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/****************************************************************************** | ||
* @author Makers For Life | ||
* @copyright Copyright (c) 2020 Makers For Life | ||
* @file end_of_line_test.h | ||
* @brief Auto test for end of line unit test | ||
*****************************************************************************/ | ||
|
||
#pragma once | ||
|
||
#include "../includes/blower.h" | ||
#include "../includes/pressure_valve.h" | ||
|
||
#define EOL_TEST_ACTIVE 0xa240183a | ||
|
||
/// Controls the running of the embedded auto tests | ||
class EolTest { | ||
public: | ||
/// Default constructor | ||
EolTest(); | ||
|
||
/// Enable test mode | ||
void activate(); | ||
|
||
/** | ||
* Check if test mode is enabled | ||
* | ||
* @return True if test mode is enabled | ||
*/ | ||
bool isRunning(); | ||
|
||
/// Run test mode | ||
void setupAndStart(); | ||
|
||
private: | ||
/// Test mode activation state | ||
uint32_t testActive; | ||
}; | ||
|
||
extern HardwareTimer* eolTimer; | ||
extern EolTest eolTest; | ||
|
||
// These are defined and initialized in the main program | ||
extern PressureValve servoBlower; | ||
extern PressureValve servoPatient; | ||
extern Blower blower; | ||
extern int16_t pressureOffset; |
Oops, something went wrong.