libnx  v4.2.2
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.
16 Result fanInitialize(void);
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.
25 Result fanOpenController(FanController *out, u32 device_code);
26 
27 /// Close IController session.
28 void fanControllerClose(FanController *controller);
29 
30 /// @warning Disabling your fan can damage your system.
32 Result fanControllerGetRotationSpeedLevel(FanController *controller, float *level);
fanControllerSetRotationSpeedLevel
Result fanControllerSetRotationSpeedLevel(FanController *controller, float level)
u32
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21
FanController
Definition: fan.h:11
fanControllerClose
void fanControllerClose(FanController *controller)
Close IController session.
Result
u32 Result
Function error code result type.
Definition: types.h:44
fanGetServiceSession
Service * fanGetServiceSession(void)
Gets the Service object for the actual fan service session.
fanOpenController
Result fanOpenController(FanController *out, u32 device_code)
Opens IController session.
fanExit
void fanExit(void)
Exit fan.
Service
Service object structure.
Definition: service.h:13
fanInitialize
Result fanInitialize(void)
Initialize fan.