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

Renamed sdo_download command to download. Same with upload.

parent a7f22408
No related branches found
No related tags found
No related merge requests found
...@@ -45,8 +45,8 @@ ethercat_SOURCES = \ ...@@ -45,8 +45,8 @@ ethercat_SOURCES = \
cmd_master.cpp \ cmd_master.cpp \
cmd_pdos.cpp \ cmd_pdos.cpp \
cmd_sdos.cpp \ cmd_sdos.cpp \
cmd_sdo_download.cpp \ cmd_download.cpp \
cmd_sdo_upload.cpp \ cmd_upload.cpp \
cmd_slaves.cpp \ cmd_slaves.cpp \
cmd_sii_read.cpp \ cmd_sii_read.cpp \
cmd_sii_write.cpp \ cmd_sii_write.cpp \
......
...@@ -14,7 +14,7 @@ using namespace std; ...@@ -14,7 +14,7 @@ using namespace std;
/****************************************************************************/ /****************************************************************************/
// FIXME // FIXME
const char *help_sdo_download = const char *help_download =
"[OPTIONS]\n" "[OPTIONS]\n"
"\n" "\n"
"\n" "\n"
...@@ -22,7 +22,7 @@ const char *help_sdo_download = ...@@ -22,7 +22,7 @@ const char *help_sdo_download =
/****************************************************************************/ /****************************************************************************/
void command_sdo_download(void) void command_download(void)
{ {
stringstream strIndex, strSubIndex, strValue, err; stringstream strIndex, strSubIndex, strValue, err;
ec_ioctl_slave_sdo_download_t data; ec_ioctl_slave_sdo_download_t data;
......
...@@ -14,7 +14,7 @@ using namespace std; ...@@ -14,7 +14,7 @@ using namespace std;
/****************************************************************************/ /****************************************************************************/
// FIXME // FIXME
const char *help_sdo_upload = const char *help_upload =
"[OPTIONS]\n" "[OPTIONS]\n"
"\n" "\n"
"\n" "\n"
...@@ -22,7 +22,7 @@ const char *help_sdo_upload = ...@@ -22,7 +22,7 @@ const char *help_sdo_upload =
/****************************************************************************/ /****************************************************************************/
void command_sdo_upload(void) void command_upload(void)
{ {
stringstream strIndex, strSubIndex; stringstream strIndex, strSubIndex;
int sval; int sval;
......
...@@ -61,8 +61,8 @@ DEFINE_EXTERN_COMMAND(domains); ...@@ -61,8 +61,8 @@ DEFINE_EXTERN_COMMAND(domains);
DEFINE_EXTERN_COMMAND(master); DEFINE_EXTERN_COMMAND(master);
DEFINE_EXTERN_COMMAND(pdos); DEFINE_EXTERN_COMMAND(pdos);
DEFINE_EXTERN_COMMAND(sdos); DEFINE_EXTERN_COMMAND(sdos);
DEFINE_EXTERN_COMMAND(sdo_download); DEFINE_EXTERN_COMMAND(download);
DEFINE_EXTERN_COMMAND(sdo_upload); DEFINE_EXTERN_COMMAND(upload);
DEFINE_EXTERN_COMMAND(slaves); DEFINE_EXTERN_COMMAND(slaves);
DEFINE_EXTERN_COMMAND(sii_read); DEFINE_EXTERN_COMMAND(sii_read);
DEFINE_EXTERN_COMMAND(sii_write); DEFINE_EXTERN_COMMAND(sii_write);
...@@ -78,8 +78,8 @@ static const Command commands[] = { ...@@ -78,8 +78,8 @@ static const Command commands[] = {
INIT_COMMAND(master, "Show master information."), INIT_COMMAND(master, "Show master information."),
INIT_COMMAND(pdos, "List Pdo assignment/mapping."), INIT_COMMAND(pdos, "List Pdo assignment/mapping."),
INIT_COMMAND(sdos, "List Sdo dictionaries."), INIT_COMMAND(sdos, "List Sdo dictionaries."),
INIT_COMMAND(sdo_download, "Write an Sdo entry."), INIT_COMMAND(download, "Write an Sdo entry."),
INIT_COMMAND(sdo_upload, "Read an Sdo entry."), INIT_COMMAND(upload, "Read an Sdo entry."),
INIT_COMMAND(slaves, "Show slaves."), INIT_COMMAND(slaves, "Show slaves."),
INIT_COMMAND(sii_read, "Output a slave's SII contents."), INIT_COMMAND(sii_read, "Output a slave's SII contents."),
INIT_COMMAND(sii_write, "Write slave's SII contents."), INIT_COMMAND(sii_write, "Write slave's SII contents."),
...@@ -113,7 +113,7 @@ void printUsage() ...@@ -113,7 +113,7 @@ void printUsage()
} }
cerr cerr
<< "Commands can be generously abbreviated." << endl << "Commands can be abbreviated." << endl
<< "Global options:" << endl << "Global options:" << endl
<< " --master -m <master> Index of the master to use. Default: 0" << " --master -m <master> Index of the master to use. Default: 0"
<< endl << endl
...@@ -121,8 +121,6 @@ void printUsage() ...@@ -121,8 +121,6 @@ void printUsage()
<< endl << endl
<< " or 'all' for all slaves (default)." << " or 'all' for all slaves (default)."
<< endl << endl
<< " or 'all' for all domains (default)."
<< endl
<< " --type -t <type> Forced Sdo data type." << endl << " --type -t <type> Forced Sdo data type." << endl
<< " --force -f Force action." << endl << " --force -f Force action." << endl
<< " --quiet -q Output less information." << endl << " --quiet -q Output less information." << endl
......
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