beautypg.com

Impulse 463E User Manual

Page 71

background image

© Sealevel Systems, Inc.

- 68 -

SeaI/O User Manual

Ioctl

CSeaMaxW32::Ioctl( slave_address_t slaveID, IOCTL_t which, unsigned char *

data)

Description

Ioctl has been provided as a muli-function tool to configure and
access non-standard Modbus features of the SeaIO module.

The actual Modbus transaction (and corresponding action) is
specified by the ‘which’ argument. Ioctl can be used to set module
parameters, configure state, and access data. Consult the
provided example source code for model specific information.

The final parameter, ‘data’, is a pointer to a data type which is
appropriate for the particular IOCTL call. Consult the provided
code examples for model specific information.

Parameters

slave_address_t slave_id

IOCTL_t which

void* data

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( ) )