beautypg.com

Impulse 463E User Manual

Page 78

background image

© Sealevel Systems, Inc.

- 75 -

SeaI/O User Manual

Retrieve Module PIO Configuration

Which

IOCTL_GET_PIO (4)

Description

Requests from the SeaIO module the IO space configuration, as
well as the module model.

The last parameter is expected to be a pointer to a ‘seaio_ioctl_s’
structure. Firstly, the u.pio.model will be populated on return with
an integer representation of the SeaIO module model number.

Secondly, depending on the model, several fields may be
populated. For the 462/463 models, the
u.pio.config_state.PIO96.channel1 and
u.pio.config_state.PIO96.channel2 fields will each contain a one-
byte representation of the IO direction of 6 ports.

The ‘Set PIO Config’ section under Modbus commands better
describes the returned 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( ) )