equal
deleted
inserted
replaced
37 { |
37 { |
38 public: |
38 public: |
39 Master(); |
39 Master(); |
40 ~Master(); |
40 ~Master(); |
41 |
41 |
42 void open(unsigned int); |
42 void setIndex(unsigned int); |
43 void close(); |
|
44 |
43 |
45 void outputData(int); |
44 void outputData(int); |
46 void setDebug(const vector<string> &); |
45 void setDebug(const vector<string> &); |
47 void showDomains(int); |
46 void showDomains(int); |
48 void listSlaves(); |
47 void listSlaves(); |
52 void sdoUpload(int, const string &, const vector<string> &); |
51 void sdoUpload(int, const string &, const vector<string> &); |
53 void requestStates(int, const vector<string> &); |
52 void requestStates(int, const vector<string> &); |
54 void generateXml(int); |
53 void generateXml(int); |
55 |
54 |
56 protected: |
55 protected: |
|
56 enum Permissions {Read, ReadWrite}; |
|
57 void open(Permissions); |
|
58 void close(); |
|
59 |
57 void outputDomainData(unsigned int); |
60 void outputDomainData(unsigned int); |
58 void showDomain(unsigned int); |
61 void showDomain(unsigned int); |
59 void listSlavePdos(uint16_t, bool = false, bool = false); |
62 void listSlavePdos(uint16_t, bool = false, bool = false); |
60 void listSlaveSdos(uint16_t, bool = false, bool = false); |
63 void listSlaveSdos(uint16_t, bool = false, bool = false); |
61 void generateSlaveXml(uint16_t); |
64 void generateSlaveXml(uint16_t); |
82 private: |
85 private: |
83 enum {DefaultTargetSize = 1024}; |
86 enum {DefaultTargetSize = 1024}; |
84 |
87 |
85 unsigned int index; |
88 unsigned int index; |
86 int fd; |
89 int fd; |
|
90 Permissions currentPermissions; |
87 }; |
91 }; |
88 |
92 |
89 /****************************************************************************/ |
93 /****************************************************************************/ |
90 |
94 |
91 #endif |
95 #endif |