#include <cogent.h>
int DR_ApPointBufAddress(char* pnt_name, int* card_id, int* buf_id, unsigned short* offset, unsigned short* bit, char** error );
The integer value 0 if the function is successful, otherwise one of the following error codes:
DR_ERR_PNT_NOT_FOUND DR_API_IPC_ERRORS DR_API_STATUS_ERRORS
int card, buffer;
unsigned short offset, bit;
char *name = "counter";
char *error_str;
if (result = DR_ApPointBufAddress (name, &card, &buffer,
&offset, &bit, &error_str))
printf (" Error@PointBufAddress (%d, %s)\n",
result, error_str);
else
{
printf (" Maps to: card %d, buffer %d, offset: %d",
card, buffer, offset);
printf (", bit: %d\n", bit);
}Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.