tool/cmd_pdos.cpp
changeset 1137 a73c0f54be42
parent 1130 bb1c11adb2db
equal deleted inserted replaced
1136:a0982873d655 1137:a73c0f54be42
    10 
    10 
    11 #include "globals.h"
    11 #include "globals.h"
    12 
    12 
    13 /****************************************************************************/
    13 /****************************************************************************/
    14 
    14 
    15 // FIXME
       
    16 const char *help_pdos =
    15 const char *help_pdos =
    17     "[OPTIONS]\n"
    16     "[OPTIONS]\n"
    18     "\n"
    17     "\n"
       
    18     "Displays sync managers, assigned Pdos and mapped Pdo entries.\n"
    19     "\n"
    19     "\n"
    20     "Command-specific options:\n";
    20     "The information is displayed in three layers, which are indented\n"
       
    21     "accordingly:\n"
       
    22     "\n"
       
    23     "1) Sync managers - Contains the sync manager information from the\n"
       
    24     "   SII: Index, physical start address, default size (raw value from\n"
       
    25     "   the SII), control register and enable word. Example:\n"
       
    26     "\n"
       
    27     "   SM3: PhysAddr 0x1100, DefaultSize 0, ControlRegister 0x20, Enable 1\n"
       
    28     "\n"
       
    29     "2) Assigned Pdos - Pdo direction, hexadecimal index and -if available-\n"
       
    30     "   the Pdo name. Example:\n"
       
    31     "\n"
       
    32     "   TxPdo 0x1a00 \"Channel1\"\n"
       
    33     "\n"
       
    34     "3) Mapped Pdo entries - Pdo entry index and subindex (both\n"
       
    35     "   hexadecimal), the length in bit and -if available- the\n"
       
    36     "   description. Example:\n"
       
    37     "\n"
       
    38     "   Pdo entry 0x3101:01, 8 bit, \"Status\"\n"
       
    39     "\n"
       
    40     "Note, that the displayed Pdo assignment and Pdo mapping information\n"
       
    41     "can either originate from the SII or from the CoE communication area.\n"
       
    42     "\n"
       
    43     "Command-specific options:\n"
       
    44     "  --slave -s <index>  Positive numerical ring position, or 'all' for\n"
       
    45     "                      all slaves (default).\n"
       
    46     "\n"
       
    47     "Numerical values can be specified either with decimal (no prefix),\n"
       
    48     "octal (prefix '0') or hexadecimal (prefix '0x') base.\n";
    21 
    49 
    22 /****************************************************************************/
    50 /****************************************************************************/
    23 	
    51 	
    24 void listSlavePdos(uint16_t, bool);
    52 void listSlavePdos(uint16_t, bool);
    25 
    53