47 void showDomains(int); |
47 void showDomains(int); |
48 void listSlaves(); |
48 void listSlaves(); |
49 void showMaster(); |
49 void showMaster(); |
50 void listPdos(int, bool = false); |
50 void listPdos(int, bool = false); |
51 void listSdos(int, bool = false); |
51 void listSdos(int, bool = false); |
|
52 void sdoUpload(int, const string &, const vector<string> &); |
52 void requestStates(int, const vector<string> &); |
53 void requestStates(int, const vector<string> &); |
53 void generateXml(int); |
54 void generateXml(int); |
54 |
55 |
55 protected: |
56 protected: |
56 void outputDomainData(unsigned int); |
57 void outputDomainData(unsigned int); |
70 void getSync(ec_ioctl_sync_t *, uint16_t, uint8_t); |
71 void getSync(ec_ioctl_sync_t *, uint16_t, uint8_t); |
71 void getPdo(ec_ioctl_pdo_t *, uint16_t, uint8_t, uint8_t); |
72 void getPdo(ec_ioctl_pdo_t *, uint16_t, uint8_t, uint8_t); |
72 void getPdoEntry(ec_ioctl_pdo_entry_t *, uint16_t, uint8_t, uint8_t, |
73 void getPdoEntry(ec_ioctl_pdo_entry_t *, uint16_t, uint8_t, uint8_t, |
73 uint8_t); |
74 uint8_t); |
74 void getSdo(ec_ioctl_sdo_t *, uint16_t, uint16_t); |
75 void getSdo(ec_ioctl_sdo_t *, uint16_t, uint16_t); |
75 void getSdoEntry(ec_ioctl_sdo_entry_t *, uint16_t, uint16_t, uint8_t); |
76 void getSdoEntry(ec_ioctl_sdo_entry_t *, uint16_t, int, uint8_t); |
76 void requestState(uint16_t, uint8_t); |
77 void requestState(uint16_t, uint8_t); |
77 |
78 |
78 static string slaveState(uint8_t); |
79 static string slaveState(uint8_t); |
|
80 static void printRawData(const uint8_t *, unsigned int); |
79 |
81 |
80 private: |
82 private: |
|
83 enum {DefaultTargetSize = 1024}; |
|
84 |
81 unsigned int index; |
85 unsigned int index; |
82 int fd; |
86 int fd; |
83 }; |
87 }; |
84 |
88 |
85 /****************************************************************************/ |
89 /****************************************************************************/ |