I-8088W API Reference Manual, Version 1.0.0, Aug. 2010 --- 25
3. API
FOR I
PAC-8000
3.1. i8088W_Init
The function can initialize the I-8088W and then check the hardware ID for each
slot. If
the return value is “0” that means there is an I-8088W module in that slot.
If return “-1” that means there is no I-8088W module.
Syntax
short i8088W_Init(int slot);
Parameter
slot: 0 ~ 7
Return Values
Please refer to Error Code Table.
Examples
[C]
int slotIndex,err;
err=i8088W_Init(slotIndex);
if(err==0)
{
Print(
“There is an I-8088W at slot %d\n”,slotIndex);
}
else
{
Print(
“There is no I-8088W at slot %d\n”,slotIndex);
}