equal
deleted
inserted
replaced
54 */ |
54 */ |
55 void ec_sdo_request_init( |
55 void ec_sdo_request_init( |
56 ec_sdo_request_t *req /**< SDO request. */ |
56 ec_sdo_request_t *req /**< SDO request. */ |
57 ) |
57 ) |
58 { |
58 { |
|
59 req->complete_access = 0; |
59 req->data = NULL; |
60 req->data = NULL; |
60 req->mem_size = 0; |
61 req->mem_size = 0; |
61 req->data_size = 0; |
62 req->data_size = 0; |
62 req->dir = EC_DIR_INVALID; |
63 req->dir = EC_DIR_INVALID; |
63 req->issue_timeout = 0; // no timeout |
64 req->issue_timeout = 0; // no timeout |
86 int ec_sdo_request_copy( |
87 int ec_sdo_request_copy( |
87 ec_sdo_request_t *req, /**< SDO request. */ |
88 ec_sdo_request_t *req, /**< SDO request. */ |
88 const ec_sdo_request_t *other /**< Other SDO request to copy from. */ |
89 const ec_sdo_request_t *other /**< Other SDO request to copy from. */ |
89 ) |
90 ) |
90 { |
91 { |
|
92 req->complete_access = other->complete_access; |
91 req->index = other->index; |
93 req->index = other->index; |
92 req->subindex = other->subindex; |
94 req->subindex = other->subindex; |
93 return ec_sdo_request_copy_data(req, other->data, other->data_size); |
95 return ec_sdo_request_copy_data(req, other->data, other->data_size); |
94 } |
96 } |
95 |
97 |