![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
fork of StateScript
Fork of stateScript_v2 by
Diff: hardwareInterface.h
- Revision:
- 9:f783bce314cd
- Parent:
- 8:872b843a3053
- Child:
- 10:f65649c13b5b
--- a/hardwareInterface.h Tue Feb 07 19:40:32 2017 +0000 +++ b/hardwareInterface.h Wed Apr 26 16:40:36 2017 +0000 @@ -40,6 +40,7 @@ virtual void init(int pin) = 0; virtual int read() = 0; + volatile int32_t* hardwareStatePtr; protected: @@ -144,7 +145,15 @@ virtual uint32_t getDigitalInputChangeFlags(); void setPortUpdatesOn(int portNum); void setPortUpdatesOff(int portNum); + virtual bool digitalOutNeedsUpdate(); + virtual bool digitalInNeedsUpdate(); bool* getIgnoreUpdates(); + virtual uint16_t getHardwareModelNumber(); + virtual uint16_t getHardwareSerialNumber(); + virtual uint8_t getHardwareMajorVersion(); + virtual uint8_t getHardwareMinorVersion(); + +