Name
cyg_modbus_server_stop — Stop MODBUS server
Synopsis
#include <cyg/modbus.h>
Cyg_ErrNo cyg_modbus_server_stop(
cyg_handle_t server)
;
Description
Stop the referenced server
from accepting any
new requests. The call may block until any “pending”
transactions are completed by the backend-handlers/user-application,
or such pending transactions have been timed-out by the main MODBUS
server control loop. This means the function may block for a maximum
of the active transaction timeout (as specified by the backend
supplied timeout
field).
Return value
The function will return ENOERR
on success. If the
stop event cannot be delivered to the MODBUS control thread due to the
communication mailbox being full, then EAGAIN
is
returned. If the server
parameter is invalid
then EINVAL
will be returned.
2024-03-18 | eCosPro Non-Commercial Public License |