Skip to main content

InterfaceID Struct

Identifier for an I/O interface. More...

Declaration

struct point_one::fusion_engine::messages::InterfaceID { ... }

Included Headers

Public Constructors Index

P1_CONSTEXPR_FUNCInterfaceID ()=default
P1_CONSTEXPR_FUNCInterfaceID (TransportType type, uint8_t index=0)

Public Operators Index

P1_CONSTEXPR_FUNC booloperator!= (const InterfaceID &other) const
P1_CONSTEXPR_FUNC booloperator< (const InterfaceID &other) const
P1_CONSTEXPR_FUNC booloperator<= (const InterfaceID &other) const
P1_CONSTEXPR_FUNC booloperator== (const InterfaceID &other) const
P1_CONSTEXPR_FUNC booloperator> (const InterfaceID &other) const
P1_CONSTEXPR_FUNC booloperator>= (const InterfaceID &other) const

Public Member Attributes Index

uint8_tindex = 0

An identifier for the instance of this transport. More...

TransportTypetype = TransportType::INVALID

The interface's transport type. More...

Description

Identifier for an I/O interface.

For example, serial port 1 or TCP server 2.

info

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

Definition at line 1953 of file configuration.h.

Public Constructors

InterfaceID()

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

Definition at line 1960 of file configuration.h.

InterfaceID()

P1_CONSTEXPR_FUNC point_one::fusion_engine::messages::InterfaceID::InterfaceID (TransportType type, uint8_t index=0)
inline explicit

Definition at line 1962 of file configuration.h.

1963 : type(type), index(index) {}

Public Operators

operator!=()

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

Definition at line 1969 of file configuration.h.

1970 return !(*this == other);
1971 }

operator<()

P1_CONSTEXPR_FUNC bool point_one::fusion_engine::messages::InterfaceID::operator< (const InterfaceID & other)
inline

Definition at line 1973 of file configuration.h.

1974 if (type == other.type) {
1975 return index < other.index;
1976 } else {
1977 return type < other.type;
1978 }
1979 }

operator<=()

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

Definition at line 1989 of file configuration.h.

1990 return !(*this > other);
1991 }

operator==()

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

Definition at line 1965 of file configuration.h.

1966 return type == other.type && index == other.index;
1967 }

operator>()

P1_CONSTEXPR_FUNC bool point_one::fusion_engine::messages::InterfaceID::operator> (const InterfaceID & other)
inline

Definition at line 1981 of file configuration.h.

1982 return other < *this;
1983 }

operator>=()

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

Definition at line 1985 of file configuration.h.

1986 return !(*this < other);
1987 }

Public Member Attributes

index

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

An identifier for the instance of this transport.

Definition at line 1957 of file configuration.h.

1957 uint8_t index = 0;

type

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

The interface's transport type.

Definition at line 1955 of file configuration.h.

1955 TransportType type = TransportType::INVALID;

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.