@@ -86,13 +86,14 @@ class sfeTkArdI2C : public sfeTkII2C
8686
8787 // / @brief Writes a number of bytes starting at the given register's address.
8888 // / @note sfeTkIBus interface method
89+ // / @note This method is virtual to allow it to be overridden to support a device that requires a unique impl
8990 // /
9091 // / @param devReg The device's register's address.
9192 // / @param data Data to write.
9293 // /
9394 // / @retval returns number of bytes written, < 0 is an error code
9495 // /
95- int writeRegisterRegion (uint8_t devReg, const uint8_t *data, uint16_t length);
96+ virtual int writeRegisterRegion (uint8_t devReg, const uint8_t *data, uint16_t length);
9697
9798 // / @brief Reads a byte of data from the given register.
9899 // / @note sfeTkIBus interface method
@@ -116,13 +117,14 @@ class sfeTkArdI2C : public sfeTkII2C
116117
117118 // / @brief Reads a block of data from the given register.
118119 // / @note sfeTkIBus interface method
120+ // / @note This method is virtual to allow it to be overridden to support a device that requires a unique impl
119121 // /
120122 // / @param devReg The device's register's address.
121123 // / @param data Data to write.
122124 // /
123125 // / @retval 0 on success, < 0 on error - see error code
124126 // /
125- int readRegisterRegion (uint8_t devReg, uint8_t *data, uint16_t numBytes);
127+ virtual int readRegisterRegion (uint8_t devReg, uint8_t *data, uint16_t numBytes);
126128
127129 private:
128130 // The actual Arduino i2c port
0 commit comments