
ROBO-8122VG2R
Copyright © Portwell 2017 ROBO-8122VG2R User's Guide
29
¾
PET_WDT_GetConfig
Declaration
Once the watch dog has been activated, its timer begins to count down. The API can get current type and timeout value.
Prototype
int PET_WDT_GetConfig (int *type, unsigned char *timeout);
Parameter
type
[Out] Two type: SECOND_MODE and MINUTE_MODE.
timeout
[Out] Timeout value.
Return Value
If the return value (0) is success, otherwise return an error code.
Sample Code
01 int wdt_type;
02 unsigned char timeout;
03 int test = PET_WDT_GetConfig ( &wdt_type , &timeout);
04 if ( test == 0)
05 printf ("WDT type:%d, timeout:%d\n", wdt_type, wdt_timeout);
Summary of Contents for ROBO-8122VG2R
Page 13: ...ROBO 8122VG2R Copyright Portwell 2017 ROBO 8122VG2R User s Guide 13 2 2 Mechanical Dimensions...
Page 14: ...ROBO 8122VG2R Copyright Portwell 2017 ROBO 8122VG2R User s Guide 14...
Page 17: ...ROBO 8122VG2R Copyright Portwell 2017 ROBO 8122VG2R User s Guide 17 Block Diagram...
Page 51: ...ROBO 8122VG2R Copyright Portwell 2017 ROBO 8122VG2R User s Guide 51 CPU0 1 PCIE Configuration...
Page 76: ...ROBO 8122VG2R Copyright Portwell 2017 ROBO 8122VG2R User s Guide 76 6 2 5 Save Exit...
Page 83: ...ROBO 8122VG2R Copyright Portwell 2017 ROBO 8122VG2R User s Guide 83...