xPCI-1710 API
xPCI-1710 TTL IO management functions

Functions

_INT_ i_PCI1710_InitTTLIODirection (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_PortAMode, BYTE_ b_PortBMode, BYTE_ b_PortCMode, BYTE_ b_PortDMode)
 
_INT_ i_PCI1710_ReadTTLIOChannelValue (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_PortNbr, BYTE_ b_ChannelNbr, PBYTE_ pb_Value)
 
_INT_ i_PCI1710_ReadTTLIOPortValue (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_PortNbr, PBYTE_ pb_Value)
 
_INT_ i_PCI1710_ReadTTLIOAllPortValue (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, PDWORD_ pdw_Value)
 
_INT_ i_PCI1710_SetTTLIOChlOn (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_ChannelNbr)
 
_INT_ i_PCI1710_SetTTLIOChlOff (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_ChannelNbr)
 
_INT_ i_PCI1710_SetTTLIOChannelOn (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_PortNbr, BYTE_ b_ChannelNbr)
 
_INT_ i_PCI1710_SetTTLIOChannelOff (HANDLE h_DeviceHandle, BYTE_ b_ModuleNbr, BYTE_ b_PortNbr, BYTE_ b_ChannelNbr)
 

Detailed Description

Function Documentation

_INT_ i_PCI1710_InitTTLIODirection ( HANDLE  h_DeviceHandle,
BYTE_  b_ModuleNbr,
BYTE_  b_PortAMode,
BYTE_  b_PortBMode,
BYTE_  b_PortCMode,
BYTE_  b_PortDMode 
)

Permits the configure on a given module the TTL I/O in input or output mode

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ModuleNbrNumber of the module in which to initailize TTL I/O (0 to 3)
[in]b_PortAModeMode of the port A (0 -> input , 1 -> output )
[in]b_PortBModeMode of the port B (0 -> input , 1 -> output )
[in]b_PortCModeMode of the port C (0 -> input , 1 -> output )
[in]b_PortDModeMode of the port D (0 -> input , 1 -> output )
Returns
> 0 : Warning
0 : No Error
-1 : The device handle parameter is wrong
-2 : Wrong module number
-3 : Wrong port A mode
-4 : Wrong port B mode
-5 : Wrong port C mode
-6 : Wrong port D mode
-7 : Error during the affectation of the modes
_INT_ i_PCI1710_ReadTTLIOChannelValue ( HANDLE  h_DeviceHandle,
BYTE_  b_ModuleNbr,
BYTE_  b_PortNbr,
BYTE_  b_ChannelNbr,
PBYTE_  pb_Value 
)

Read the status of a given TTL digital input on a given port and module

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ModuleNbrNumber of the module in which the input is located (0 to 3)
[in]b_PortNbrNumber of the port in which the input is located
(Port A (PA) -> 0, PB -> 1, PC -> 2, PD -> 3)
[in]b_ChannelNbrChannel to be read (0 to 7)
[out]pb_ValueStatus of the channel
Returns
> 0 : Warning
0 : No Error
-1 : The device handle parameter is wrong
-2 : Wrong module number
-3 : Wrong TTL digital input port number
-4 : Wrong channel number
-5 : Error while reading
_INT_ i_PCI1710_ReadTTLIOPortValue ( HANDLE  h_DeviceHandle,
BYTE_  b_ModuleNbr,
BYTE_  b_PortNbr,
PBYTE_  pb_Value 
)

Read the satus of the TTL digital inputs of a given port on a given module

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ModuleNbrNumber of the module in which the input is located (0 to 3)
[in]b_PortNbrNumber of the port in which the input is located
(Port A (PA) -> 0, PB -> 1, PC -> 2, PD -> 3)
[out]pb_ValueStatus of the port
Returns
> 0 : Warning
0 : No Error
-1 : The device handle parameter is wrong
-2 : Wrong module number
-3 : Wrong TTL digital input port number
-4 : Error while reading
_INT_ i_PCI1710_ReadTTLIOAllPortValue ( HANDLE  h_DeviceHandle,
BYTE_  b_ModuleNbr,
PDWORD_  pdw_Value 
)

Read the satus of the TTL digital inputs of a given port on a given module

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ModuleNbrNumber of the module in which the input is located (0 to 3)
[out]pdw_ValueStatus of all the port of the module
Returns
> 0 : Warning
0 : No Error
-1 : The device handle parameter is wrong
-2 : Wrong module number
-3 : Error while reading
_INT_ i_PCI1710_SetTTLIOChlOn ( HANDLE  h_DeviceHandle,
BYTE_  b_ModuleNbr,
BYTE_  b_ChannelNbr 
)

Put one of the TTL output to one

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ModuleNbrNumber of the module in which the input is located (0 to 3)
[in]b_ChannelNbrOutput channel to put high
0 : PD0
1 : PD1
2 to 9 : PA0 to PA7
10 to 17 : PB0 to PB7
18 to 25 : PC0 to PC7
Returns
> 0 : Warning
0 : No Error
-1 : The device handle parameter is wrong
-2 : Wrong module number
-3 : The selected channel is wrong
-4 : Error while setting the output
_INT_ i_PCI1710_SetTTLIOChlOff ( HANDLE  h_DeviceHandle,
BYTE_  b_ModuleNbr,
BYTE_  b_ChannelNbr 
)

Put one of the TTL output to zero

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ModuleNbrNumber of the module in which the input is located (0 to 3)
[in]b_ChannelNbrOutput channel to put low
0 : PD0
1 : PD1
2 to 9 : PA0 to PA7
10 to 17 : PB0 to PB7
18 to 25 : PC0 to PC7
Returns
> 0 : Warning
0 : No Error
-1 : The device handle parameter is wrong
-2 : Wrong module number
-3 : The selected channel is wrong
-4 : Error while setting the output
_INT_ i_PCI1710_SetTTLIOChannelOn ( HANDLE  h_DeviceHandle,
BYTE_  b_ModuleNbr,
BYTE_  b_PortNbr,
BYTE_  b_ChannelNbr 
)

Put one of the TTL output to one

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ModuleNbrNumber of the module in which the input is located (0 to 3)
[in]b_PortNbrNumber of the port of the channel
(0 -> I, 1 -> J, 2 -> A, 3 -> B, 4 -> C)
[in]b_ChannelNbrOutput channel to put high (0 to 7).
For port I and J only output 0 is available
Returns
> 0 : Warning
0 : No Error
-1 : The device handle parameter is wrong
-2 : Wrong module number
-3 : Wrong selected output port
-4 : The selected channel is wrong
-5 : Error while setting the output
_INT_ i_PCI1710_SetTTLIOChannelOff ( HANDLE  h_DeviceHandle,
BYTE_  b_ModuleNbr,
BYTE_  b_PortNbr,
BYTE_  b_ChannelNbr 
)

Put one of the TTL output to zero

Parameters
[in]h_DeviceHandleHandle of the board
[in]b_ModuleNbrNumber of the module in which the input is located (0 to 3)
[in]b_PortNbrNumber of the port of the channel (0 to 3)
(0 -> I, 1 -> J, 2 -> A, 3 -> B, 4 -> C)
[in]b_ChannelNbrOutput channel to put low (0 to 7).
For port I and J only output 0 is available
Returns
> 0 : Warning
0 : No Error
-1 : The device handle parameter is wrong
-2 : Wrong module number
-3 : Wrong selected output port
-4 : The selected channel is wrong
-5 : Error while setting the output