libsavgba
A library to access various backup media in GBA cartridges
|
Go to the source code of this file.
Functions | |
int | sram_read (u32 addr, u8 *data, size_t size) |
Read data from SRAM. More... | |
int | sram_write (u32 addr, u8 *data, size_t size) |
Write data to SRAM. More... | |
int sram_read | ( | u32 | addr, |
u8 * | data, | ||
size_t | size | ||
) |
Read data from SRAM.
addr | address in SRAM (unit: byte). |
data | buffer to hold data. |
size | data size (unit: byte). |
0
for success, non-zero
for error. int sram_write | ( | u32 | addr, |
u8 * | data, | ||
size_t | size | ||
) |
Write data to SRAM.
addr | address in SRAM (unit: byte). |
data | buffer to hold data. |
size | data size (unit: byte). |
0
for success, non-zero
for error.