EasyManua.ls Logo

Acrosser Technology AR-V6002FL - Page 72

Default Icon
84 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Revision: 1.23
72
Return Value: If the function sets the values successfully, it returns 0. If any error, it returns
not zero.
Watchdog
Under linux platform:
1. Syntax:
u8 getWtdTimer(void)
Description: This function read the value of the watchdog time counter and return it to the
caller.
Parameters: None.
Return Value: This function return the value of the time counter and return it to the caller as an
unsigned integer.
2. Syntax:
void setWtdTimer( u8 val )
Description: This function sets the watchdog timer register to the value ‘val’ 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 ‘val’ is the value to set to watchdog timer register. The range is 0 ~
255.
Return Value: None.
Under windows platform:
1. Syntax:
int readWatchdog(unsigned char * pucValue)
Description: This function read the value of the watchdog time counter and return it to the
caller.
Parameters: The parameter ‘pucValue’ is an unsigned character pointer. The function puts the
values read from watchdog at the memory pointed by ‘pucValue’.
Return Value: If the function gets the values successfully, it returns 0. If any error, it returns