|
mergCanBus
|
#include <MergNodeIdentification.h>
Public Member Functions | |
| MergNodeIdentification () | |
| Constructor. More... | |
| virtual | ~MergNodeIdentification () |
| Destructor. More... | |
| void | setCanID (byte val) |
| Set the can id for this node. More... | |
| byte | getCanID () |
| Get the can id for this node. More... | |
| void | setNodeNumber (unsigned int val) |
| Set the node number for this node. More... | |
| unsigned int | getNodeNumber () |
| Get the node number for this node. More... | |
| void | setNodeName (char const *nodeName, int csize) |
| Set the node name. More... | |
| const char * | getNodeName () |
| Retrieve the node name. More... | |
| void | setManufacturerId (byte val) |
| Set the manufacturer ID. More... | |
| byte | getManufacturerId () |
| GSet the manufacturer ID. More... | |
| void | setModuleId (byte val) |
| Set the module ID. More... | |
| byte | getModuleId () |
| Get the module ID. More... | |
| void | setFlags (byte val) |
| Set the module flags. More... | |
| byte | getFlags () |
| Get the module flags. More... | |
| void | setMinCodeVersion (byte val) |
| Set the min Code Version. More... | |
| byte | getMinCodeVersion () |
| Get the min Code Version. More... | |
| void | setMaxCodeVersion (byte val) |
| Set the max Code Version. More... | |
| byte | getMaxCodeVersion () |
| Get the max Code Version. More... | |
| void | setSuportedEvents (byte val) |
| Set the number of supported events. More... | |
| byte | getSuportedEvents () |
| Get the number of supported events. More... | |
| void | setSuportedEventsVariables (byte val) |
| Set the number of supported events variables. More... | |
| byte | getSuportedEventsVariables () |
| Get the number of supported events variables. More... | |
| void | setSuportedNodeVariables (byte val) |
| Set the number of supported node variables. More... | |
| byte | getSuportedNodeVariables () |
| Get the number of supported node variables. More... | |
| byte | getParameter (byte inx) |
| Get one of the defined parameters. More... | |
| byte | getNumberOfParameters () |
| Get the number of node parameters. More... | |
| void | setProducerNode (bool val) |
| Set this module as a producer. More... | |
| bool | isProducerNode () |
| Indicates if the node is a producer. More... | |
| void | setConsumerNode (bool val) |
| Set this module as a consumer. More... | |
| bool | isConsumerNode () |
| Indicates if the node is a consumer. More... | |
| void | setSlimMode () |
| Set this module to SlimMode. | |
| void | setFlimMode () |
| Set this module to FlimMode. | |
| bool | isSlimMode () |
| Indicate if the mode is in SlimMode. | |
| bool | isFlimMode () |
| Indicate if the mode is in FlimMode. | |
| void | setSuportBootLoading (bool val) |
| Indicate if the mode supports boot loading. This current version by default does not support boot loading. | |
| bool | suportBootLoading () |
| Indicate if the mode supports boot loading. This current version by default does not support boot loading. | |
Class that saves the node parameters. Name, Manufactorer,Module, Can id, Node number, device number, Code Version, Supported events and variables. It is set from user information and from EEPROM: can id, node number, device number.
| MergNodeIdentification::MergNodeIdentification | ( | ) |
Constructor.
Set the internal variables.
|
virtual |
Destructor.
|
inline |
Get the can id for this node.
|
inline |
Get the module flags.
| val | The module flags. |
|
inline |
GSet the manufacturer ID.
|
inline |
Get the max Code Version.
|
inline |
Get the min Code Version.
|
inline |
Get the module ID.
| const char * MergNodeIdentification::getNodeName | ( | ) |
Retrieve the node name.
|
inline |
Get the node number for this node.
|
inline |
Get the number of node parameters.
| byte MergNodeIdentification::getParameter | ( | byte | idx | ) |
Get one of the defined parameters.
| idx | Index of the parameter: 0 to 8 |
|
inline |
Get the number of supported events.
|
inline |
Get the number of supported events variables.
|
inline |
Get the number of supported node variables.
| bool MergNodeIdentification::isConsumerNode | ( | ) |
Indicates if the node is a consumer.
| bool MergNodeIdentification::isProducerNode | ( | ) |
Indicates if the node is a producer.
|
inline |
Set the can id for this node.
| val | The can id. |
| void MergNodeIdentification::setConsumerNode | ( | bool | val | ) |
Set this module as a consumer.
| val | True for consumer. False not consumer. |
|
inline |
Set the module flags.
| val | The module flags. |
|
inline |
Set the manufacturer ID.
| val | The manufacuter id. |
|
inline |
Set the max Code Version.
| val | The max code version. |
|
inline |
Set the min Code Version.
| val | The min code version. |
|
inline |
Set the module ID.
| val | The module id. |
| void MergNodeIdentification::setNodeName | ( | char const * | nn, |
| int | csize | ||
| ) |
Set the node name.
| nn | Pointer to the node name. |
| csize | Size of the node name limited by NAME_SIZE. |
|
inline |
Set the node number for this node.
| val | The node number. |
| void MergNodeIdentification::setProducerNode | ( | bool | val | ) |
Set this module as a producer.
| val | True for producer. False not producer. |
|
inline |
Set the number of supported events.
| val | The number of events. |
|
inline |
Set the number of supported events variables.
| val | The number of events variables. |
|
inline |
Set the number of supported node variables.
| val | The number of events variables. |