Name

cyg_modbus_server_start — Start MODBUS server

Synopsis

#include <cyg/modbus.h>

cyg_handle_t cyg_modbus_server_start(cyg_modbus_backend *descriptor, void *backend_private);

Description

Initialise the server from the CDL configured state, and start the transport layers listening for client requests. The supplied descriptor specifies the backend driver to be used to handle requests. The backend_private parameter can be used to reference any context required by the specific backend descriptor.

The call will block until all the configured transports are ready to accept connections from remote clients.

Return value

A handle onto the server instance, or 0 on failure.