Doly C++ SDK v1.00
Loading...
Searching...
No Matches
FanControl.h File Reference

Public API for Doly fan control. More...

#include <atomic>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <fstream>
#include <sys/ioctl.h>
#include <thread>

Go to the source code of this file.

Namespaces

namespace  FanControl

Functions

int8_t FanControl::init (bool auto_control)
 Initialize the Fan Control module.
int8_t FanControl::dispose ()
 Dispose the Fan Control module and release resources.
int8_t FanControl::setFanSpeed (uint8_t percentage)
 Set fan speed as a percentage.
bool FanControl::isActive ()
 Check whether the Fan Control module is active (initialized).
float FanControl::getVersion ()
 Get current library version.

Detailed Description

Public API for Doly fan control.

This header provides a single-file API for initializing and controlling the fan management module, including optional automatic fan control.

Design notes:

  • Singleton-style control (namespace API; no instances)
  • init() must be called before setFanSpeed()