ProSoft Technology MVI69-ADM User Manual

Page 61

Advertising
background image

MVI-ADM ♦ 'C' Programmable

Understanding the MVI-ADM API

'C' Programmable Application Development Module

Developer's Guide

ProSoft Technology, Inc.

Page 61 of 342

February 20, 2013

char buff[2000]; /* data area used to hold message
*/
int buff_len; /* number of characters to print */
int buff_ch; /* index of character to print */
MVIHANDLE handle; /* backplane handle */
HANDLE sc_handle; /* side-connect handle */
int ModCfgErr;
int Apperr;
unsigned short cfg_file; /* side-connect usage */
}ADM_INTERFACE;

The following structures are referenced by the interface structure:

The structure ADM_PRODUCT contains the product name abbreviation and
version information.

typedef struct
{
char ProdName[5]; /* Product Name */
char Rev[5]; /* Revision */
char Op[5]; /* Month/Year */
char Run[5]; /* Day/Run */
}ADM_PRODUCT;

The structure ADM_BT_DATA contains the backplane transfer configuration
settings and status counters.

typedef struct
{
short rd_start;
short rd_count;
short rd_blk_max;
short wr_start;
short wr_count;
short wr_blk_max;
WORD bt_fail_cnt; /* number of successive failures before comm
SD */
WORD bt_fail_cntr; /* current number of failures */
WORD bt_failed; /* comm SD status */
short rd_blk;
short rd_blk_last;
short wr_blk;
short wr_blk_last;
unsigned short buff[130]; //only require a single buffer because only
1 op at a time
WORD wrbuff[258];
WORD rdbuff[248];
WORD cbuff[3000];
short bt_size;
}ADM_BT_DATA;

The structure ADM_BLK_ERRORS contains the backplane transfer status
counters.

typedef struct
{
WORD rd; /* blocks read */
WORD wr; /* blocks written */
WORD parse; /* blocks parsed */
WORD event; /* reserved */

Advertising