diff --git a/actions_8h.html b/actions_8h.html index a8edd801..d4bb4135 100644 --- a/actions_8h.html +++ b/actions_8h.html @@ -95,7 +95,7 @@ void actions_update (< diff --git a/actions_8h_source.html b/actions_8h_source.html index 8d3ae435..9c9fcc0d 100644 --- a/actions_8h_source.html +++ b/actions_8h_source.html @@ -93,7 +93,7 @@ $(function() { diff --git a/annotated.html b/annotated.html index 34648bbe..036156d2 100644 --- a/annotated.html +++ b/annotated.html @@ -107,7 +107,7 @@ $(function() { diff --git a/boot_8h.html b/boot_8h.html index efe09057..0eb07bba 100644 --- a/boot_8h.html +++ b/boot_8h.html @@ -169,7 +169,7 @@ detect_cic_seed diff --git a/boot_8h_source.html b/boot_8h_source.html index 5be65b06..09d38717 100644 --- a/boot_8h_source.html +++ b/boot_8h_source.html @@ -122,7 +122,7 @@ $(function() { diff --git a/boot__io_8h.html b/boot__io_8h.html index b8765f9b..a98963a5 100644 --- a/boot__io_8h.html +++ b/boot__io_8h.html @@ -922,7 +922,7 @@ RLS diff --git a/boot__io_8h_source.html b/boot__io_8h_source.html index 72cccb75..97bbd4fc 100644 --- a/boot__io_8h_source.html +++ b/boot__io_8h_source.html @@ -321,7 +321,7 @@ $(function() { diff --git a/classes.html b/classes.html index bc47160d..14e6dc07 100644 --- a/classes.html +++ b/classes.html @@ -117,7 +117,7 @@ $(function() { diff --git a/components_8h.html b/components_8h.html index 359421ab..7e2d7207 100644 --- a/components_8h.html +++ b/components_8h.html @@ -188,7 +188,7 @@ image diff --git a/components_8h_source.html b/components_8h_source.html index 54185908..f4e9e427 100644 --- a/components_8h_source.html +++ b/components_8h_source.html @@ -123,7 +123,7 @@ $(function() { diff --git a/constants_8h.html b/constants_8h.html index 6262378b..e63fa020 100644 --- a/constants_8h.html +++ b/constants_8h.html @@ -239,7 +239,7 @@ Macros diff --git a/constants_8h_source.html b/constants_8h_source.html index 00fb9be3..e28c12f5 100644 --- a/constants_8h_source.html +++ b/constants_8h_source.html @@ -157,7 +157,7 @@ $(function() { diff --git a/crc32_8h.html b/crc32_8h.html index e7ed0dc9..01074b64 100644 --- a/crc32_8h.html +++ b/crc32_8h.html @@ -95,7 +95,7 @@ uint32_t crc32_calculate diff --git a/crc32_8h_source.html b/crc32_8h_source.html index bb7b6ce3..1e3b5f9b 100644 --- a/crc32_8h_source.html +++ b/crc32_8h_source.html @@ -92,7 +92,7 @@ $(function() { diff --git a/dir_1a56cc8cdc1689899910be5fa4716ee4.html b/dir_1a56cc8cdc1689899910be5fa4716ee4.html index 221d2483..ac0c5f47 100644 --- a/dir_1a56cc8cdc1689899910be5fa4716ee4.html +++ b/dir_1a56cc8cdc1689899910be5fa4716ee4.html @@ -118,7 +118,7 @@ Files diff --git a/dir_313caf1132e152dd9b58bea13a4052ca.html b/dir_313caf1132e152dd9b58bea13a4052ca.html index 7345915b..73519f5a 100644 --- a/dir_313caf1132e152dd9b58bea13a4052ca.html +++ b/dir_313caf1132e152dd9b58bea13a4052ca.html @@ -87,7 +87,7 @@ Files diff --git a/dir_4ad298de6e9dc10146d0378a1888b2cb.html b/dir_4ad298de6e9dc10146d0378a1888b2cb.html index ecf2b9e3..fbf917d7 100644 --- a/dir_4ad298de6e9dc10146d0378a1888b2cb.html +++ b/dir_4ad298de6e9dc10146d0378a1888b2cb.html @@ -79,15 +79,17 @@ $(function() { - + + - + +

Files

file  sc64.h [code]
file  sc64.h [code]
 SC64 flashcart support.
 
file  sc64_internal.h [code]
file  sc64_ll.h [code]
 SC64 flashcart low level access.
 
diff --git a/dir_52780cb445d9f0b97a98e8aabec4d968.html b/dir_52780cb445d9f0b97a98e8aabec4d968.html index 20c55f71..19668e3c 100644 --- a/dir_52780cb445d9f0b97a98e8aabec4d968.html +++ b/dir_52780cb445d9f0b97a98e8aabec4d968.html @@ -92,7 +92,7 @@ Files diff --git a/dir_68267d1309a1af8e8297ef4c3efbcdba.html b/dir_68267d1309a1af8e8297ef4c3efbcdba.html index c83139c7..34783f13 100644 --- a/dir_68267d1309a1af8e8297ef4c3efbcdba.html +++ b/dir_68267d1309a1af8e8297ef4c3efbcdba.html @@ -91,7 +91,7 @@ Directories diff --git a/dir_a2193b6f8ca8748b0e3b26a8265ce7c7.html b/dir_a2193b6f8ca8748b0e3b26a8265ce7c7.html index 78e16fb2..061b7e4c 100644 --- a/dir_a2193b6f8ca8748b0e3b26a8265ce7c7.html +++ b/dir_a2193b6f8ca8748b0e3b26a8265ce7c7.html @@ -86,7 +86,7 @@ Files diff --git a/dir_abdc04f88b2866c1353f358c089205e4.html b/dir_abdc04f88b2866c1353f358c089205e4.html index 59a36c48..b1eba979 100644 --- a/dir_abdc04f88b2866c1353f358c089205e4.html +++ b/dir_abdc04f88b2866c1353f358c089205e4.html @@ -94,7 +94,7 @@ Files diff --git a/dir_fc7b276aa2f26a1d485b93ff01d7cabb.html b/dir_fc7b276aa2f26a1d485b93ff01d7cabb.html index d02f51f5..097508cd 100644 --- a/dir_fc7b276aa2f26a1d485b93ff01d7cabb.html +++ b/dir_fc7b276aa2f26a1d485b93ff01d7cabb.html @@ -86,7 +86,7 @@ Files diff --git a/files.html b/files.html index 518ae178..8b81e7da 100644 --- a/files.html +++ b/files.html @@ -81,8 +81,8 @@ $(function() {  crc32.hFlashcart Boot Checksum   flashcart   sc64 - sc64.h - sc64_internal.h + sc64.hSC64 flashcart support + sc64_ll.hSC64 flashcart low level access  flashcart.hFlashcart Subsystem  flashcart_utils.hFlashcart utilities   menu @@ -108,7 +108,7 @@ $(function() { diff --git a/flashcart_8h.html b/flashcart_8h.html index 36774d62..5f258e32 100644 --- a/flashcart_8h.html +++ b/flashcart_8h.html @@ -149,12 +149,10 @@ Functions

Detailed Description

Flashcart Subsystem.

-

SC64 Flashcart Internal Utilities.

-

SC64 Flashcart Utilities.

diff --git a/flashcart_8h_source.html b/flashcart_8h_source.html index fac59de3..9d8e2173 100644 --- a/flashcart_8h_source.html +++ b/flashcart_8h_source.html @@ -133,7 +133,7 @@ $(function() { diff --git a/flashcart__utils_8h.html b/flashcart__utils_8h.html index d49b748d..b3eb60be 100644 --- a/flashcart__utils_8h.html +++ b/flashcart__utils_8h.html @@ -101,7 +101,7 @@ void pi_dma_write_data diff --git a/flashcart__utils_8h_source.html b/flashcart__utils_8h_source.html index 7943e230..f28a6b32 100644 --- a/flashcart__utils_8h_source.html +++ b/flashcart__utils_8h_source.html @@ -93,7 +93,7 @@ $(function() { diff --git a/fonts_8h.html b/fonts_8h.html index 83aed0ea..b0855051 100644 --- a/fonts_8h.html +++ b/fonts_8h.html @@ -112,7 +112,7 @@ void fonts_init (void) diff --git a/fonts_8h_source.html b/fonts_8h_source.html index b1379532..4c8d34b3 100644 --- a/fonts_8h_source.html +++ b/fonts_8h_source.html @@ -101,7 +101,7 @@ $(function() { diff --git a/fs_8h_source.html b/fs_8h_source.html index 79a1e40d..5d98aaa5 100644 --- a/fs_8h_source.html +++ b/fs_8h_source.html @@ -106,7 +106,7 @@ $(function() { diff --git a/functions.html b/functions.html index 76a13c5f..dd602552 100644 --- a/functions.html +++ b/functions.html @@ -87,7 +87,7 @@ $(function() { diff --git a/functions_vars.html b/functions_vars.html index 60c6497e..86925714 100644 --- a/functions_vars.html +++ b/functions_vars.html @@ -87,7 +87,7 @@ $(function() { diff --git a/globals.html b/globals.html index c06fbcce..7aa3e670 100644 --- a/globals.html +++ b/globals.html @@ -175,7 +175,7 @@ $(function() { diff --git a/globals_enum.html b/globals_enum.html index 3a5c8fea..b05c9ede 100644 --- a/globals_enum.html +++ b/globals_enum.html @@ -87,7 +87,7 @@ $(function() { diff --git a/globals_eval.html b/globals_eval.html index d6b24c4f..3b251574 100644 --- a/globals_eval.html +++ b/globals_eval.html @@ -149,7 +149,7 @@ $(function() { diff --git a/globals_func.html b/globals_func.html index f6edbb51..12593e42 100644 --- a/globals_func.html +++ b/globals_func.html @@ -75,7 +75,7 @@ $(function() { diff --git a/group__sc64.html b/group__sc64.html index 29c17d1b..9b51526a 100644 --- a/group__sc64.html +++ b/group__sc64.html @@ -106,28 +106,28 @@ Enumerations
}   -enum  sc64_cfg_t {
-  CFG_BOOTLOADER_SWITCH -, CFG_ROM_WRITE_ENABLE -, CFG_ROM_SHADOW_ENABLE -, CFG_DD_MODE +enum  sc64_cfg_id_t {
+  CFG_ID_BOOTLOADER_SWITCH +, CFG_ID_ROM_WRITE_ENABLE +, CFG_ID_ROM_SHADOW_ENABLE +, CFG_ID_DD_MODE ,
-  CFG_ISV_ADDRESS -, CFG_BOOT_MODE -, CFG_SAVE_TYPE -, CFG_CIC_SEED +  CFG_ID_ISV_ADDRESS +, CFG_ID_BOOT_MODE +, CFG_ID_SAVE_TYPE +, CFG_ID_CIC_SEED ,
-  CFG_TV_TYPE -, CFG_DD_SD_ENABLE -, CFG_DD_DRIVE_TYPE -, CFG_DD_DISK_STATE +  CFG_ID_TV_TYPE +, CFG_ID_DD_SD_ENABLE +, CFG_ID_DD_DRIVE_TYPE +, CFG_ID_DD_DISK_STATE ,
-  CFG_BUTTON_STATE -, CFG_BUTTON_MODE -, CFG_ROM_EXTENDED_ENABLE +  CFG_ID_BUTTON_STATE +, CFG_ID_BUTTON_MODE +, CFG_ID_ROM_EXTENDED_ENABLE
} -  +  enum  sc64_dd_mode_t { DD_MODE_DISABLED = 0 , DD_MODE_REGS = 1 , DD_MODE_IPL = 2 @@ -186,33 +186,33 @@ Functions flashcart_tsc64_get_flashcart (void)   - -void sc64_lock (void) -  - -sc64_error_t sc64_get_version (uint16_t *major, uint16_t *minor, uint32_t *revision) -  - -sc64_error_t sc64_get_config (sc64_cfg_t cfg, uint32_t *value) -  - -sc64_error_t sc64_set_config (sc64_cfg_t cfg, uint32_t value) -  - -sc64_error_t sc64_writeback_pending (bool *pending) -  - -sc64_error_t sc64_writeback_enable (void *address) -  - -sc64_error_t sc64_flash_wait_busy (void) -  - -sc64_error_t sc64_flash_get_erase_block_size (size_t *erase_block_size) -  - -sc64_error_t sc64_flash_erase_block (void *address) -  + +void sc64_ll_lock (void) +  + +sc64_error_t sc64_ll_get_version (uint16_t *major, uint16_t *minor, uint32_t *revision) +  + +sc64_error_t sc64_ll_get_config (sc64_cfg_id_t cfg, uint32_t *value) +  + +sc64_error_t sc64_ll_set_config (sc64_cfg_id_t cfg, uint32_t value) +  + +sc64_error_t sc64_ll_writeback_pending (bool *pending) +  + +sc64_error_t sc64_ll_writeback_enable (void *address) +  + +sc64_error_t sc64_ll_flash_wait_busy (void) +  + +sc64_error_t sc64_ll_flash_get_erase_block_size (size_t *erase_block_size) +  + +sc64_error_t sc64_ll_flash_erase_block (void *address) + 

Detailed Description


Data Structure Documentation

@@ -260,7 +260,7 @@ FLASHRAM[128] diff --git a/group__view.html b/group__view.html index 24dbdd0a..06bd69e7 100644 --- a/group__view.html +++ b/group__view.html @@ -151,7 +151,7 @@ void menu_show_error ( diff --git a/index.html b/index.html index 88d4a75d..84be2586 100644 --- a/index.html +++ b/index.html @@ -145,7 +145,7 @@ OSS licenses used for libraries diff --git a/menu_8h.html b/menu_8h.html index 67a6de6c..2d485229 100644 --- a/menu_8h.html +++ b/menu_8h.html @@ -95,7 +95,7 @@ void menu_run ( diff --git a/menu_8h_source.html b/menu_8h_source.html index 6864e788..34b07b9a 100644 --- a/menu_8h_source.html +++ b/menu_8h_source.html @@ -93,7 +93,7 @@ $(function() { diff --git a/menu__state_8h.html b/menu__state_8h.html index 115bec28..526e69cc 100644 --- a/menu__state_8h.html +++ b/menu__state_8h.html @@ -392,7 +392,7 @@ selected diff --git a/menu__state_8h_source.html b/menu__state_8h_source.html index 4ecea3d1..a91e324c 100644 --- a/menu__state_8h_source.html +++ b/menu__state_8h_source.html @@ -175,7 +175,7 @@ $(function() { diff --git a/modules.html b/modules.html index ce3aea56..16c856e3 100644 --- a/modules.html +++ b/modules.html @@ -81,7 +81,7 @@ $(function() { diff --git a/mp3__player_8h_source.html b/mp3__player_8h_source.html index e6795835..05bafaee 100644 --- a/mp3__player_8h_source.html +++ b/mp3__player_8h_source.html @@ -116,7 +116,7 @@ $(function() { diff --git a/path_8h.html b/path_8h.html index 74aed2ba..65fb7106 100644 --- a/path_8h.html +++ b/path_8h.html @@ -172,7 +172,7 @@ capacity diff --git a/path_8h_source.html b/path_8h_source.html index 48b6b55e..ab6858ad 100644 --- a/path_8h_source.html +++ b/path_8h_source.html @@ -110,7 +110,7 @@ $(function() { diff --git a/png__decoder_8h_source.html b/png__decoder_8h_source.html index 61bcec25..a26d91e8 100644 --- a/png__decoder_8h_source.html +++ b/png__decoder_8h_source.html @@ -106,7 +106,7 @@ $(function() { diff --git a/rom__database_8h.html b/rom__database_8h.html index f81bb2b5..b7134cbb 100644 --- a/rom__database_8h.html +++ b/rom__database_8h.html @@ -628,7 +628,7 @@ The ROM file release version. diff --git a/rom__database_8h_source.html b/rom__database_8h_source.html index 09f1018e..26cd867b 100644 --- a/rom__database_8h_source.html +++ b/rom__database_8h_source.html @@ -288,7 +288,7 @@ $(function() { diff --git a/sc64_8h.html b/sc64_8h.html new file mode 100644 index 00000000..a87cf43e --- /dev/null +++ b/sc64_8h.html @@ -0,0 +1,101 @@ + + + + + + + +N64FlashcartMenu: sc64.h File Reference + + + + + + + + + +
+
+ + + + + + +
+
N64FlashcartMenu +
+
+
+ + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+ +
sc64.h File Reference
+
+
+ +

SC64 flashcart support. +More...

+ +

Go to the source code of this file.

+ + + + +

+Functions

+flashcart_tsc64_get_flashcart (void)
 
+

Detailed Description

+

SC64 flashcart support.

+
+ + + + diff --git a/sc64_8h_source.html b/sc64_8h_source.html index 3fb5027d..56c635b5 100644 --- a/sc64_8h_source.html +++ b/sc64_8h_source.html @@ -76,22 +76,24 @@ $(function() {
sc64.h
-
1
+Go to the documentation of this file.
1
7#ifndef FLASHCART_SC64_H__
8#define FLASHCART_SC64_H__
9
10
11#include "../flashcart.h"
12
+
13
19flashcart_t *sc64_get_flashcart (void);
20 /* sc64 */
22
-
23#endif
+
23
+
24#endif
Flashcart Structure.
Definition: flashcart.h:41
diff --git a/sc64__ll_8h.html b/sc64__ll_8h.html new file mode 100644 index 00000000..24256873 --- /dev/null +++ b/sc64__ll_8h.html @@ -0,0 +1,231 @@ + + + + + + + +N64FlashcartMenu: sc64_ll.h File Reference + + + + + + + + + +
+
+ + + + + + +
+
N64FlashcartMenu +
+
+
+ + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+ +
sc64_ll.h File Reference
+
+
+ +

SC64 flashcart low level access. +More...

+ +

Go to the source code of this file.

+ + + + +

+Data Structures

struct  sc64_buffers_t
 
+ + + + + +

+Macros

+#define SC64_BUFFERS_BASE   (0x1FFE0000UL)
 
+#define SC64_BUFFERS   ((sc64_buffers_t *) SC64_BUFFERS_BASE)
 
+ + + + + + + + + + + + + + + + + + + + + +

+Enumerations

enum  sc64_error_t {
+  SC64_OK +, SC64_ERROR_BAD_ARGUMENT +, SC64_ERROR_BAD_ADDRESS +, SC64_ERROR_BAD_CONFIG_ID +,
+  SC64_ERROR_TIMEOUT +, SC64_ERROR_SD_CARD +, SC64_ERROR_UNKNOWN_CMD = -1 +
+ }
 
enum  sc64_cfg_id_t {
+  CFG_ID_BOOTLOADER_SWITCH +, CFG_ID_ROM_WRITE_ENABLE +, CFG_ID_ROM_SHADOW_ENABLE +, CFG_ID_DD_MODE +,
+  CFG_ID_ISV_ADDRESS +, CFG_ID_BOOT_MODE +, CFG_ID_SAVE_TYPE +, CFG_ID_CIC_SEED +,
+  CFG_ID_TV_TYPE +, CFG_ID_DD_SD_ENABLE +, CFG_ID_DD_DRIVE_TYPE +, CFG_ID_DD_DISK_STATE +,
+  CFG_ID_BUTTON_STATE +, CFG_ID_BUTTON_MODE +, CFG_ID_ROM_EXTENDED_ENABLE +
+ }
 
enum  sc64_dd_mode_t { DD_MODE_DISABLED = 0 +, DD_MODE_REGS = 1 +, DD_MODE_IPL = 2 +, DD_MODE_FULL = 3 + }
 
enum  sc64_boot_mode_t {
+  BOOT_MODE_MENU = 0 +, BOOT_MODE_ROM = 1 +, BOOT_MODE_DDIPL = 2 +, BOOT_MODE_DIRECT_ROM = 3 +,
+  BOOT_MODE_DIRECT_DDIPL = 4 +
+ }
 
enum  sc64_save_type_t {
+  SAVE_TYPE_NONE +, SAVE_TYPE_EEPROM_4K +, SAVE_TYPE_EEPROM_16K +, SAVE_TYPE_SRAM +,
+  SAVE_TYPE_FLASHRAM +, SAVE_TYPE_SRAM_BANKED +, SAVE_TYPE_SRAM_128K +
+ }
 
enum  sc64_cic_seed_t { CIC_SEED_AUTO = 0xFFFF + }
 
enum  sc64_tv_type_t { TV_TYPE_PAL = 0 +, TV_TYPE_NTSC = 1 +, TV_TYPE_MPAL = 2 +, TV_TYPE_PASSTHROUGH = 3 + }
 
enum  sc64_drive_type_t { DRIVE_TYPE_RETAIL +, DRIVE_TYPE_DEVELOPMENT + }
 
enum  sc64_disk_state_t { DISK_STATE_EJECTED +, DISK_STATE_INSERTED +, DISK_STATE_CHANGED + }
 
enum  sc64_button_mode_t { BUTTON_MODE_NONE +, BUTTON_MODE_N64_IRQ +, BUTTON_MODE_USB_PACKET +, BUTTON_MODE_DD_DISK_SWAP + }
 
+ + + + + + + + + + + + + + + + + + + +

+Functions

+void sc64_ll_lock (void)
 
+sc64_error_t sc64_ll_get_version (uint16_t *major, uint16_t *minor, uint32_t *revision)
 
+sc64_error_t sc64_ll_get_config (sc64_cfg_id_t cfg, uint32_t *value)
 
+sc64_error_t sc64_ll_set_config (sc64_cfg_id_t cfg, uint32_t value)
 
+sc64_error_t sc64_ll_writeback_pending (bool *pending)
 
+sc64_error_t sc64_ll_writeback_enable (void *address)
 
+sc64_error_t sc64_ll_flash_wait_busy (void)
 
+sc64_error_t sc64_ll_flash_get_erase_block_size (size_t *erase_block_size)
 
+sc64_error_t sc64_ll_flash_erase_block (void *address)
 
+

Detailed Description

+

SC64 flashcart low level access.

+
+ + + + diff --git a/sc64__internal_8h_source.html b/sc64__ll_8h_source.html similarity index 63% rename from sc64__internal_8h_source.html rename to sc64__ll_8h_source.html index 13452f1a..311c1a1a 100644 --- a/sc64__internal_8h_source.html +++ b/sc64__ll_8h_source.html @@ -5,7 +5,7 @@ -N64FlashcartMenu: sc64_internal.h Source File +N64FlashcartMenu: sc64_ll.h Source File @@ -73,128 +73,130 @@ $(function() {
-
sc64_internal.h
+
sc64_ll.h
-
1
-
7#ifndef FLASHCART_SC64_INTERNAL_H__
-
8#define FLASHCART_SC64_INTERNAL_H__
+Go to the documentation of this file.
1
+
7#ifndef FLASHCART_SC64_LL_H__
+
8#define FLASHCART_SC64_LL_H__
9
10
11#include <stddef.h>
12#include <stdint.h>
13
-
19typedef struct {
-
20 uint8_t BUFFER[8192];
-
21 uint8_t EEPROM[2048];
-
22 uint8_t DD_SECTOR[256];
-
23 uint8_t FLASHRAM[128];
- -
25
-
26#define SC64_BUFFERS_BASE (0x1FFE0000UL)
-
27#define SC64_BUFFERS ((sc64_buffers_t *) SC64_BUFFERS_BASE)
-
28
+
14
+
20typedef struct {
+
21 uint8_t BUFFER[8192];
+
22 uint8_t EEPROM[2048];
+
23 uint8_t DD_SECTOR[256];
+
24 uint8_t FLASHRAM[128];
+ +
26
+
27#define SC64_BUFFERS_BASE (0x1FFE0000UL)
+
28#define SC64_BUFFERS ((sc64_buffers_t *) SC64_BUFFERS_BASE)
29
-
30typedef enum {
-
31 SC64_OK,
-
32 SC64_ERROR_BAD_ARGUMENT,
-
33 SC64_ERROR_BAD_ADDRESS,
-
34 SC64_ERROR_BAD_CONFIG_ID,
-
35 SC64_ERROR_TIMEOUT,
-
36 SC64_ERROR_SD_CARD,
-
37 SC64_ERROR_UNKNOWN_CMD = -1
-
38} sc64_error_t;
-
39
-
40typedef enum {
-
41 CFG_BOOTLOADER_SWITCH,
-
42 CFG_ROM_WRITE_ENABLE,
-
43 CFG_ROM_SHADOW_ENABLE,
-
44 CFG_DD_MODE,
-
45 CFG_ISV_ADDRESS,
-
46 CFG_BOOT_MODE,
-
47 CFG_SAVE_TYPE,
-
48 CFG_CIC_SEED,
-
49 CFG_TV_TYPE,
-
50 CFG_DD_SD_ENABLE,
-
51 CFG_DD_DRIVE_TYPE,
-
52 CFG_DD_DISK_STATE,
-
53 CFG_BUTTON_STATE,
-
54 CFG_BUTTON_MODE,
-
55 CFG_ROM_EXTENDED_ENABLE,
-
56} sc64_cfg_t;
-
57
-
58typedef enum {
-
59 DD_MODE_DISABLED = 0,
-
60 DD_MODE_REGS = 1,
-
61 DD_MODE_IPL = 2,
-
62 DD_MODE_FULL = 3
-
63} sc64_dd_mode_t;
-
64
-
65typedef enum {
-
66 BOOT_MODE_MENU = 0,
-
67 BOOT_MODE_ROM = 1,
-
68 BOOT_MODE_DDIPL = 2,
-
69 BOOT_MODE_DIRECT_ROM = 3,
-
70 BOOT_MODE_DIRECT_DDIPL = 4,
-
71} sc64_boot_mode_t;
-
72
-
73typedef enum {
-
74 SAVE_TYPE_NONE,
-
75 SAVE_TYPE_EEPROM_4K,
-
76 SAVE_TYPE_EEPROM_16K,
-
77 SAVE_TYPE_SRAM,
-
78 SAVE_TYPE_FLASHRAM,
-
79 SAVE_TYPE_SRAM_BANKED,
-
80 SAVE_TYPE_SRAM_128K,
-
81} sc64_save_type_t;
-
82
-
83typedef enum {
-
84 CIC_SEED_AUTO = 0xFFFF
-
85} sc64_cic_seed_t;
-
86
-
87typedef enum {
-
88 TV_TYPE_PAL = 0,
-
89 TV_TYPE_NTSC = 1,
-
90 TV_TYPE_MPAL = 2,
-
91 TV_TYPE_PASSTHROUGH = 3
-
92} sc64_tv_type_t;
-
93
-
94typedef enum {
-
95 DRIVE_TYPE_RETAIL,
-
96 DRIVE_TYPE_DEVELOPMENT,
-
97} sc64_drive_type_t;
-
98
-
99typedef enum {
-
100 DISK_STATE_EJECTED,
-
101 DISK_STATE_INSERTED,
-
102 DISK_STATE_CHANGED,
-
103} sc64_disk_state_t;
-
104
-
105typedef enum {
-
106 BUTTON_MODE_NONE,
-
107 BUTTON_MODE_N64_IRQ,
-
108 BUTTON_MODE_USB_PACKET,
-
109 BUTTON_MODE_DD_DISK_SWAP,
-
110} sc64_button_mode_t;
-
111
+
30
+
31typedef enum {
+
32 SC64_OK,
+
33 SC64_ERROR_BAD_ARGUMENT,
+
34 SC64_ERROR_BAD_ADDRESS,
+
35 SC64_ERROR_BAD_CONFIG_ID,
+
36 SC64_ERROR_TIMEOUT,
+
37 SC64_ERROR_SD_CARD,
+
38 SC64_ERROR_UNKNOWN_CMD = -1
+
39} sc64_error_t;
+
40
+
41typedef enum {
+
42 CFG_ID_BOOTLOADER_SWITCH,
+
43 CFG_ID_ROM_WRITE_ENABLE,
+
44 CFG_ID_ROM_SHADOW_ENABLE,
+
45 CFG_ID_DD_MODE,
+
46 CFG_ID_ISV_ADDRESS,
+
47 CFG_ID_BOOT_MODE,
+
48 CFG_ID_SAVE_TYPE,
+
49 CFG_ID_CIC_SEED,
+
50 CFG_ID_TV_TYPE,
+
51 CFG_ID_DD_SD_ENABLE,
+
52 CFG_ID_DD_DRIVE_TYPE,
+
53 CFG_ID_DD_DISK_STATE,
+
54 CFG_ID_BUTTON_STATE,
+
55 CFG_ID_BUTTON_MODE,
+
56 CFG_ID_ROM_EXTENDED_ENABLE,
+
57} sc64_cfg_id_t;
+
58
+
59typedef enum {
+
60 DD_MODE_DISABLED = 0,
+
61 DD_MODE_REGS = 1,
+
62 DD_MODE_IPL = 2,
+
63 DD_MODE_FULL = 3
+
64} sc64_dd_mode_t;
+
65
+
66typedef enum {
+
67 BOOT_MODE_MENU = 0,
+
68 BOOT_MODE_ROM = 1,
+
69 BOOT_MODE_DDIPL = 2,
+
70 BOOT_MODE_DIRECT_ROM = 3,
+
71 BOOT_MODE_DIRECT_DDIPL = 4,
+
72} sc64_boot_mode_t;
+
73
+
74typedef enum {
+
75 SAVE_TYPE_NONE,
+
76 SAVE_TYPE_EEPROM_4K,
+
77 SAVE_TYPE_EEPROM_16K,
+
78 SAVE_TYPE_SRAM,
+
79 SAVE_TYPE_FLASHRAM,
+
80 SAVE_TYPE_SRAM_BANKED,
+
81 SAVE_TYPE_SRAM_128K,
+
82} sc64_save_type_t;
+
83
+
84typedef enum {
+
85 CIC_SEED_AUTO = 0xFFFF
+
86} sc64_cic_seed_t;
+
87
+
88typedef enum {
+
89 TV_TYPE_PAL = 0,
+
90 TV_TYPE_NTSC = 1,
+
91 TV_TYPE_MPAL = 2,
+
92 TV_TYPE_PASSTHROUGH = 3
+
93} sc64_tv_type_t;
+
94
+
95typedef enum {
+
96 DRIVE_TYPE_RETAIL,
+
97 DRIVE_TYPE_DEVELOPMENT,
+
98} sc64_drive_type_t;
+
99
+
100typedef enum {
+
101 DISK_STATE_EJECTED,
+
102 DISK_STATE_INSERTED,
+
103 DISK_STATE_CHANGED,
+
104} sc64_disk_state_t;
+
105
+
106typedef enum {
+
107 BUTTON_MODE_NONE,
+
108 BUTTON_MODE_N64_IRQ,
+
109 BUTTON_MODE_USB_PACKET,
+
110 BUTTON_MODE_DD_DISK_SWAP,
+
111} sc64_button_mode_t;
112
-
113void sc64_lock (void);
-
114sc64_error_t sc64_get_version (uint16_t *major, uint16_t *minor, uint32_t *revision);
-
115sc64_error_t sc64_get_config (sc64_cfg_t cfg, uint32_t *value);
-
116sc64_error_t sc64_set_config (sc64_cfg_t cfg, uint32_t value);
-
117sc64_error_t sc64_writeback_pending (bool *pending);
-
118sc64_error_t sc64_writeback_enable (void *address);
-
119sc64_error_t sc64_flash_wait_busy (void);
-
120sc64_error_t sc64_flash_get_erase_block_size (size_t *erase_block_size);
-
121sc64_error_t sc64_flash_erase_block (void *address);
-
122 /* sc64 */
-
124
-
125#endif
-
Definition: sc64_internal.h:19
+
113
+
114void sc64_ll_lock (void);
+
115sc64_error_t sc64_ll_get_version (uint16_t *major, uint16_t *minor, uint32_t *revision);
+
116sc64_error_t sc64_ll_get_config (sc64_cfg_id_t cfg, uint32_t *value);
+
117sc64_error_t sc64_ll_set_config (sc64_cfg_id_t cfg, uint32_t value);
+
118sc64_error_t sc64_ll_writeback_pending (bool *pending);
+
119sc64_error_t sc64_ll_writeback_enable (void *address);
+
120sc64_error_t sc64_ll_flash_wait_busy (void);
+
121sc64_error_t sc64_ll_flash_get_erase_block_size (size_t *erase_block_size);
+
122sc64_error_t sc64_ll_flash_erase_block (void *address);
+
123 /* sc64 */
+
125
+
126
+
127#endif
+
Definition: sc64_ll.h:20
diff --git a/search/all_d.js b/search/all_d.js index 8491fb22..5dc0fb0c 100644 --- a/search/all_d.js +++ b/search/all_d.js @@ -1,13 +1,15 @@ var searchData= [ ['sc64_0',['Sc64',['../group__sc64.html',1,'']]], - ['sc64_5fbuffers_5ft_1',['sc64_buffers_t',['../group__sc64.html#structsc64__buffers__t',1,'']]], - ['sc64_5fcmd_5ft_2',['sc64_cmd_t',['../structsc64__cmd__t.html',1,'']]], - ['sc64_5fregs_5ft_3',['sc64_regs_t',['../structsc64__regs__t.html',1,'']]], - ['sdk_5fversion_4',['sdk_version',['../rom__database_8h.html#a0115fe44deda826f21523f83edefd517',1,'rom_header_t']]], - ['settings_2eh_5',['settings.h',['../settings_8h.html',1,'']]], - ['settings_5ft_6',['settings_t',['../settings_8h.html#structsettings__t',1,'']]], - ['show_5fhidden_5ffiles_7',['show_hidden_files',['../settings_8h.html#a7f6db7abffab57f3879660afc7187108',1,'settings_t']]], - ['sp_5fmem_5ft_8',['sp_mem_t',['../boot__io_8h.html#structsp__mem__t',1,'']]], - ['sp_5fregs_5ft_9',['sp_regs_t',['../boot__io_8h.html#structsp__regs__t',1,'']]] + ['sc64_2eh_1',['sc64.h',['../sc64_8h.html',1,'']]], + ['sc64_5fbuffers_5ft_2',['sc64_buffers_t',['../group__sc64.html#structsc64__buffers__t',1,'']]], + ['sc64_5fcmd_5ft_3',['sc64_cmd_t',['../structsc64__cmd__t.html',1,'']]], + ['sc64_5fll_2eh_4',['sc64_ll.h',['../sc64__ll_8h.html',1,'']]], + ['sc64_5fregs_5ft_5',['sc64_regs_t',['../structsc64__regs__t.html',1,'']]], + ['sdk_5fversion_6',['sdk_version',['../rom__database_8h.html#a0115fe44deda826f21523f83edefd517',1,'rom_header_t']]], + ['settings_2eh_7',['settings.h',['../settings_8h.html',1,'']]], + ['settings_5ft_8',['settings_t',['../settings_8h.html#structsettings__t',1,'']]], + ['show_5fhidden_5ffiles_9',['show_hidden_files',['../settings_8h.html#a7f6db7abffab57f3879660afc7187108',1,'settings_t']]], + ['sp_5fmem_5ft_10',['sp_mem_t',['../boot__io_8h.html#structsp__mem__t',1,'']]], + ['sp_5fregs_5ft_11',['sp_regs_t',['../boot__io_8h.html#structsp__regs__t',1,'']]] ]; diff --git a/search/files_7.js b/search/files_7.js index 6ab868af..7e75eaa2 100644 --- a/search/files_7.js +++ b/search/files_7.js @@ -1,4 +1,6 @@ var searchData= [ - ['settings_2eh_0',['settings.h',['../settings_8h.html',1,'']]] + ['sc64_2eh_0',['sc64.h',['../sc64_8h.html',1,'']]], + ['sc64_5fll_2eh_1',['sc64_ll.h',['../sc64__ll_8h.html',1,'']]], + ['settings_2eh_2',['settings.h',['../settings_8h.html',1,'']]] ]; diff --git a/settings_8h.html b/settings_8h.html index 6634b00c..12310929 100644 --- a/settings_8h.html +++ b/settings_8h.html @@ -142,7 +142,7 @@ Default directory to navigate to when menu loads.
diff --git a/settings_8h_source.html b/settings_8h_source.html index 3f31ebb5..c8f5fe11 100644 --- a/settings_8h_source.html +++ b/settings_8h_source.html @@ -102,7 +102,7 @@ $(function() { diff --git a/structcache__metadata__t.html b/structcache__metadata__t.html index 9435d7a8..846fcfac 100644 --- a/structcache__metadata__t.html +++ b/structcache__metadata__t.html @@ -153,7 +153,7 @@ uint32_t size diff --git a/structcomponent__background__t.html b/structcomponent__background__t.html index 7c80018a..294b3140 100644 --- a/structcomponent__background__t.html +++ b/structcomponent__background__t.html @@ -136,7 +136,7 @@ rspq_block_t * image_displ diff --git a/structflashcart__t.html b/structflashcart__t.html index 44411dce..57319f0c 100644 --- a/structflashcart__t.html +++ b/structflashcart__t.html @@ -112,7 +112,7 @@ Data Fields diff --git a/structipl3__crc32__t.html b/structipl3__crc32__t.html index e60df51b..19ae2087 100644 --- a/structipl3__crc32__t.html +++ b/structipl3__crc32__t.html @@ -119,7 +119,7 @@ const uint8_t seed diff --git a/structmp3player__t.html b/structmp3player__t.html index af419a4e..74e48f2d 100644 --- a/structmp3player__t.html +++ b/structmp3player__t.html @@ -289,7 +289,7 @@ waveform_t wave diff --git a/structpng__decoder__t.html b/structpng__decoder__t.html index be2a74d6..818cc4c8 100644 --- a/structpng__decoder__t.html +++ b/structpng__decoder__t.html @@ -221,7 +221,7 @@ void * callback_data diff --git a/structsc64__cmd__t.html b/structsc64__cmd__t.html index c8dabaaf..11656489 100644 --- a/structsc64__cmd__t.html +++ b/structsc64__cmd__t.html @@ -131,12 +131,12 @@ uint32_t rsp [2]<
The documentation for this struct was generated from the following file: diff --git a/structsc64__regs__t.html b/structsc64__regs__t.html index 7d0201ec..bd908b01 100644 --- a/structsc64__regs__t.html +++ b/structsc64__regs__t.html @@ -148,12 +148,12 @@ uint32_t KEY
The documentation for this struct was generated from the following file: diff --git a/utils_8h_source.html b/utils_8h_source.html index 0414262a..32cd4143 100644 --- a/utils_8h_source.html +++ b/utils_8h_source.html @@ -93,7 +93,7 @@ $(function() { diff --git a/views_8h.html b/views_8h.html index db4ea578..108dc723 100644 --- a/views_8h.html +++ b/views_8h.html @@ -161,7 +161,7 @@ void menu_show_error ( diff --git a/views_8h_source.html b/views_8h_source.html index e25c32e9..aa3f753c 100644 --- a/views_8h_source.html +++ b/views_8h_source.html @@ -127,7 +127,7 @@ $(function() {