Skip to content
Snippets Groups Projects
Commit bb98270a authored by Florian Pose's avatar Florian Pose
Browse files

Added clear function for SDO kobject.

parent a0491c2a
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,7 @@ extern const ec_code_msg_t al_status_messages[]; ...@@ -53,6 +53,7 @@ extern const ec_code_msg_t al_status_messages[];
/*****************************************************************************/ /*****************************************************************************/
void ec_slave_clear(struct kobject *); void ec_slave_clear(struct kobject *);
void ec_slave_sdos_clear(struct kobject *);
ssize_t ec_show_slave_attribute(struct kobject *, struct attribute *, char *); ssize_t ec_show_slave_attribute(struct kobject *, struct attribute *, char *);
ssize_t ec_store_slave_attribute(struct kobject *, struct attribute *, ssize_t ec_store_slave_attribute(struct kobject *, struct attribute *,
const char *, size_t); const char *, size_t);
...@@ -83,7 +84,9 @@ static struct kobj_type ktype_ec_slave = { ...@@ -83,7 +84,9 @@ static struct kobj_type ktype_ec_slave = {
.default_attrs = def_attrs .default_attrs = def_attrs
}; };
static struct kobj_type ktype_ec_slave_sdos = {}; static struct kobj_type ktype_ec_slave_sdos = {
.release = ec_slave_sdos_clear
};
/** \endcond */ /** \endcond */
...@@ -277,6 +280,15 @@ void ec_slave_clear(struct kobject *kobj /**< kobject of the slave */) ...@@ -277,6 +280,15 @@ void ec_slave_clear(struct kobject *kobj /**< kobject of the slave */)
/*****************************************************************************/ /*****************************************************************************/
/**
*/
void ec_slave_sdos_clear(struct kobject *kobj /**< kobject for SDOs */)
{
}
/*****************************************************************************/
/** /**
Reset slave from operation mode. Reset slave from operation mode.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment