libnx  v4.6.0
fan.h
Go to the documentation of this file.
1 /**
2  * @file fan.h
3  * @brief Fan service IPC wrapper.
4  * @author Behemoth
5  * @copyright libnx Authors
6  */
7 #pragma once
8 #include "../types.h"
9 #include "../sf/service.h"
10 
11 typedef struct {
12  Service s;
14 
15 /// Initialize fan.
17 
18 /// Exit fan.
19 void fanExit(void);
20 
21 /// Gets the Service object for the actual fan service session.
23 
24 /// Opens IController session.
26 
27 /// Close IController session.
29 
30 /// @warning Disabling your fan can damage your system.
32 Result fanControllerGetRotationSpeedLevel(FanController *controller, float *level);
void fanExit(void)
Exit fan.
Service * fanGetServiceSession(void)
Gets the Service object for the actual fan service session.
Result fanOpenController(FanController *out, u32 device_code)
Opens IController session.
Result fanInitialize(void)
Initialize fan.
Result fanControllerSetRotationSpeedLevel(FanController *controller, float level)
void fanControllerClose(FanController *controller)
Close IController session.
Definition: fan.h:11
Service object structure.
Definition: service.h:14
u32 Result
Function error code result type.
Definition: types.h:44
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21