mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 04:22:50 +02:00
27 lines
585 B
C
27 lines
585 B
C
/**
|
|
* @file tc.h
|
|
* @brief Temperature control (tc) service IPC wrapper.
|
|
* @author Behemoth
|
|
* @copyright libnx Authors
|
|
*/
|
|
#pragma once
|
|
#include "../types.h"
|
|
#include "../sf/service.h"
|
|
|
|
/// Initialize tc.
|
|
Result tcInitialize(void);
|
|
|
|
/// Exit tc.
|
|
void tcExit(void);
|
|
|
|
/// Gets the Service for tc.
|
|
Service* tcGetServiceSession(void);
|
|
|
|
Result tcEnableFanControl(void);
|
|
/// @warning Disabling your fan can damage your system.
|
|
Result tcDisableFanControl(void);
|
|
Result tcIsFanControlEnabled(bool *status);
|
|
/// Only available on [5.0.0+].
|
|
Result tcGetSkinTemperatureMilliC(s32 *skinTemp);
|
|
|