Clients on the CAN bus that have identfied themselves with an IDS are stored in this format.
More...
#include <connectedclient.h>
List of all members.
Detailed Description
Clients on the CAN bus that have identfied themselves with an IDS are stored in this format.
They are identified by their node id. If they remain silent, they are dropped after a timeout. This class is used for internal housekeeping of CanAeroBusConnector.
- Author:
- (c) 2009, 2010 by Philipp Münzel
- Version:
- 1.3
Constructor & Destructor Documentation
SCS::ConnectedClient::ConnectedClient |
( |
uint8_t |
node_id, |
|
|
uint8_t |
hardware_revision, |
|
|
uint8_t |
software_revision, |
|
|
uint8_t |
identifier_distribution, |
|
|
uint8_t |
header_type |
|
) |
| |
- Parameters:
-
node_id | unique id on the CAN bus, either hard-wired or auto-assigned via NCS node service |
hardware_revision | for software nodes this is their software version number |
software_revision | for all nodes this is the config file revision number they require |
identifier_distribution | according to SCS or CAN Aerospace specification |
header_type | according to CAN Aerospace specification |
Member Function Documentation
bool SCS::ConnectedClient::hasTimedOut |
( |
| ) |
const |
uint8_t SCS::ConnectedClient::nodeId |
( |
| ) |
const |
To be used as key in sets or maps, clients are sorted according to their node id. The id remains const over the lifetime of an instance.
void SCS::ConnectedClient::poke |
( |
| ) |
|
try to poke the node with an IDS to see if it is really gone or just normally silent.
void SCS::ConnectedClient::resetTimer |
( |
| ) |
|
Will be called to reset timeout after reception of data.
bool SCS::ConnectedClient::wasPoked |
( |
| ) |
const |
- Returns:
- has the node already been poked
Member Data Documentation
Value is given in seconds.
The documentation for this class was generated from the following file: