master/canopen.c
changeset 740 68d83b45dfa2
parent 739 4a02162a6301
child 758 8fa6f825eb7d
--- a/master/canopen.c	Wed Sep 19 17:25:48 2007 +0000
+++ b/master/canopen.c	Wed Sep 19 17:32:39 2007 +0000
@@ -171,6 +171,23 @@
 
 /*****************************************************************************/
 
+ec_sdo_entry_t *ec_sdo_get_entry(
+        ec_sdo_t *sdo,
+        uint8_t subindex
+        )
+{
+    ec_sdo_entry_t *entry;
+
+    list_for_each_entry(entry, &sdo->entries, list) {
+        if (entry->subindex != subindex) continue;
+        return entry;
+    }
+
+    return NULL;
+}
+
+/*****************************************************************************/
+
 ssize_t ec_sdo_info(ec_sdo_t *sdo, /**< SDO */
                     char *buffer /**< target buffer */
                     )