7#ifndef FLASHCART_SC64_LL_H__
8#define FLASHCART_SC64_LL_H__
24 uint8_t DD_SECTOR[256];
25 uint8_t FLASHRAM[128];
28#define SC64_BUFFERS_BASE (0x1FFE0000UL)
29#define SC64_BUFFERS ((sc64_buffers_t *) SC64_BUFFERS_BASE)
34 SC64_ERROR_BAD_ARGUMENT,
35 SC64_ERROR_BAD_ADDRESS,
36 SC64_ERROR_BAD_CONFIG_ID,
39 SC64_ERROR_UNKNOWN_CMD = -1
43 CFG_ID_BOOTLOADER_SWITCH,
44 CFG_ID_ROM_WRITE_ENABLE,
45 CFG_ID_ROM_SHADOW_ENABLE,
57 CFG_ID_ROM_EXTENDED_ENABLE,
72 BOOT_MODE_DIRECT_ROM = 3,
73 BOOT_MODE_DIRECT_DDIPL = 4,
79 SAVE_TYPE_EEPROM_4KBIT,
80 SAVE_TYPE_EEPROM_16KBIT,
81 SAVE_TYPE_SRAM_256KBIT,
82 SAVE_TYPE_FLASHRAM_1MBIT,
83 SAVE_TYPE_SRAM_BANKED,
88 CIC_SEED_AUTO = 0xFFFF
95 TV_TYPE_PASSTHROUGH = 3
100 DRIVE_TYPE_DEVELOPMENT,
112 BUTTON_MODE_USB_PACKET,
113 BUTTON_MODE_DD_DISK_SWAP,
120 uint32_t sector_table;
125void sc64_ll_lock (
void);
126sc64_error_t sc64_ll_get_version (uint16_t *major, uint16_t *minor, uint32_t *revision);
127sc64_error_t sc64_ll_get_config (sc64_cfg_id_t cfg, uint32_t *value);
128sc64_error_t sc64_ll_set_config (sc64_cfg_id_t cfg, uint32_t value);
133sc64_error_t sc64_ll_flash_get_erase_block_size (
size_t *erase_block_size);
sc64_boot_mode_t
The SC64 Boot Mode Enumeration.
Definition: sc64_ll.h:68
sc64_save_type_t
The SC64 Save Type Enumeration.
Definition: sc64_ll.h:77
sc64_error_t
The SC64 State Enumeration.
Definition: sc64_ll.h:32
The SC64 buffers structure.
Definition: sc64_ll.h:21
Definition: sc64_ll.h:116