3 watchdog timer, Eapi library sample code, Watchdog timer – ADLINK cPCI-3620 User Manual
Page 70
58
Utilities
7.3 Watchdog Timer
The watchdog timer on the cPCI-3620 can be implemented in the
following ways:
X
SEMA GUI
X
SEMA CLI
X
Embedded Application Programming Interface (EAPI)
library functions
X
SEMA library functions
Please refer to the SEMA Software Manual for detailed informa-
tion:
EAPI Library Sample Code
Make sure you have installed the SEMA driver and application.
When installing, please check the “Install EAPI” option.
Include the relevant header files
#ifndef _WIN32
#include "linux/EApiOs.h"
#else /* _WIN32 */
#include "winnt/EApiOs.h"
#endif /* _WIN32 */
#include "EApi.h"
Initialize the EAPI
EApiLibInitialize();
Call the EAPI function
uint32_t status=EApiWDogStart(Delay,EventTimeout,
ResetTimeout);
For detailed information on the PICMG EAPI Library, please refer
to the
PICMG EAPI - Embedded Application Programming
Interface specification: http://picmg.staging.wedu.com//wp-con-
tent/uploads/COM_EAPI_R1_0.pdf.