19 general-purpose dio – ADLINK PCI-8154 User Manual
Page 212

202
Function Library
6.19 General-Purpose DIO
@ Name
_8154_set_gpio_output
– Set digital output
_8154_get_gpio_output
– Get digital output
_8154_get_gpio_input
– Get digital input
_8154_set_gpio_input_function
– Set the signal types for
any digital inputs
@ Description
_8154_set_gpio_output
:
The PCI-8154 has 4 digital output channels. By this function,
user could control the digital outputs.
_8154_get_gpio_output
:
This function is used to get the digital output status.
_8154_get_gpio_input
:
PCI-8154 has 4 digital input channels. By this function, user
can get the digital input status.
_8154_set_gpio_input_function
:
PCI-8154 has 4 digital input channels. By this function, user
can set one of several input signals to any specific DI channels.
Those signals include LTCn, SDn, PCSn, CLRn, EMG. (The
index word n mean axis index)
@ Syntax
C/C++(Windows 2000/XP)
I16 _8154_set_gpio_output(I16 card_id, I16
DoValue );
I16 _8154_get_gpio_output(I16 card_id, I16 *
DoValue );
I16 _8154_get_gpio_input(I16 card_id, I16 *
DiValue );
I16 _8154_set_gpio_input_function(I16 card_id,
I16 Channel, I16Select, I16 Logic);