src/eeprom.c file

Classes

struct EEPROMConfig

Functions

auto EEPROMWrite(u16, const u16*, u8) -> u16
auto EEPROMConfigure(u16 unk_1) -> u16
selects EEPROM type selects 512byte on invalid argument
static void DMA3Transfer(const void* src, void* dest, u16 count)
auto EEPROMRead(u16 address, u16* data) -> u16
reads 64 bit (8 byte) from eeprom
auto EEPROMWrite1(u16 address, const u16* data) -> u16
auto EEPROMCompare(u16 address, const u16* data) -> u16
auto EEPROMWrite1_check(u16 address, const u16* data) -> u16
auto EEPROMWrite0_8k(u16 address, const u16* data) -> u16
auto EEPROMWrite0_8k_Check(u16 address, const u16* data) -> u16

Variables

const char EEPROM_V124
const EEPROMConfig* gEEPROMConfig
const EEPROMConfig gEEPROMConfig512
const EEPROMConfig gEEPROMConfig8k
const char EEPROM_NOWAIT
const char thing

Defines

#define REG_EEPROM

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