| cmdTMR_SET | Index |
Command Code:
The Packet:
| 0 | 1 | 2 | 3 | 4 | 5 | |||||
| address | 4 | cmdTMR_SET | TimerID | TIMEH | TIMEL |
| TimerID - | Index of the timer. |
| TIMEH - | High-byte for the time. |
| TIMEL - | Low-byte for the time. |
Description:
This command starts a software timer. The delay is specified in units of 0.1ms. The maximum delay is 6.5535 seconds. After the timer expires, it can activate a reflex. There is no reply packet. A timer ID that is out of range will generate an error message. Attempting to set a timer that has already been set will generate an error message.
Setting a time value of 0 will generate an error message.
In BrainStem GP 1.0 modules starting with Build 9 and in newer module types, executing this command without TIMEH and TIMEL parameters will deactivate or kill the specified timer if it is running and have no effect if that timer is not running.
See the discussion of Timer usage for more details.