Files
Horizon-OC/Source/sys-clk/common/include/pwm.h
souldbminersmwc 02a50867b3 sysclk: code cleanup and fan speed
also fix incompatibility with nx fancontrol
2025-12-20 13:45:45 -05:00

22 lines
445 B
C

#pragma once
#include <switch.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
Service s;
} PwmChannelSession;
Result pwmInitialize(void);
void pwmExit(void);
Service* pwmGetServiceSession(void);
Result pwmOpenSession2(PwmChannelSession *out, u32 device_code);
Result pwmChannelSessionGetDutyCycle(PwmChannelSession *c, double* out);
void pwmChannelSessionClose(PwmChannelSession *c);
#ifdef __cplusplus
} // extern "C"
#endif