User`s guide

Dialogic
®
System Release 6.0 PCI for Windows
®
Release Update, Rev 62 — January 30, 2008 181
Dialogic Corporation
1.50.3 Firmware Assert Notification
In order to enable the firmware assert notification feature, an application should call
brd_Open( ) with new a mode parameter, BRD_FW_ASSERT_ENABLE. (Previously,
the mode parameter was documented as reserved for future use.) The new mode
parameter is found in devmgmt.h header. The application will need to link with the device
management library (libdevmgmt).
Each physical board that the application wants firmware assert notification for must be
opened with brd_Open( ). If a firmware assert occurs, a new event, DMEV_FW_ASSERT,
will be posted to the application. This event is found in devmgmt.h. The application should
poll for this event and when an assert occurs, close all devices on this board before doing
a single board stop/start. Closing should include brd_Close( ) as well as the specific
technology close such as dx_close( ) or dt_close( ).
The firmware assert notification is available for all Dialogic
®
Springware JCT Boards.
Example Code
#include <windows.h> /* For Windows applications only */
#include "srllib.h"
#include "dxxxlib.h"
#include "devmgmt.h"
void main( )
{
int nDev, nDev1, nRet, nEvtType;
nDev = dx_open("dxxxB1C1", 0);
if (nDev == -1)
{
printf("open failed err = %d %s\n", ATDV_LASTERR(nDev), ATDV_ERRMSGP(nDev));
exit(0);
}
printf("opened %d\n", nDev);
nDev1 = brd_Open("brdB1", BRD_FW_ASSERT_ENABLE); // enable fw assert notification
if (nDev1 == -1)
{
printf("Brd open failed err = %d %s\n", ATDV_LASTERR(nDev1), ATDV_ERRMSGP(nDev1));
exit(0);
}
nRet = sr_waitevt(10000);
printf("waitevt returned\n");
if(nRet == -1)
{
// ERROR
printf("srl timeout error\n");
}
nEvtType = sr_getevttype(0);