Back to Sealevel      

int SeaMaxLinRead ( SeaMaxLin *  SeaMaxPointer,
slave_address_t  slaveId,
seaio_type_t  type,
address_loc_t  starting_address,
address_range_t  range,
void *  data 
)

Read from a module. This is a multifunction read that can read from a module previously opened. Any SeaIO devices attached to that module can then be read from in one of the following ways.

Parameters:
[in] *SeaMaxPointer Pointer to an open seaMaxModule.
[in] slaveId Address of the device you wish to read.
[in] type The read type to preform.
[in] starting_address Where to start the read; MODBUS is base 1.
[in] range How many consecutive addresses to read.
[out] *data Pointer to data storage buffer.
Returns:
int Error code.
Return values:
>0 Number of bytes of data in the buffer.
-EBADF No module open or write error.
-EINVAL Null buffer or too much data in buffer.
-ENOMEM Low memory.
-ENODEV Didn't receive response.
-EFAULT MODBUS exception. First byte of buffer contains exception.
 
 
Generated on 3 Jun 2011.