Racal Instruments 7064 Instruction Manual page 44

Table of Contents

Advertisement

/*
This function downloads a single RTS instruction into the first word of the
Message Based Interface user global area. T h e identifier "exampleRTS"
is given to this executable block. Subsequent to S-record download, a
Message-Based Interface command is sent to invoke the named function
we've just downloaded. e.g. "exampleRTS".
*1
void downloadAndInvokeRTS(int ud /* unit descriptor */)
extern int strlen(const char *s);
static char *downloadCmd = "download exampleRTS();";
static char *Srecords[] =
"S00600004844521B", /* header record * /
"S2054010004E75E7", /* an RTS instr @ 0x401000 */
"S804401000AB" / * transfer addr = 0x401000 */
1
#define NRCDS (sizeof(Srecords)/sizeof(char*))
static char *invokeCmd = "exampleRTS();"
int ud, i;
/* Open the Message Based Interface */
ud = ibfind ("VXITECH");
/* Tell the Interface you're about to download a named block */
ibwrt (ud, downloadCmd, strlen(downloadCmd));
/* Download a single RTS instruction * /
for (i = 0; i < NRCDS; i++)
ibwrt (ud, Srecordstil, strlen(Srecordsi ii));
/* Tell the Interface to invoke the named block * /
ibwrt (ud, invokeCmd. strlen(invokeCmd));
1
4-15

Advertisement

Table of Contents
loading

Related Products for Racal Instruments 7064

Table of Contents