libws libws
WSwan hardware library for the Wonderful toolchain
|
Functions | |
void | ws_ieep_read_owner_name (uint8_t *data) |
Read the owner name, as raw data. | |
void | ws_ieep_read_owner_name_ascii (char *str) |
Read the owner name, as an ASCII string. | |
uint16_t | ws_ieep_name_color_to_rgb (uint8_t value) |
Convert a given name color to its RGB value. | |
static void | ws_ieep_set_protect (void) |
Protect the non-cartridge area of the internal EEPROM. | |
static bool | ws_ieep_is_protected (void) |
Check if the non-cartridge area of the internal EEPROM is currently protected. |
|
inlinestatic |
uint16_t ws_ieep_name_color_to_rgb | ( | uint8_t | value | ) |
Convert a given name color to its RGB value.
value | The given name color. |
void ws_ieep_read_owner_name | ( | uint8_t * | data | ) |
Read the owner name, as raw data.
data | Target data area - must be at least 16 bytes. |
void ws_ieep_read_owner_name_ascii | ( | char * | str | ) |
Read the owner name, as an ASCII string.
str | Target string area - must be at least 17 bytes. |
|
inlinestatic |
Protect the non-cartridge area of the internal EEPROM.
By default, the WonderSwan boot ROM protects the non-cartridge area of the internal EEPROM - addresses 0x60 and above - on boot. By setting a bit in the cartridge's header (–unlock-ieep in swanlink), the non-cartridge area remains writable. In this case, this function can be used to make the area read-only again.