libnx/nx/include/switch/services/tc.h
2020-02-28 17:59:31 +01:00

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);