MIL-STD-1553 Reference Manual
Chapter 2 - Library Administration and Initialization Functions
2.1.18 ApiOpenEx
Prototype:
AiInt16 ApiOpenEx( TY_API_OPEN *px_ApiOpen, AiUInt32 *pul_ModuleHandle );
Driver Command:
none
Purpose:
This function initializes the Application Interface for the specified module and must be
called first, before any other API S/W Library function is used for the specified module.
This function establishes connectivity between the Application Interface and the AIM
board by calling operating system routines to open the AIM board and initialize a
shared memory area for host-to-target communication.
Note: When using this function to open the board communication, the ‘biu’ parameter
described in all other functions is not needed and its value will be ignored!
By using this function this information is already coded within the returned
‘pul_ModuleHandle’.
Note: To open the board communication you need to call either ApiOpen() or
ApiOpenEx(), but not both!
Input
T
T
Y
Y
_
_
A
A
P
P
I
I
_
_
O
O
P
P
E
E
N
N
*
*
p
p
x
x
_
_
A
A
p
p
i
i
O
O
p
p
e
e
n
n
Synchronization Counter get structure
typedef struct ty_api_open
{
AiUInt32 ul_Module;
AiUInt32 ul_Stream;
AiChar ac_SrvName[28];
} TY_API_OPEN
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
_
_
M
M
o
o
d
d
u
u
l
l
e
e
Board Module Number to access