◆ SeaMaxLinIoctl()

int SeaMaxLinIoctl ( SeaMaxLin SeaMaxPointer,
slave_address_t  slaveId,
IOCTL_t  which,
void *  data 
)

Multi-function tool to configure and access SeaIO specific features. Ioctl can be used to get and set device parameters and states.

Parameters
[in]*SeaMaxPointerPointer to an open seaMaxModule.
[in]slaveIdAddress of the device you wish to access.
[in]whichWhich type of Ioctl you wish to call.
*dataBuffer to store or retrieve data from.
Returns
int Error code.
Return values
>0Number of bytes of data in the buffer.
-EBADFNo module open or write error.
-EINVALNull buffer or too much data in buffer.
-ENOMEMLow memory.
-ENODEVDidn't receive response.
-EFAULTMODBUS exception. First byte of buffer contains exception.

References seaio_ioctl_s::address, seaio_ioctl_get_params_s::baud_rate, seaio_ioctl_get_params_s::bridge_type, PIO96_config_s::channel1, PIO96_config_s::channel2, adda_config::channel_mode, adda_config::channels, seaio_ioctl_s::comms, seaio_ioctl_s::config, adda_config::device, IOCTL_GET_ADDA_EXT_CONFIG, seaio_ioctl_get_params_s::model, SeaMAX_PIO_ioctl_s::model, seaio_ioctl_ext_config::model, seaio_ioctl_address_s::new_address, seaio_ioctl_comms_s::new_baud_rate, seaio_ioctl_comms_s::new_parity, NO_CONNECT, seaio_ioctl_s::params, seaio_ioctl_get_params_s::parity, seaio_ioctl_s::pio, SeaMAX_PIO_ioctl_s::PIO96, adda_config::reference_offset, and seaio_ioctl_s::u.

Referenced by CSeaMaxLin::Ioctl().

 
 
Generated on Tue Sep 19 2017.