EduArt Sensor Ring Library 4.0.0
Loading...
Searching...
No Matches
DeviceState.hpp
Go to the documentation of this file.
1// Copyright (c) 2026 EduArt Robotik GmbH
2
9
10#pragma once
11
12#include <ostream>
13#include <string>
14
15#include "sensorring/platform/SensorringExport.hpp"
16
17namespace eduart {
18
19namespace sensorring {
20
21namespace device {
22
40
46SENSORRING_EXPORT std::string toString(DeviceState state) noexcept;
47
54SENSORRING_EXPORT std::ostream& operator<<(std::ostream& os, DeviceState state) noexcept;
55
56} // namespace device
57
58} // namespace sensorring
59
60} // namespace eduart
DeviceState
Unified lifecycle and runtime state of a device.
Definition DeviceState.hpp:30
@ ReceiveError
A CAN receive error was detected.
Definition DeviceState.hpp:35
@ Shutdown
Device has been shut down and should not be used.
Definition DeviceState.hpp:38
@ Initialized
Device has been configured but not yet started.
Definition DeviceState.hpp:32
@ Error
General unrecoverable device error.
Definition DeviceState.hpp:37
@ ProcessError
An error occurred while processing received data.
Definition DeviceState.hpp:36
@ Ok
Device is measuring and data is valid.
Definition DeviceState.hpp:34
@ Idle
Device is running but not actively measuring.
Definition DeviceState.hpp:33
SENSORRING_EXPORT std::ostream & operator<<(std::ostream &os, ResolutionMode mode) noexcept
Output stream operator for the ResolutionMode enum class members.
SENSORRING_EXPORT std::string toString(ResolutionMode mode) noexcept
Function to convert the ResolutionMode enum class members to string.