mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-20 23:17:35 -04:00
31 lines
656 B
C++
31 lines
656 B
C++
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "SystemManagerMessage.hpp"
|
|
|
|
namespace sys
|
|
{
|
|
class CpuFrequencyMessage : public SystemManagerMessage
|
|
{
|
|
public:
|
|
enum class Action
|
|
{
|
|
Increase,
|
|
Decrease
|
|
};
|
|
|
|
CpuFrequencyMessage(Action action) : SystemManagerMessage(), action(action)
|
|
{}
|
|
|
|
[[nodiscard]] auto getAction() const noexcept
|
|
{
|
|
return action;
|
|
};
|
|
|
|
private:
|
|
Action action = Action::Increase;
|
|
};
|
|
} // namespace sys
|