(Page 5 of 14 in this chapter)


agmDownloadBoard

Description

Downloads the runfiles, DSP files, and TCP files to a specified AG board.

Prototype

DWORD agmDownloadBoard ( AGMHD agmhd,
DWORD board)

agmhd Handle returned by agmOpen.

board Board number of the destination board which will receive the downloaded files.

Return Values

Details

This function downloads run files, DSP files, and TCP files to the specified board. The list of files is read from the configuration file bound to the AGM context specified by the agmhd. The configuration file was passed to agmOpen when it created the AGM context.

agmDownloadBoard can only be called after the board has been booted with agmBootBoard.

See Also

agmBootBoard, agmOpen

Example


for (board=0; board < AGM_MAX_BOARDS; board++)
{
if (boardmask & (1<<board))
{
AGM_BOOT_INFO status;

printf (""Board %d: Booting..."", board);
if (agmBootBoard (agmhd, board, &status) != SUCCESS)
printf (""Failed\n"");
else


{
printf (""Downloading..."");
if (agmDownloadBoard (agmhd, board) != SUCCESS)
printf (""Failed\n"");
else
printf (""Done.\n"");
}
}
}



(Page 5 of 14 in this chapter)


tech_support@nmss.com
Copyright © 1998, Natural MicroSystems, Inc. All rights reserved.