cyg_modbus_get_uid

Name

cyg_modbus_get_uid -- Read “Unit ID” of request

Synopsis

#include <cyg/modbus.h>

Cyg_ErrNo cyg_modbus_get_uid(cyg_handle_t ctx, cyg_uint8 *uid);

Description

This function provides access to the underlying “Unit ID” value for the passed ctx request handle parameter. The passed uid parameter references the location to be written with the relevant identifier value.

Return value

On success ENOERR is returned, and if non-NULL then the referenced uid location is updated with the “Unit ID”. If the underlying transport does not provide access to a suitable identifier value then the ENOENT error code is returned.

2017-02-09
Documentation license for this page: eCosPro License