libctr9
Nintendo 3DS ARM9 library
|
#include <stdbool.h>
Go to the source code of this file.
Enumerations | |
enum | ctr_system_type { SYSTEM_O3DS, SYSTEM_N3DS } |
Enumeration describing the running system. | |
Functions | |
bool | ctr_detect_a9lh_entry (void) |
Returns whether the arm9 entry was a9lh or not. More... | |
void | ctr_twl_keyslot_setup (void) |
Sets up the TWL keyslot. More... | |
void | ctr_system_poweroff (void) |
Powers off the 3DS. More... | |
void | ctr_system_reset (void) |
Resets the 3DS. More... | |
ctr_system_type | ctr_get_system_type (void) |
Returns the enumeration corresponding to the running system. More... | |
void | ctr_flush_cache (void) |
Flushes all of the ARM9 CPU caches, and drains the write buffer. More... | |
bool ctr_detect_a9lh_entry | ( | void | ) |
Returns whether the arm9 entry was a9lh or not.
void ctr_flush_cache | ( | void | ) |
Flushes all of the ARM9 CPU caches, and drains the write buffer.
ctr_system_type ctr_get_system_type | ( | void | ) |
Returns the enumeration corresponding to the running system.
void ctr_system_poweroff | ( | void | ) |
Powers off the 3DS.
This function does not return. It powers off the 3DS via an i2c call to the MPU.
void ctr_system_reset | ( | void | ) |
Resets the 3DS.
This function does not return. It resets the 3DS via an i2c call to the MPU.
void ctr_twl_keyslot_setup | ( | void | ) |
Sets up the TWL keyslot.
This only really matters if arm9 execution is obtained via a9lh, or prior to a FIRM load. Nothing happens if FIRM had been launched previously.