libctru  v1.6.0
ptmsysm.h
Go to the documentation of this file.
1 /**
2  * @file ptmsysm.h
3  * @brief PTMSYSM service.
4  */
5 #pragma once
6 
7 /// Initializes ptm:sysm.
8 Result ptmSysmInit(void);
9 
10 /// Exits ptm:sysm.
11 void ptmSysmExit(void);
12 
13 
14 /**
15  * @brief return 1 if it's a New 3DS otherwise, return 0 for Old 3DS.
16  */
18 
19 /**
20  * @brief Configures the New 3DS' CPU clock speed and L2 cache.
21  * @param value Bit0: enable higher clock, Bit1: enable L2 cache.
22  */
24 
25 /**
26  * @brief Trigger a hardware system shutdown via the MCU
27  * @param timeout: timeout passed to PMApp:TerminateNonEssential.
28  */
30 
31 /**
32  * @brief Trigger a hardware system reboot via the MCU.
33  * @param timeout: timeout passed to PMApp:TerminateNonEssential.
34  */
s32 Result
Function result.
Definition: types.h:42
void ptmSysmExit(void)
Exits ptm:sysm.
uint8_t u8
would be nice if newlib had this already
Definition: types.h:21
uint64_t u64
64-bit unsigned integer
Definition: types.h:24
Result PTMSYSM_RebootAsync(u64 timeout)
Trigger a hardware system reboot via the MCU.
Result ptmSysmInit(void)
Initializes ptm:sysm.
Result PTMSYSM_CheckNew3DS(void)
return 1 if it's a New 3DS otherwise, return 0 for Old 3DS.
Result PTMSYSM_ConfigureNew3DSCPU(u8 value)
Configures the New 3DS' CPU clock speed and L2 cache.
Result PTMSYSM_ShutdownAsync(u64 timeout)
Trigger a hardware system shutdown via the MCU.