diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-05-02 17:13:46 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-05-02 17:13:46 +0300 |
commit | f00d3a5490d27183fd2c7752fa63469783d05dc0 (patch) | |
tree | 0bdd4474070656b3452f0d4cebf868729813976f /src/GCodes/Trigger.h | |
parent | 4c0d60f194195db1046b58d1d0edbc0a29a04449 (diff) |
Changes for eCv
Diffstat (limited to 'src/GCodes/Trigger.h')
-rw-r--r-- | src/GCodes/Trigger.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/GCodes/Trigger.h b/src/GCodes/Trigger.h deleted file mode 100644 index bdf1ac24..00000000 --- a/src/GCodes/Trigger.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Trigger.h - * - * Created on: 6 Jun 2019 - * Author: David - */ - -#ifndef SRC_GCODES_TRIGGER_H_ -#define SRC_GCODES_TRIGGER_H_ - -#include <RepRapFirmware.h> -#include <Hardware/IoPorts.h> - -class Trigger -{ -public: - Trigger() noexcept; - - void Init() noexcept; - - // Return true if this trigger is unused, i.e. it doesn't watch any pins - bool IsUnused() const noexcept; - - // Check whether this trigger is active and update the input states - bool Check() noexcept; - - // Handle M581 for this trigger - GCodeResult Configure(unsigned int number, GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeException); - - // Handle M582 for this trigger - bool CheckLevel() noexcept; - -private: - static void AppendInputNames(AxesBitmap endstops, InputPortsBitmap inputs, const StringRef& reply) noexcept; - - AxesBitmap highLevelEndstops, lowLevelEndstops, endstopStates; - InputPortsBitmap highLevelInputs, lowLevelInputs, inputStates; - int8_t condition; -}; - -#endif /* SRC_GCODES_TRIGGER_H_ */ |