21 lines
541 B
C++
21 lines
541 B
C++
// 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
|
|
};
|