23#ifndef __WF_LIBWS_SYSTEM_H__
24#define __WF_LIBWS_SYSTEM_H__
153#define ws_mode_t ws_system_mode_t
154#define ws_mode_get ws_system_mode_get
155#define ws_mode_set ws_system_mode_set
223#define ws_hwint_pop ws_hwint_push
#define SYSTEM_CTRL1_COLOR
void ws_hwint_set_default_handler_serial_tx(void)
Register a default interrupt handler for serial transmission. This handler will automatically disable...
void ws_hwint_set_default_handler_vblank_timer(void)
Register a default, acknowledge-only interrupt handler.
void ws_hwint_set_default_handler_serial_rx(void)
Register a default interrupt handler for serial receiving. This handler will automatically disable an...
void ws_hwint_set_default_handler_hblank_timer(void)
Register a default, acknowledge-only interrupt handler.
static void ws_hwint_disable_all(void)
Disable all hardware interrupts.
ws_system_mode_t
WonderSwan system mode.
static bool ws_system_color_active(void)
Check if this device is currently in Color mode.
typedef __attribute__((interrupt)) void __far(*ws_int_handler_t)(void)
ws_system_model_t ws_system_get_model(void)
Get the device's model.
static void ws_hwint_ack(uint8_t mask)
Acknowledge hardware interrupt.
void ws_hwint_set_default_handler_key(void)
Register a default, acknowledge-only interrupt handler.
void ws_hwint_disable(uint8_t mask)
Disable selected hardware interrupts.
void ws_hwint_set_default_handler_vblank(void)
Register a default, acknowledge-only interrupt handler.
static ws_system_mode_t ws_system_mode_get(void)
Get the current system mode.
static uint8_t ws_hwint_push(uint8_t mask)
void ws_hwint_set_handler(uint8_t idx, ws_int_handler_t handler)
Register a hardware interrupt handler.
void ws_cpuint_set_handler(uint8_t idx, ws_int_handler_t handler)
Register a CPU interrupt handler.
void ws_hwint_enable(uint8_t mask)
Enable selected hardware interrupts.
ws_system_model_t
WonderSwan device model.
void ws_hwint_set_default_handler_line(void)
Register a default, acknowledge-only interrupt handler.
bool ws_system_mode_set(ws_system_mode_t mode)
Set the new system mode.
static bool ws_system_is_color(void)
Check if this device is capable of supporting Color mode (= is a WonderSwan Color or above).
static void ws_hwint_set(uint8_t mask)
Set selected hardware interrupts.
@ WS_MODE_COLOR_4BPP
Color/4bpp mode.
@ WS_MODE_COLOR
Color mode.
@ WS_MODE_COLOR_4BPP_PACKED
Color/4bpp/Packed mode.
@ WS_MODEL_CRYSTAL
SwanCrystal.
@ WS_MODEL_PCV2
Pocket Challenge V2.
@ WS_MODEL_COLOR
WonderSwan Color.
@ WS_MODEL_MONO
WonderSwan (mono).