DIO_PortConfig | ![]() ![]() ![]() ![]() |
DIO_PortConfig
@ Description
Inform PCIS-DASK library of the port selected and the direction (Input or output) setting of the selected port.
@ Cards Support
7248, 7249, 7296
@ Syntax
I16 DIO_PortConfig (U16 CardNumber, U16 Port, U16 Direction)
@ Parameter
CardNumber : The
card id of the card that want to perform this operation.
Port : The port selected.
The valid value:
PCI-7248/cPCI-7248/PCI-7249:
Channel_P1A, Channel_P1B,
Channel_P1C, Channel_P1CL
Channel_P1CH, Channel_P2A,
Channel_P2B, Channel_P2C,
Channel_P2CL, Channel_P2CH
PCI-7296/cPCI-7296:
Channel_P1A, Channel_P1B,
Channel_P1C, Channel_P1CL,
Channel_P1CH, Channel_P2A,
Channel_P2B, Channel_P2C,
Channel_P2CL, Channel_P2CH,
Channel_P3A, Channel_P3B,
Channel_P3C, Channel_P3CL,
Channel_P3CH, Channel_P4A,
Channel_P4B, Channel_P4C,
Channel_P4CL, Channel_P4CH
Direction : The port
direction of PIO port. The valid value:
INPUT_PORT
OUTPUT_PORT
@ Return Code
NoError, ErrorInvalidCardNumber,
ErrorCardNotRegistered, ErrorFuncNotSupport, ErrorInvalidIoChannel