beautypg.com

Daqioget8255conf – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 254

background image


daqIOGet8255Conf

Also See: daqIORead, daqIOReadBit,

daqIOWrite, daqIOWriteBit, daqSetOption

Format

daqIOGet8255Conf(handle, portA, portB, portCHigh, portCLow, config)

Purpose

daqIOGet8255Conf

sets and retrieves the configuration for the specified 8255 device with the specified port

configurations.

Parameter Summary

Parameter Type

Description

handle DaqHandleT

Handle to the device

portA BOOL 8255 port A value
portB BOOL 8255 port B value
portCHigh BOOL

8255 port C high nibble value

portCLow BOOL

8255 port C low nibble value

config PDWORD

Pointer to a value representing the 8255’s current configuration

Parameter Values

handle:

obtained from the daqOpen function

portA:

valid values are either true (

≠ 0) or false ( = 0)

portB:

valid values are either true (

≠ 0) or false ( = 0)

partCHigh:

valid values are either true (

≠ 0) or false ( = 0)

portCLow:

valid values are either true (

≠ 0) or false ( = 0)

config:

a pointer to the configuration value ranging from 0 to 65,535

Returns

DaqError

See Daq Error Table

For more details on error messages refer to the Daq Error Table.

Function Usage

The configuration is returned in the config parameter and will indicate the current configuration of the 8255. This
configuration must then be written to the control register of the desired 8255 with the daqIOWrite function.
When set to true, the portA, portB, portCHigh and portCLow flags will configure the respective port as an
input port. If the flag is set to false, the port will be configured as an output.

daqSetOption

will work for single byte use.

4.5-24 Daq API Command Reference

908794

Programmer’s

Manual