Impulse 463E User Manual

Page 79

Advertising
background image

© Sealevel Systems, Inc.

- 76 -

SeaI/O User Manual

Set Module PIO Configuration

Which

IOCTL_SET_PIO (5)

Description

Sets the SeaIO module IO space configuration.

The last parameter is expected to be a pointer to a ‘seaio_ioctl_s’
structure. Depending on the model, several fields should be
populated before calling Ioctl.

For the 462/463 models, the u.pio.config_state.PIO96.channel1
and u.pio.config_state.PIO96.channel2 fields should each contain
a one-byte representation of the IO direction of 6 ports.

The ‘Set PIO Config’ section under Modbus commands better
describes the required data format.

Models

SeaIO 462 / 463

Expected
Data Type

Pointer to a seaio_ioctl_s structure

Return Codes

-22

EINVAL

A NULL pointer has been supplied where a
pointer to a data buffer was expected.

≥ 0 Success

( Reference the return values for both Read( ) and Write( ) )


Advertising