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
14 class MergNodeIdentification
15 {
16 public:
17 MergNodeIdentification();
18 virtual ~MergNodeIdentification();
22 void setCanID(byte val){canID=val;};
26 byte getCanID(){return canID;};
30 void setNodeNumber(unsigned int val){nodeNumber=val;};
34 unsigned int getNodeNumber(){return nodeNumber;};
35
36 void setNodeName(char const *nodeName,int csize);
37 const char* getNodeName();
38
39 //void setDeviceNumber(unsigned int val){deviceNumber=val;};
40 //unsigned int getDeviceNumber(){return deviceNumber;};
46 void setManufacturerId(byte val){manufacturerId=val;};
52 byte getManufacturerId(){return manufacturerId;};
58 void setModuleId(byte val){moduleId=val;};
64 byte getModuleId(){return moduleId;};
70 void setFlags(byte val){flags=val;};
76 byte getFlags(){return flags;};
82 void setMinCodeVersion(byte val){minCodeVersion=val;};
88 byte getMinCodeVersion(){return minCodeVersion;};
94 void setMaxCodeVersion(byte val){maxCodeVersion=val;};
100 byte getMaxCodeVersion(){return maxCodeVersion;};
106 void setSuportedEvents(byte val){suportedEvents=val;};
112 byte getSuportedEvents(){return suportedEvents;};
116 void setSuportedEventsVariables(byte val){suportedEventsVariables=val;};
120 byte getSuportedEventsVariables(){return suportedEventsVariables;};
124 void setSuportedNodeVariables(byte val){suportedNodeVariables=val;};
128 byte getSuportedNodeVariables(){return suportedNodeVariables;};
129
130 byte getParameter(byte inx);
134 byte getNumberOfParameters(){return 8;};
135
136 void setProducerNode(bool val);
137 bool isProducerNode();
138
139 void setConsumerNode(bool val);
140 bool isConsumerNode();
141
142 void setSlimMode();
143 void setFlimMode();
144 bool isSlimMode();
145 bool isFlimMode();
146
147 void setSuportBootLoading(bool val);
148 bool suportBootLoading();
149
150 protected:
151 private:
152 byte canID;
153 unsigned int nodeNumber;
154 char nodeName[NAME_SIZE];
155 //unsigned int deviceNumber;
156 byte manufacturerId;
157 byte moduleId;
158 byte flags;
159 byte minCodeVersion;
160 byte maxCodeVersion;
161 byte suportedEvents;
162 byte suportedEventsVariables;
163 byte suportedNodeVariables;
164
165
166 };
167
168 #endif // MERGNODEIDENTIFICATION_H
MergNodeIdentification::setSuportedNodeVariables
void setSuportedNodeVariables(byte val)
Set the number of supported node variables.
Definition: MergNodeIdentification.h:124
MergNodeIdentification::getNumberOfParameters
byte getNumberOfParameters()
Get the number of node parameters.
Definition: MergNodeIdentification.h:134
MergNodeIdentification::setManufacturerId
void setManufacturerId(byte val)
Set the manufacturer ID.
Definition: MergNodeIdentification.h:46
MergNodeIdentification::getMinCodeVersion
byte getMinCodeVersion()
Get the min Code Version.
Definition: MergNodeIdentification.h:88
MergNodeIdentification::getMaxCodeVersion
byte getMaxCodeVersion()
Get the max Code Version.
Definition: MergNodeIdentification.h:100
MergNodeIdentification::getSuportedEvents
byte getSuportedEvents()
Get the number of supported events.
Definition: MergNodeIdentification.h:112
MergNodeIdentification::getCanID
byte getCanID()
Get the can id for this node.
Definition: MergNodeIdentification.h:26
MergNodeIdentification::setMinCodeVersion
void setMinCodeVersion(byte val)
Set the min Code Version.
Definition: MergNodeIdentification.h:82
MergNodeIdentification::setModuleId
void setModuleId(byte val)
Set the module ID.
Definition: MergNodeIdentification.h:58
MergNodeIdentification::setSuportedEvents
void setSuportedEvents(byte val)
Set the number of supported events.
Definition: MergNodeIdentification.h:106
MergNodeIdentification::setNodeNumber
void setNodeNumber(unsigned int val)
Set the node number for this node.
Definition: MergNodeIdentification.h:30
MergNodeIdentification::getManufacturerId
byte getManufacturerId()
GSet the manufacturer ID.
Definition: MergNodeIdentification.h:52
MergNodeIdentification::getSuportedNodeVariables
byte getSuportedNodeVariables()
Get the number of supported node variables.
Definition: MergNodeIdentification.h:128
MergNodeIdentification::getNodeNumber
unsigned int getNodeNumber()
Get the node number for this node.
Definition: MergNodeIdentification.h:34
MergNodeIdentification
Definition: MergNodeIdentification.h:14
MergNodeIdentification::setFlags
void setFlags(byte val)
Set the module flags.
Definition: MergNodeIdentification.h:70
MergNodeIdentification::getModuleId
byte getModuleId()
Get the module ID.
Definition: MergNodeIdentification.h:64
MergNodeIdentification::setSuportedEventsVariables
void setSuportedEventsVariables(byte val)
Set the number of supported events variables.
Definition: MergNodeIdentification.h:116
MergNodeIdentification::getFlags
byte getFlags()
Get the module flags.
Definition: MergNodeIdentification.h:76
MergNodeIdentification::getSuportedEventsVariables
byte getSuportedEventsVariables()
Get the number of supported events variables.
Definition: MergNodeIdentification.h:120
MergNodeIdentification::setCanID
void setCanID(byte val)
Set the can id for this node.
Definition: MergNodeIdentification.h:22
MergNodeIdentification::setMaxCodeVersion
void setMaxCodeVersion(byte val)
Set the max Code Version.
Definition: MergNodeIdentification.h:94