feat: declared enum class
This commit is contained in:
parent
409ee7aa35
commit
fabcf5a146
20
include/SysfsRead.hpp
Normal file
20
include/SysfsRead.hpp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// SysfsRead.hpp
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier GPL-3.0-or-later
|
||||||
|
// Author: Unai Blazquez Gomez <unaibg2000@gmail.com>
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
enum class SysfsStatus
|
||||||
|
{
|
||||||
|
/// @brief File cannot be opened or does not exist.
|
||||||
|
Unreachable,
|
||||||
|
/// @brief File exists but is just empty.
|
||||||
|
Empty,
|
||||||
|
/// @brief File content indicates taht production is enabled (e.g. "1")
|
||||||
|
Enabled,
|
||||||
|
/// @brief File requests a cooldown ("error: temp too high")
|
||||||
|
ErrorTempTooHigh,
|
||||||
|
/// @brief File contains an UnexpectedValue; producer must not send.
|
||||||
|
UnexpectedValue
|
||||||
|
};
|
||||||
Loading…
x
Reference in New Issue
Block a user