diff options
author | Dave Madison <dmadison@users.noreply.github.com> | 2020-07-23 06:43:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-23 06:43:04 -0400 |
commit | e5f960a2f9e135cfda466926f36e0f119a125e23 (patch) | |
tree | 4a0f8da4185436714fccb33db8b592db8a8b83b2 /libraries/Wire/src/Wire.h | |
parent | 924299c159b619852d4c5eb1fc106db8a459d661 (diff) | |
parent | 41870576b451062921f9e35be411efa56be37ea1 (diff) |
Merge pull request #9 from dmadison/upstream-updates
Arduino Core 1.8.3
Diffstat (limited to 'libraries/Wire/src/Wire.h')
-rw-r--r-- | libraries/Wire/src/Wire.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libraries/Wire/src/Wire.h b/libraries/Wire/src/Wire.h index 702f37d..e70d72e 100644 --- a/libraries/Wire/src/Wire.h +++ b/libraries/Wire/src/Wire.h @@ -17,6 +17,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Modified 2012 by Todd Krein (todd@krein.org) to implement repeated starts + Modified 2020 by Greyson Christoforo (grey@christoforo.net) to implement timeouts */ #ifndef TwoWire_h @@ -54,13 +55,16 @@ class TwoWire : public Stream void begin(int); void end(); void setClock(uint32_t); + void setWireTimeout(uint32_t timeout = 25000, bool reset_with_timeout = false); + bool getWireTimeoutFlag(void); + void clearWireTimeoutFlag(void); void beginTransmission(uint8_t); void beginTransmission(int); uint8_t endTransmission(void); uint8_t endTransmission(uint8_t); uint8_t requestFrom(uint8_t, uint8_t); uint8_t requestFrom(uint8_t, uint8_t, uint8_t); - uint8_t requestFrom(uint8_t, uint8_t, uint32_t, uint8_t, uint8_t); + uint8_t requestFrom(uint8_t, uint8_t, uint32_t, uint8_t, uint8_t); uint8_t requestFrom(int, int); uint8_t requestFrom(int, int, int); virtual size_t write(uint8_t); |