Structure, that contains one row with data from route table.
More...
#include <meshTables.h>
|
uint8_t | Source = 0 |
| Source address. More...
|
|
uint8_t | Neighbor = 0 |
| Neighbor node address, that is connected (directly/indirectly) to source node. More...
|
|
uint8_t | Hop = 0 |
| Number of hops from current node to Source. More...
|
|
Structure, that contains one row with data from route table.
◆ MeshRouteTableRow() [1/2]
MeshRouteTableRow::MeshRouteTableRow |
( |
| ) |
|
|
default |
◆ MeshRouteTableRow() [2/2]
MeshRouteTableRow::MeshRouteTableRow |
( |
uint8_t |
source, |
|
|
uint8_t |
neighbor, |
|
|
uint8_t |
hop |
|
) |
| |
◆ clear()
void MeshRouteTableRow::clear |
( |
| ) |
|
|
inline |
Removes all data from current row.
◆ isDirectNeighbor()
bool MeshRouteTableRow::isDirectNeighbor |
( |
| ) |
const |
|
inline |
Checks if row is route to direct neighbor or not.
- Returns
- Returns true when row is route to direct neighbor.
◆ isGateway()
bool MeshRouteTableRow::isGateway |
( |
| ) |
const |
|
inline |
Checks if row is route to gateway node.
- Returns
- Returns true when row is route to gateway node.
◆ operator==()
◆ printHeader()
size_t MeshRouteTableRow::printHeader |
( |
OSTREAM & |
stream | ) |
|
|
static |
Print header for table of rows.
- Parameters
-
stream | Stream, where header will be printed. |
- Returns
- Returns number of printed characters.
◆ printRow()
size_t MeshRouteTableRow::printRow |
( |
OSTREAM & |
stream | ) |
const |
@breif Prints row to stream.
- Parameters
-
stream | Stream, where row will be printed. |
- Returns
- Returns number of printed characters.
◆ Hop
uint8_t MeshRouteTableRow::Hop = 0 |
Number of hops from current node to Source.
◆ Neighbor
uint8_t MeshRouteTableRow::Neighbor = 0 |
Neighbor node address, that is connected (directly/indirectly) to source node.
◆ Source
uint8_t MeshRouteTableRow::Source = 0 |
The documentation for this struct was generated from the following files: