--- a/master/sdo_request.c Thu Sep 06 14:21:02 2012 +0200
+++ b/master/sdo_request.c Mon Nov 03 15:20:05 2014 +0100
@@ -85,6 +85,8 @@
/** Copy another SDO request.
*
* \attention Only the index subindex and data are copied.
+ *
+ * \return Zero on success, otherwise a negative error code.
*/
int ec_sdo_request_copy(
ec_sdo_request_t *req, /**< SDO request. */
@@ -116,20 +118,6 @@
/*****************************************************************************/
-/** Set the SDO address.
- */
-void ec_sdo_request_address(
- ec_sdo_request_t *req, /**< SDO request. */
- uint16_t index, /**< SDO index. */
- uint8_t subindex /**< SDO subindex. */
- )
-{
- req->index = index;
- req->subindex = subindex;
-}
-
-/*****************************************************************************/
-
/** Pre-allocates the data memory.
*
* If the \a mem_size is already bigger than \a size, nothing is done.
@@ -196,6 +184,15 @@
* Application interface.
****************************************************************************/
+void ecrt_sdo_request_index(ec_sdo_request_t *req, uint16_t index,
+ uint8_t subindex)
+{
+ req->index = index;
+ req->subindex = subindex;
+}
+
+/*****************************************************************************/
+
void ecrt_sdo_request_timeout(ec_sdo_request_t *req, uint32_t timeout)
{
req->issue_timeout = timeout;
@@ -248,6 +245,7 @@
/** \cond */
+EXPORT_SYMBOL(ecrt_sdo_request_index);
EXPORT_SYMBOL(ecrt_sdo_request_timeout);
EXPORT_SYMBOL(ecrt_sdo_request_data);
EXPORT_SYMBOL(ecrt_sdo_request_data_size);