mergCanBus
 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:
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
void setSuportedNodeVariables(byte val)
Set the number of supported node variables.
Definition: MergNodeIdentification.h:124
byte getNumberOfParameters()
Get the number of node parameters.
Definition: MergNodeIdentification.h:134
void setManufacturerId(byte val)
Set the manufacturer ID.
Definition: MergNodeIdentification.h:46
byte getMinCodeVersion()
Get the min Code Version.
Definition: MergNodeIdentification.h:88
byte getMaxCodeVersion()
Get the max Code Version.
Definition: MergNodeIdentification.h:100
byte getSuportedEvents()
Get the number of supported events.
Definition: MergNodeIdentification.h:112
byte getCanID()
Get the can id for this node.
Definition: MergNodeIdentification.h:26
void setMinCodeVersion(byte val)
Set the min Code Version.
Definition: MergNodeIdentification.h:82
void setModuleId(byte val)
Set the module ID.
Definition: MergNodeIdentification.h:58
void setSuportedEvents(byte val)
Set the number of supported events.
Definition: MergNodeIdentification.h:106
void setNodeNumber(unsigned int val)
Set the node number for this node.
Definition: MergNodeIdentification.h:30
byte getManufacturerId()
GSet the manufacturer ID.
Definition: MergNodeIdentification.h:52
byte getSuportedNodeVariables()
Get the number of supported node variables.
Definition: MergNodeIdentification.h:128
unsigned int getNodeNumber()
Get the node number for this node.
Definition: MergNodeIdentification.h:34
Definition: MergNodeIdentification.h:14
void setFlags(byte val)
Set the module flags.
Definition: MergNodeIdentification.h:70
byte getModuleId()
Get the module ID.
Definition: MergNodeIdentification.h:64
void setSuportedEventsVariables(byte val)
Set the number of supported events variables.
Definition: MergNodeIdentification.h:116
byte getFlags()
Get the module flags.
Definition: MergNodeIdentification.h:76
byte getSuportedEventsVariables()
Get the number of supported events variables.
Definition: MergNodeIdentification.h:120
void setCanID(byte val)
Set the can id for this node.
Definition: MergNodeIdentification.h:22
void setMaxCodeVersion(byte val)
Set the max Code Version.
Definition: MergNodeIdentification.h:94