SPI-Brigde (capseld), for polling interrupt, it is neccessary to adapt the constructor and the function getInt()
Diff: SC18IS602.h
- Revision:
- 1:2a7edc2be6df
- Parent:
- 0:833cb2c6da5d
- Child:
- 2:cb90c271c412
--- a/SC18IS602.h Fri Feb 01 09:40:03 2019 +0000 +++ b/SC18IS602.h Fri Feb 01 15:46:53 2019 +0000 @@ -97,8 +97,7 @@ bool readViaSPI(char cAdrByte, char *cDataBytes, uint8_t uiNum); - bool getInt(); - bool clearInt(); + //void setIntFuncPtr( bool (*Int_ptr)(void)); private: // private I2C *i2c; // Serial Data & Clock @@ -108,8 +107,11 @@ bool sendViaI2C(const char *cData, int iLength, string sDebug = ""); bool readViaI2C(char *cData, int iLength, string sDebug = ""); - + bool getInt(); + bool clearInt(); + + bool (*getInt_ptr)(void); // variable