18 general-purpose dio – ADLINK PCI-8158 User Manual

Page 204

Advertising
background image

194

Function Library

6.18 General-purpose DIO

@ Name

_8158_set_gpio_output – Set digital output

_8158_get_gpio_output – Get digital output

_8158_get_gpio_input – Get digital input

_8158_set_gpio_input_function – Set the signal types for

any digital inputs

@ Description

_8158_set_gpio_output:

The PCI-8158 has 8 digital output channels. By this function,
user could control the digital outputs.

_8158_get_gpio_output:

This function is used to get the digital output status.

_8158_get_gpio_input:

PCI-8158 has 8 digital input channels. By this function, user
can get the digital input status.

_8158_set_gpio_input_function:

PCI-8158 has 8 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 _8158_set_gpio_output(I16 card_id, I16

DoValue);

I16 _8158_get_gpio_output(I16 card_id, I16 *

DoValue);

I16 _8158_get_gpio_input(I16 card_id, I16 *

DiValue);

I16 _8158_set_gpio_input_function(I16 card_id,

I16 Channel, I16Select, I16 Logic);

Advertising