MIL-STD-1553 Reference Manual
Chapter 3 – System Functions
3.1.7 ApiCmdIni
Prototype:
AiInt16 ApiCmdIni( AiUInt32 ul_ModuleHandle, AiUInt8 mode, TY_API_INI_INFO *pini );
Driver Command:
API_INI (0x30)
Purpose:
This function is used to initialize the AIM board after system or power-up reset and to
return AIM board specific information.
Input
Initialization mode
Initialize global variables for BIU1 and BIU2
Read initialize parameters only
Output
T
T
Y
Y
_
_
A
A
P
P
I
I
_
_
I
I
N
N
I
I
_
_
I
I
N
N
F
F
O
O
*
*
p
p
i
i
n
n
i
i
Board initialization parameter
typedef struct ty_api_ini_info
{
AiUInt8 bt[4];
AiUInt8 chns;
AiUInt8 prot;
AiUInt8 emod;
AiUInt8 irg;
AiUInt8 res1;
AiUInt8 padd1;
AiUInt16 padd2;
AiUInt16 pbi_id_biu1;
AiUInt16 asp_mon_id;
AiUInt16 asp_bite_id;
AiUInt16 pbi_id_biu2;
AiUInt32 board_config;
AiUInt32 glb_mem_size;
AiUInt32 glb_mem_addr;
AiUInt32 loc_dram_size;
AiUInt32 loc_dram_addr;
AiUInt32 shared_dram_size;
AiUInt32 shared_dram_addr;
AiUInt32 flash_ram_size;
AiUInt32 flash_ram_addr;
AiUInt32 pci[16];
AiUInt32 board_type;
AiUInt32 board_sub_type;
AiUInt32 hardware_variant;
} TY_API_INI_INFO;