include/gba/eeprom.h file

Functions

auto EEPROMConfigure(u16 unk_1) -> u16
selects EEPROM type selects 512byte on invalid argument
auto EEPROMRead(u16 address, u16* data) -> u16
reads 64 bit (8 byte) from eeprom
auto EEPROMCompare(u16 address, const u16* data) -> u16
auto EEPROMWrite0_8k_Check(u16 address, const u16* data) -> u16

Defines

#define EEPROM_OUT_OF_RANGE
#define EEPROM_COMPARE_FAILED
#define EEPROM_UNSUPPORTED_TYPE

Function documentation

u16 EEPROMConfigure(u16 unk_1)

selects EEPROM type selects 512byte on invalid argument

Parameters
unk_1 4 for 512 byte, 0x40 for 8k
Returns 1 on invalid argument, 0 otherwise

u16 EEPROMRead(u16 address, u16* data)

reads 64 bit (8 byte) from eeprom

Parameters
address 6/14 bit depending on eeprom size
data u16[4]
Returns errorcode, 0 on success