EduArt Sensor Ring Library 3.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 device {
20
28enum class DeviceState {
29 Undefined,
30 Initialized,
31 Idle,
32 Ok,
33 ReceiveError,
34 ProcessError,
35 Error,
36 Shutdown
37};
38
44SENSORRING_EXPORT std::string toString(DeviceState state) noexcept;
45
52SENSORRING_EXPORT std::ostream& operator<<(std::ostream& os, DeviceState state) noexcept;
53
54} // namespace device
55
56} // namespace eduart
SENSORRING_EXPORT std::ostream & operator<<(std::ostream &os, DeviceState state) noexcept
Output stream operator for DeviceState.
DeviceState
Unified lifecycle and runtime state of a device.
Definition DeviceState.hpp:28
SENSORRING_EXPORT std::string toString(DeviceState state) noexcept
Convert a DeviceState value to its string representation.