libws libws
WSwan hardware library for the Wonderful toolchain
|
Macros | |
#define | ws_bank_ram_save(new_bank) |
Switch to a new RAM bank, while preserving the value of the old one. | |
#define | ws_bank_ram_set(new_bank) |
Switch to a new RAM bank. | |
#define | ws_bank_ram_restore ws_bank_ram_set |
#define | ws_bank_rom0_save(new_bank) |
Switch to a new ROM bank in slot 0, while preserving the value of the old one. | |
#define | ws_bank_rom0_set(new_bank) |
Switch to a new ROM bank in slot 0. | |
#define | ws_bank_rom0_restore ws_bank_rom0_set |
#define | ws_bank_rom1_save(new_bank) |
Switch to a new ROM bank in slot 1, while preserving the value of the old one. | |
#define | ws_bank_rom1_set(new_bank) |
Switch to a new ROM bank in slot 1. | |
#define | ws_bank_rom1_restore ws_bank_rom1_set |
#define | ws_bank_rom_linear_save(new_bank) |
Switch to a new ROM bank in the linear slot, while preserving the value of the old one. | |
#define | ws_bank_rom_linear_set(new_bank) |
Switch to a new ROM bank in the linear slot. | |
#define | ws_bank_rom_linear_restore ws_bank_rom_linear_set |
Functions | |
static ws_bank_t | __ws_bank_save (uint8_t port, ws_bank_t new_bank) |
static void | __ws_bank_set (uint8_t port, ws_bank_t new_bank) |
void | ws_cart_gpo_enable (uint8_t id) |
Enable general-purpose output. | |
void | ws_cart_gpo_disable (uint8_t id) |
Disable general-purpose output. | |
void | ws_cart_gpo_set (uint8_t id, bool val) |
Set general-purpose output value. | |
#define ws_bank_ram_restore ws_bank_ram_set |
Definition at line 86 of file cartridge.h.
#define ws_bank_ram_save | ( | new_bank | ) |
Switch to a new RAM bank, while preserving the value of the old one.
new_bank | New RAM bank. |
Definition at line 78 of file cartridge.h.
#define ws_bank_ram_set | ( | new_bank | ) |
Switch to a new RAM bank.
new_bank | New RAM bank. |
Definition at line 85 of file cartridge.h.
#define ws_bank_rom0_restore ws_bank_rom0_set |
Definition at line 102 of file cartridge.h.
#define ws_bank_rom0_save | ( | new_bank | ) |
Switch to a new ROM bank in slot 0, while preserving the value of the old one.
new_bank | New ROM bank. |
Definition at line 94 of file cartridge.h.
#define ws_bank_rom0_set | ( | new_bank | ) |
Switch to a new ROM bank in slot 0.
new_bank | New ROM bank. |
Definition at line 101 of file cartridge.h.
#define ws_bank_rom1_restore ws_bank_rom1_set |
Definition at line 118 of file cartridge.h.
#define ws_bank_rom1_save | ( | new_bank | ) |
Switch to a new ROM bank in slot 1, while preserving the value of the old one.
new_bank | New ROM bank. |
Definition at line 110 of file cartridge.h.
#define ws_bank_rom1_set | ( | new_bank | ) |
Switch to a new ROM bank in slot 1.
new_bank | New ROM bank. |
Definition at line 117 of file cartridge.h.
#define ws_bank_rom_linear_restore ws_bank_rom_linear_set |
Definition at line 134 of file cartridge.h.
#define ws_bank_rom_linear_save | ( | new_bank | ) |
Switch to a new ROM bank in the linear slot, while preserving the value of the old one.
new_bank | New ROM bank. |
Definition at line 126 of file cartridge.h.
#define ws_bank_rom_linear_set | ( | new_bank | ) |
Switch to a new ROM bank in the linear slot.
new_bank | New ROM bank. |
Definition at line 133 of file cartridge.h.
Definition at line 58 of file cartridge.h.
|
inlinestatic |
Definition at line 66 of file cartridge.h.
void ws_cart_gpo_disable | ( | uint8_t | id | ) |
Disable general-purpose output.
id | General-purpose output ID (0-3) |
void ws_cart_gpo_enable | ( | uint8_t | id | ) |
Enable general-purpose output.
id | General-purpose output ID (0-3) |
void ws_cart_gpo_set | ( | uint8_t | id, |
bool | val ) |
Set general-purpose output value.
id | General-purpose output ID (0-3) |
val | Value (true or false). |