mergCanBus

- Main Page
- Classes
- Files

- File List

All Classes Functions Typedefs
MergNodeIdentification.h
1 #ifndef MERGNODEIDENTIFICATION_H
2 #define MERGNODEIDENTIFICATION_H
3
4 #include <Arduino.h>
5
6 #define NAME_SIZE 8
7
14 class MergNodeIdentification
15 {
16 public:
17 MergNodeIdentification();
18 virtual ~MergNodeIdentification();
19 void setCanID(byte val){canID=val;};
20 void setNodeNumber(unsigned int val){nodeNumber=val;};
21 void setNodeName(char const *nodeName,int csize);
22 byte getCanID(){return canID;};
23 unsigned int getNodeNumber(){return nodeNumber;};
24 const char* getNodeName();
25
26 //void setDeviceNumber(unsigned int val){deviceNumber=val;};
27 //unsigned int getDeviceNumber(){return deviceNumber;};
28
29 void setManufacturerId(byte val){manufacturerId=val;};
30 byte getManufacturerId(){return manufacturerId;};
31
32 void setModuleId(byte val){moduleId=val;};
33 byte getModuleId(){return moduleId;};
34
35 void setFlags(byte val){flags=val;};
36 byte getFlags(){return flags;};
37
38 void setMinCodeVersion(byte val){minCodeVersion=val;};
39 byte getMinCodeVersion(){return minCodeVersion;};
40
41 void setMaxCodeVersion(byte val){maxCodeVersion=val;};
42 byte getMaxCodeVersion(){return maxCodeVersion;};
43
44 void setSuportedEvents(byte val){suportedEvents=val;};
45 byte getSuportedEvents(){return suportedEvents;};
46
47 void setSuportedEventsVariables(byte val){suportedEventsVariables=val;};
48 byte getSuportedEventsVariables(){return suportedEventsVariables;};
49
50 void setSuportedNodeVariables(byte val){suportedNodeVariables=val;};
51 byte getSuportedNodeVariables(){return suportedNodeVariables;};
52
53 byte getParameter(byte inx);
54 byte getNumberOfParameters(){return 8;};
55
56 void setProducerNode(bool val);
57 bool isProducerNode();
58
59 void setConsumerNode(bool val);
60 bool isConsumerNode();
61
62 void setSlimMode();
63 void setFlimMode();
64 bool isSlimMode();
65 bool isFlimMode();
66
67 void setSuportBootLoading(bool val);
68 bool suportBootLoading();
69
70 protected:
71 private:
72 byte canID;
73 unsigned int nodeNumber;
74 char nodeName[NAME_SIZE];
75 //unsigned int deviceNumber;
76 byte manufacturerId;
77 byte moduleId;
78 byte flags;
79 byte minCodeVersion;
80 byte maxCodeVersion;
81 byte suportedEvents;
82 byte suportedEventsVariables;
83 byte suportedNodeVariables;
84
85
86 };
87
88 #endif // MERGNODEIDENTIFICATION_H
MergNodeIdentification
Definition: MergNodeIdentification.h:14