Doly C++ SDK v1.00
Loading...
Searching...
No Matches
FanControl.h
Go to the documentation of this file.
1#pragma once
2
3#include <atomic>
4#include <stdio.h>
5#include <stdlib.h>
6#include <fcntl.h>
7#include <fstream>
8#include <sys/ioctl.h>
9#include <thread>
10
26
27namespace FanControl
28{
40 int8_t init(bool auto_control);
41
50 int8_t dispose();
51
63 int8_t setFanSpeed(uint8_t percentage);
64
69 bool isActive();
70
78 float getVersion();
79};
80 // end of group doly_fancontrol
Definition FanControl.h:28
int8_t setFanSpeed(uint8_t percentage)
Set fan speed as a percentage.
bool isActive()
Check whether the Fan Control module is active (initialized).
float getVersion()
Get current library version.
int8_t init(bool auto_control)
Initialize the Fan Control module.
int8_t dispose()
Dispose the Fan Control module and release resources.