Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/bdk/thermal/fan.h
1476 views
1
/*
2
* Fan driver for Nintendo Switch
3
*
4
* Copyright (c) 2018-2024 CTCaer
5
*
6
* This program is free software; you can redistribute it and/or modify it
7
* under the terms and conditions of the GNU General Public License,
8
* version 2, as published by the Free Software Foundation.
9
*
10
* This program is distributed in the hope it will be useful, but WITHOUT
11
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13
* more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef __FAN_H_
20
#define __FAN_H_
21
22
#include <utils/types.h>
23
24
// Disable: 0 (0 RPM), min duty: 1 (960 RPM), max duty 235 (11000 RPM).
25
void fan_set_duty(u32 duty);
26
// Passing NULL ptr on either of the two, disables results.
27
void fan_get_speed(u32 *duty, u32 *rpm);
28
29
void fan_set_from_temp(u32 temp);
30
31
#endif /* __FAN_H_ */
32
33