Name

cyg_mbop_rw_multiple_regs — Read and/or write multiple holding registers

Synopsis

#include <cyg/modbus.h>

void cyg_mbop_rw_multiple_regs(cyg_handle_t ctx, void *private, cyg_uint16 raddr, cyg_uint8 rnum, cyg_uint16 waddr, cyg_uint8 wnum, cyg_uint16 *outputs);

Description

Holding registers are read/write 16-bit registers.

[Note]Note

The MODBUS standard dictates that the write is performed BEFORE the read.