xPCI-3009 API
PCI-3009 digital I/O initialisation functions

Functions

_INT_ i_PCI3009_InitDigitalIO (DWORD_ dw_BoardHandle, BYTE_ b_ChannelAMode, BYTE_ b_ChannelBMode)
 

Detailed Description

Function Documentation

_INT_ i_PCI3009_InitDigitalIO ( DWORD_  dw_BoardHandle,
BYTE_  b_ChannelAMode,
BYTE_  b_ChannelBMode 
)

Configure the digital I/O operating. You must calling this function be for you call any other function witch
access of digital I/O.

Parameters
[in]dw_BoardHandle: Handle of board PCI-3009
[in]b_ChannelAMode: Channel A mode selection 0 : Channel used for digital input 0 : Channel used for digital output
[in]b_ChannelBMode: Channel B mode selection 0 : Channel used for digital input 0 : Channel used for digital output
Returns
0: No error
-1: The handle parameter of the board is wrong
-2: The module is not a digital I/O module
-3: Bi-directional channel A configuration error
-4: Bi-directional channel B configuration error