/*1* Fan driver for Nintendo Switch2*3* Copyright (c) 2018-2024 CTCaer4*5* This program is free software; you can redistribute it and/or modify it6* under the terms and conditions of the GNU General Public License,7* version 2, as published by the Free Software Foundation.8*9* This program is distributed in the hope it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for12* more details.13*14* You should have received a copy of the GNU General Public License15* along with this program. If not, see <http://www.gnu.org/licenses/>.16*/1718#ifndef __FAN_H_19#define __FAN_H_2021#include <utils/types.h>2223// Disable: 0 (0 RPM), min duty: 1 (960 RPM), max duty 235 (11000 RPM).24void fan_set_duty(u32 duty);25// Passing NULL ptr on either of the two, disables results.26void fan_get_speed(u32 *duty, u32 *rpm);2728void fan_set_from_temp(u32 temp);2930#endif /* __FAN_H_ */313233