Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed SDFileSystem
Diff: include/DeviceRepeater.h
- Revision:
- 17:c2709a9c0a68
- Parent:
- 10:db2be22bc2f9
--- a/include/DeviceRepeater.h Thu May 30 03:00:15 2019 +0000 +++ b/include/DeviceRepeater.h Mon Jun 10 23:50:04 2019 +0000 @@ -14,6 +14,7 @@ DEV_REQ_STOP, } DevStatus; private: + static const bool DEFAULT_REPEAT_SINGLESHOT = false; static const int DEFAULT_REPEAT_MAX_COUNT = 1; static const int DEFAULT_REPEAT_STRIDE = 5; static const int NOT_ID_SELECTED = -1; @@ -26,6 +27,7 @@ /* Tick base class */ Ticker *pClock; /* members for repeating */ + int repeat_singleshot; int repeat_max_count; int repeat_stride_sec; int repeat_remain_cnt; @@ -36,6 +38,7 @@ DeviceRepeater(int deviceId, DeviceDriver *setDriver); bool setRepeatCount(int maxcount); bool setRepeatStride(int sec); + bool setRepeatSingleShot(bool setMode); bool setConfigId(int id); bool setConfigValue(int setValue); bool getConfigValue(int *retValue);