Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //============================================================================//
- // //
- // Copyright 2007 Rick "Lick" Wong //
- // //
- // This library is licensed as described in the included readme. //
- // //
- //============================================================================//
- #ifndef __RAM
- #define __RAM
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef enum { DETECT_RAM=0, SC_RAM, M3_RAM, OPERA_RAM, G6_RAM, EZ_RAM,RAM_CART } RAM_TYPE;
- // Call this before the others
- bool ram_init (RAM_TYPE);
- // Returns the type of the RAM device
- RAM_TYPE ram_type (void);
- // Returns the type of the RAM device in a string
- const char* ram_type_string (void);
- // Returns the total amount of RAM in bytes
- u32 ram_size (void);
- // Unlocks the RAM and returns a pointer to the begin
- vu16* ram_unlock (void);
- // Locks the RAM
- void ram_lock (void);
- #ifdef __cplusplus
- }
- #endif
- #endif
Advertisement
Add Comment
Please, Sign In to add comment