6 MIL-STD-1553 Reference Manual
1.3.3.1 Conventions for parameters ‘ul_ModuleHandle’ and ‘biu’
Most API S/W Library function calls require the parameters "ul_ModuleHandle" and
"biu". In order to simplify the manual, these two function parameters are not detailed in
the documentation for each function call, therefore, they are both defined here as
follows:
"ul_ModuleHandle " - usually the first function parameter. This parameter determines
the AIM destination module handle. The handle is returned by ApiOpen() or
ApiOpenEx().
"biu" - usually the second function parameter. This parameter determines the Bus
Interface Unit (biu) of the selected AIM module.
Bus Interface Unit 1 on the AIM board
Bus Interface Unit 2 on the AIM board
Bus Interface Unit 3 on the AIM board
Bus Interface Unit 8 on the AIM board
Note: The ‘biu’ parameter is only relevant if the command ApiOpen() was used to get
the module handle. When using ApiOpenEx() the ‘biu/stream’ information is
already coded within the module handle and therefore this parameter is ignored
in this case.
Note: For 3910 board application interfaces and opened with ApiOpen():
For all functions that require 'biu' as input, only API_BIU_1 is valid, with the
exception of ApiInstIntHandler/ApiDelINtHandler functions.
(For 3910 boards, BIU1 is always the LS BIU and BIU2 is the HS BIU. All 3910Hs
functions automatically program API_BIU_2 for HS and API_BIU_1 [if required]
for LS functionality.)
1.3.4 Function Calling Convention
For Microsoft Windows the library is created using the “_stdcall” calling convention. To avoid
side effects in a Microsoft Windows operating system be sure to use also “_stdcall” as the
calling convention in your application.