Function EepromWriteBlock

From Uzebox Wiki
Jump to: navigation, search
Prototype

char EepromWriteBlock(struct EepromBlockStruct *block);

Description

Write data to one EEPROM block

Parameters
  • *block: Struct with id and data
Returns
  • 0 = success
  • 0x4 = EEPROM not formatted
  • 0x1 = invalid block
  • 0x2 = EEPROM full
Video Modes

All

Since

?

Example:

//Initialize a struct and define the block id
struct EepromBlockStruct ebs;
//Use block 70
ebs.id = 70;
//Change first data byte
ebs.data[0] = 255;
//Write to EEPROM
EepromWriteBlock(&ebs);