![]() |
EduArt Sensor Ring Library 3.0.0
|
Version, commit hash, and board enumeration info reported by hardware. More...
#include <cstdint>#include <iostream>#include <string>#include <vector>#include "sensorring/device/DeviceType.hpp"#include "sensorring/device/hardware/SensorBoardType.hpp"#include "sensorring/platform/SensorringExport.hpp"Go to the source code of this file.
Classes | |
| struct | eduart::Version |
| Semantic version (major, minor, patch) for firmware or board. More... | |
| struct | eduart::CommitHash |
| 32-bit commit hash (e.g. from firmware) with byte-wise construction and string output. More... | |
| struct | eduart::device::EnumerationInformation |
| Information reported by a board during enumeration: index, version, commit hash, board type, and state. More... | |
Enumerations | |
| enum class | eduart::device::ConnectionState { Undefined , Connected , Unconnected } |
| Physical connection state of a board after enumeration. | |
| enum class | eduart::device::ConfigurationState { Undefined , Configured , Unconfigured } |
| Whether a board or device was declared by the user via the factory. More... | |
Functions | |
| SENSORRING_EXPORT std::string | eduart::device::toString (ConnectionState state) |
| Convert connection state to a human-readable string. | |
| SENSORRING_EXPORT std::string | eduart::device::toString (ConfigurationState state) |
| Convert configuration state to a human-readable string. | |
| SENSORRING_EXPORT std::ostream & | eduart::device::operator<< (std::ostream &os, const ConnectionState state) noexcept |
| Stream connection state as string. | |
| SENSORRING_EXPORT std::ostream & | eduart::device::operator<< (std::ostream &os, const ConfigurationState state) noexcept |
| Stream configuration state as string. | |
Version, commit hash, and board enumeration info reported by hardware.
|
strong |
Whether a board or device was declared by the user via the factory.
| SENSORRING_EXPORT std::string eduart::device::toString | ( | ConfigurationState | state | ) |
Convert configuration state to a human-readable string.
| [in] | state | Configuration state. |
| SENSORRING_EXPORT std::string eduart::device::toString | ( | ConnectionState | state | ) |
Convert connection state to a human-readable string.
| [in] | state | Connection state. |