point_one::fusion_engine::messages::InterfaceID Struct Reference

Detailed Description

Identifies an I/O interface.

For example, serial port 1 or TCP server 2.

Note
On most devices, serial ports (UARTs) use 1-based numbering: the first serial port is typically index 1 (UART1).

Definition at line 1101 of file configuration.h.

#include <point_one/fusion_engine/messages/configuration.h>

Public Member Functions

 InterfaceID ()=default
 
 InterfaceID (TransportType type, uint8_t index=0)
 
bool operator!= (const InterfaceID &other) const
 
bool operator== (const InterfaceID &other) const
 

Public Attributes

uint8_t index = 0
 An identifier for the instance of this transport. More...
 
TransportType type = TransportType::INVALID
 The interface's transport type. More...
 

Constructor & Destructor Documentation

◆ InterfaceID() [1/2]

point_one::fusion_engine::messages::InterfaceID::InterfaceID ( )
default

◆ InterfaceID() [2/2]

point_one::fusion_engine::messages::InterfaceID::InterfaceID ( TransportType  type,
uint8_t  index = 0 
)
inlineexplicit

Definition at line 1110 of file configuration.h.

Member Function Documentation

◆ operator!=()

bool point_one::fusion_engine::messages::InterfaceID::operator!= ( const InterfaceID other) const
inline

Definition at line 1117 of file configuration.h.

◆ operator==()

bool point_one::fusion_engine::messages::InterfaceID::operator== ( const InterfaceID other) const
inline

Definition at line 1113 of file configuration.h.

Member Data Documentation

◆ index

uint8_t point_one::fusion_engine::messages::InterfaceID::index = 0

An identifier for the instance of this transport.

Definition at line 1105 of file configuration.h.

◆ type

TransportType point_one::fusion_engine::messages::InterfaceID::type = TransportType::INVALID

The interface's transport type.

Definition at line 1103 of file configuration.h.


The documentation for this struct was generated from the following file: