PreviousNext
setWDTon_xxxx
Help > Macros > Control > setWDTon_xxxx

Macro

 

Enable Watchdog with wake-up after a specified time

Purpose

 

Specify a Watchdog timeout (e.g. to define the sleeping period)

Syntax

 

void setWDTon_1ms()

void setWDTon_2ms()

void setWDTon_4ms()

void setWDTon_8ms()

void setWDTon_16ms()

void setWDTon_32ms()

void setWDTon_64ms()

void setWDTon_128ms()

void setWDTon_256ms()

void setWDTon_512ms()

void setWDTon_1s()

void setWDTon_2s()  

void setWDTon_4s()  

void setWDTon_8s()  

void setWDTon_16s()

void setWDTon_32s()

void setWDTon_64s() 

void setWDTon_128s()

void setWDTon_256s()

Parameters

 

 –

Return value

 

 –

Output values

 

Watchdog is enabled and its timeout configured for the specified time (1 ms, …, 256 s)

Preconditions

 

Watchdog is default disabled and its timeout is set to 4 s after power on.

Remarks

 

Refer to the datasheet of the given TR module and IQRF OS User’s guide, chapter Watchdog.

Side effects

 

 –

See also

 

setWDTon, setWDToff

Example

 

setWDTon_16s();     // Watchdog enabled

iqrfSleep();        // Sleep, wake-up after 16 s

setWDToff();        // Continue, Watchdog disabled