APCI-/CPCI-1500 Technical
description Chapter 10
96
b) Example in C
int Initialisation(unsigned char *pb_BoardHandle)
{
unsigned char b_SlotNumberArray [8];
#if defined (_Windows) || defined (_WINDOWS) || defined (_WIN32)
i_APCI1500_InitCompiler (DLL_COMPILER_C);
#endif
if(i_PCI1710_CheckAndGetPCISlotNumber
(b_SlotNumberArray))
{
if(i_APCI1500_SetBoardInformation (b_SlotNumberArray
[0]
,
pb_BoardHandle) == 0)
{
return (0);
/* OK */
}
else
{
return (-1);
/* ERROR */
}
}
else
{
return (-1);
/* ERROR */
}
}