Struct ToFlxMessage

Struct Documentation

struct ToFlxMessage

Represents a message to be sent to the FLX device.

Public Types

enum class Status

Enum representing the status of a message in ToFLX direction.

Values:

enumerator MessageOk

Message is OK.

enumerator HeaderNotDecoded

Header not decoded, not enough data.

enumerator MessageNotDecoded

Message not decoded, not enough data.

enumerator InvalidMsgLength

Invalid message length.

Public Members

uint32_t elink = {}

The elink identifier.

std::span<const uint8_t> payload = {}

The payload and size of the message.

Status status = {Status::MessageOk}

The status of the message.

Public Static Functions

static inline const char *statusToString(Status status)

Converts the status enum to a string representation.

Parameters:

status -- The status to convert.

Returns:

const char* The string representation of the status.