Acrosser AR-B6050 User Manual
Page 8

5
5
Return Value: If the function sets the values successfully, it returns
STATUS_SUCCESS, any other returned value stands for error.
2.1.2. Watchdog
1. Syntax:
Status_t getWtdTimer(uint32_t *pTimer)
Description: This function read the value of the watchdog timer.
Parameters: The value of the timer is put at the memory which is pointed by the
argument ‘pTimer’.
Return Value: This function always returns STATUS_SUCCESS.
2. Syntax:
Status_t setWtdTimer( uint32_t Timer )
Description: This function sets the watchdog timer register to the value ‘Timer’
and starts to count down. The value could be 0 ~ 255. The unit is second. Setting
the timer register to 0 disables the watchdog function and stops the countdown.
Parameters: The parameter ‘Timer’ is the value to be set to watchdog timer
register. The range is 0 ~ 255.
Return Value: This function always returns STATUS_SUCCESS.