master/sdo_request.c
changeset 1332 d62633fea8ed
parent 1327 4d179b06dd3c
child 1363 11c0b2caa253
equal deleted inserted replaced
1331:7cd33a77f926 1332:d62633fea8ed
    79 /** Copy another SDO request.
    79 /** Copy another SDO request.
    80  *
    80  *
    81  * \attention Only the index subindex and data are copied.
    81  * \attention Only the index subindex and data are copied.
    82  */
    82  */
    83 int ec_sdo_request_copy(
    83 int ec_sdo_request_copy(
    84         ec_sdo_request_t *req,
    84         ec_sdo_request_t *req, /**< SDO request. */
    85         const ec_sdo_request_t *other
    85         const ec_sdo_request_t *other /**< Other SDO request to copy from. */
    86         )
    86         )
    87 {
    87 {
    88     req->index = other->index;
    88     req->index = other->index;
    89     req->subindex = other->subindex;
    89     req->subindex = other->subindex;
    90     return ec_sdo_request_copy_data(req, other->data, other->data_size);
    90     return ec_sdo_request_copy_data(req, other->data, other->data_size);