blob: c5102e6ed97bb6f276e9c1a7cb832ad9942c8961 [file] [log] [blame]
/*
* Copyright (C) 2020 CESNET, https://photonics.cesnet.cz/
*
* Written by Tomáš Pecka <tomas.pecka@fit.cvut.cz>
*
*/
#pragma once
#include <filesystem>
#include "utils/log-fwd.h"
namespace velia::health {
/**
* @brief Sysfs driver for manipulating with LED brightness using https://www.kernel.org/doc/Documentation/leds/leds-class.txt
*/
class LedSysfsDriver {
public:
explicit LedSysfsDriver(const std::filesystem::path& directory);
void set(uint32_t brightness);
private:
velia::Log m_log;
/** path to the brightness file */
std::filesystem::path m_brightnessFile;
};
}