Function Library
•
81
6.3 Initialization
@ Name
_8132_Initial – Software Initialization for PCI-8132
_8132_Close – Software release resources of PCI-8132
_8132_Set_Config – Configure PCI-8132 according to Motion Creator
_8132_Get_IRQ_Channel – Get the PCI-8132 card’s IRQ number
_8132_Get_ Base_Addr – Get the PCI-8132 card’s base address
@ Description
_8132_Initial :
This function is used to initialize PCI-8132 card. Every PCI-8132 card
has to be initialized by this function before calling other functions.
_8132_Close :
This function is used to close PCI-8132 card and release the
PCI-8132 related resources, which should be called at the end of an
application.
_8132_Set_Config :
This function is used to configure PCI-8132 card. All the I/O
configurations and some operating modes appeared on “Axis
Configuration Window” of Motion Creator will be set to PCI-8132.
Click “Save Configuration” button on the “Axis Configuration Window”
if you want to use this function in the application program. Click “Save
Configuration” button will save all the configurations to a file call
“
8132.cfg
”. This file will appear in the “WINDOWS\SYSTEM\”
directory.
_8132_Get_IRQ_Channel :
This function is used to get the PCI-8132 card’s IRQ number. (This
function just suport Window 95 and Window NT platform only).
_8132_Get_Base_Addr :
This function is used to get the PCI-8132 card’s base address. (This
function just suport Window 95 and Window NT platform only).
@ Syntax
C/C++ (DOS)
U16 _8132_Initial (U16 *existCards, PCI_INFO *info)
U16 _8132_Close(U16 cardNo)
U16 _8132_Set_Config(char* filename)
C/C++ (Windows 95/NT)
U16 _8132_Initial(U16 *existCards, PCI_INFO *pciInfo) (Windows 95 Only)
U16 _8132_Initial(U16 cardNo)(Windows NT Only)
U16 _8132_Close(U16 cardNo)(Windows NT Only)
U16 _8132_Set_Config(char *fileName)
void _8132_Get_IRQ_Channel(U16 cardNo, U16 *irq_no )
void _8132_Get_Base_Addr(U16 cardNo, U16 *base_addr )