Back to Sealevel      

int SeaMaxLinWrite ( SeaMaxLin *  SeaMaxPointer,
slave_address_t  slaveId,
seaio_type_t  type,
address_loc_t  starting_address,
address_range_t  range,
unsigned char *  data 
)

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

Parameters:
[in] *SeaMaxPointer Pointer to an open seaMaxModule.
[in] slaveId Address of the device you wish to write.
[in] type The write type to preform.
[in] starting_address Where to start the write; MODBUS is base 1.
[in] range How many consecutive addresses to write.
[in] *data Pointer to data 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.