Function |
|
Preset and start the LongDelay timer |
Purpose |
|
Initialization of time measurement or delay generation |
Syntax |
|
void startLongDelay(uns16 ticks) |
Parameters |
|
ticks: number of ticks (10 ms system intervals) to be measured (1-65535) |
Return value |
|
– |
Output values |
|
– |
Preconditions |
|
This function can be combined with waitMS. |
Remarks |
|
The Delay timer measures the specified time on the OS background. Expiration can be checked by the isDelay function. |
Side effects |
|
• This function does not work properly if the waitDelay function is active. • Functionality is affected by bondRequestAdvanced, RFRXpacket, and RFTXpacket. • Delay in the first tick can vary from 0 ms to 10 ms. If complete 10 ms is needed also in the first tick, use waitNewTick firstly. • Internal ticks are based on the internal RC oscillator if RF IC is sleeping. Thus, the delay can vary with temperature, etc. in this case. See MCU datasheet. |
See also |
|
|
Example |
|
See isDelay |