Guest User

ram.h

a guest
Mar 12th, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.19 KB | None | 0 0
  1. //============================================================================//
  2. //                                                                            //
  3. //  Copyright 2007 Rick "Lick" Wong                                           //
  4. //                                                                            //
  5. //  This library is licensed as described in the included readme.             //
  6. //                                                                            //
  7. //============================================================================//
  8.  
  9.  
  10. #ifndef __RAM
  11. #define __RAM
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16.  
  17.  
  18. typedef enum { DETECT_RAM=0, SC_RAM, M3_RAM, OPERA_RAM, G6_RAM, EZ_RAM,RAM_CART } RAM_TYPE;
  19.  
  20. //  Call this before the others
  21. bool  ram_init (RAM_TYPE);
  22.  
  23. //  Returns the type of the RAM device
  24. RAM_TYPE   ram_type (void);
  25.  
  26. //  Returns the type of the RAM device in a string
  27. const char*   ram_type_string (void);
  28.  
  29. //  Returns the total amount of RAM in bytes
  30. u32   ram_size (void);
  31.  
  32.  
  33. //  Unlocks the RAM and returns a pointer to the begin
  34. vu16* ram_unlock (void);
  35.  
  36. //  Locks the RAM
  37. void  ram_lock (void);
  38.  
  39.  
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif
Advertisement
Add Comment
Please, Sign In to add comment