MIL-STD-1553 Reference Manual
Chapter 3 – System Functions
3.1.9 ApiCmdLoadSRec
Prototype:
AiInt16 ApiCmdLoadSRec( AiUInt32 ul_ModuleHandle, AiUInt8 mode, AiUInt8 cnt,
AiUInt32 offset, AiUInt8 *srec, AiUInt8 *st, AiUInt32 *fsize );
Driver Command:
API_LOAD_SREC (0x36)
Purpose:
This function is used to download strings in S-Record format to the AIM board target.
The S-Record ASCII characters are converted into an executable format.
Note: this function is not supported for all boards. Please see Table B-III – Function
Support By Boards With ASP for details
Input
Initialize Download function (reset ‘fsize’)
Download ‘cnt’ S-Record characters
Start downloaded program from ‘offset’ address
Start downloaded program from ‘offset’ address
(non cyclic, that means once)
Amount of characters to download
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
o
o
f
f
f
f
s
s
e
e
t
t
Add Offset value to S-Record address
Address to start downloaded program from
A
A
i
i
U
U
I
I
n
n
t
t
8
8
*
*
s
s
r
r
e
e
c
c
Array of characters / Line from S-Record file
Output
Checksum status
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
*
*
f
f
s
s
i
i
z
z
e
e