N64FlashcartMenu/sc64__ll_8h.html

232 lines
14 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>N64FlashcartMenu: sc64_ll.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">N64FlashcartMenu
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_abdc04f88b2866c1353f358c089205e4.html">flashcart</a></li><li class="navelem"><a class="el" href="dir_4ad298de6e9dc10146d0378a1888b2cb.html">sc64</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">sc64_ll.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>SC64 flashcart low level access.
<a href="#details">More...</a></p>
<p><a href="sc64__ll_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:structsc64__buffers__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__sc64.html#structsc64__buffers__t">sc64_buffers_t</a></td></tr>
<tr class="separator:structsc64__buffers__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga00b6faab3e388d629772cdbbfb3f6c10"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>SC64_BUFFERS_BASE</b>&#160;&#160;&#160;(0x1FFE0000UL)</td></tr>
<tr class="separator:ga00b6faab3e388d629772cdbbfb3f6c10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga26d7f62fa678076c416bae5e67a57c5d"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>SC64_BUFFERS</b>&#160;&#160;&#160;((<a class="el" href="group__sc64.html#structsc64__buffers__t">sc64_buffers_t</a> *) SC64_BUFFERS_BASE)</td></tr>
<tr class="separator:ga26d7f62fa678076c416bae5e67a57c5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gad70dee817cc88e101b1908687b025138"><td class="memItemLeft" align="right" valign="top"><a id="gad70dee817cc88e101b1908687b025138" name="gad70dee817cc88e101b1908687b025138"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>sc64_error_t</b> { <br />
&#160;&#160;<b>SC64_OK</b>
, <b>SC64_ERROR_BAD_ARGUMENT</b>
, <b>SC64_ERROR_BAD_ADDRESS</b>
, <b>SC64_ERROR_BAD_CONFIG_ID</b>
, <br />
&#160;&#160;<b>SC64_ERROR_TIMEOUT</b>
, <b>SC64_ERROR_SD_CARD</b>
, <b>SC64_ERROR_UNKNOWN_CMD</b> = -1
<br />
}</td></tr>
<tr class="separator:gad70dee817cc88e101b1908687b025138"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab7be84b75181fe054592353f012ca6d0"><td class="memItemLeft" align="right" valign="top"><a id="gab7be84b75181fe054592353f012ca6d0" name="gab7be84b75181fe054592353f012ca6d0"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>sc64_cfg_id_t</b> { <br />
&#160;&#160;<b>CFG_ID_BOOTLOADER_SWITCH</b>
, <b>CFG_ID_ROM_WRITE_ENABLE</b>
, <b>CFG_ID_ROM_SHADOW_ENABLE</b>
, <b>CFG_ID_DD_MODE</b>
, <br />
&#160;&#160;<b>CFG_ID_ISV_ADDRESS</b>
, <b>CFG_ID_BOOT_MODE</b>
, <b>CFG_ID_SAVE_TYPE</b>
, <b>CFG_ID_CIC_SEED</b>
, <br />
&#160;&#160;<b>CFG_ID_TV_TYPE</b>
, <b>CFG_ID_DD_SD_ENABLE</b>
, <b>CFG_ID_DD_DRIVE_TYPE</b>
, <b>CFG_ID_DD_DISK_STATE</b>
, <br />
&#160;&#160;<b>CFG_ID_BUTTON_STATE</b>
, <b>CFG_ID_BUTTON_MODE</b>
, <b>CFG_ID_ROM_EXTENDED_ENABLE</b>
<br />
}</td></tr>
<tr class="separator:gab7be84b75181fe054592353f012ca6d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga26d88432c544c1daf0be2335199b0854"><td class="memItemLeft" align="right" valign="top"><a id="ga26d88432c544c1daf0be2335199b0854" name="ga26d88432c544c1daf0be2335199b0854"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>sc64_dd_mode_t</b> { <b>DD_MODE_DISABLED</b> = 0
, <b>DD_MODE_REGS</b> = 1
, <b>DD_MODE_IPL</b> = 2
, <b>DD_MODE_FULL</b> = 3
}</td></tr>
<tr class="separator:ga26d88432c544c1daf0be2335199b0854"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4fc6e6ea26473957f4720f59f69b934e"><td class="memItemLeft" align="right" valign="top"><a id="ga4fc6e6ea26473957f4720f59f69b934e" name="ga4fc6e6ea26473957f4720f59f69b934e"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>sc64_boot_mode_t</b> { <br />
&#160;&#160;<b>BOOT_MODE_MENU</b> = 0
, <b>BOOT_MODE_ROM</b> = 1
, <b>BOOT_MODE_DDIPL</b> = 2
, <b>BOOT_MODE_DIRECT_ROM</b> = 3
, <br />
&#160;&#160;<b>BOOT_MODE_DIRECT_DDIPL</b> = 4
<br />
}</td></tr>
<tr class="separator:ga4fc6e6ea26473957f4720f59f69b934e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaba7e686f2ef7ea48b82e33a73a513b95"><td class="memItemLeft" align="right" valign="top"><a id="gaba7e686f2ef7ea48b82e33a73a513b95" name="gaba7e686f2ef7ea48b82e33a73a513b95"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>sc64_save_type_t</b> { <br />
&#160;&#160;<b>SAVE_TYPE_NONE</b>
, <b>SAVE_TYPE_EEPROM_4K</b>
, <b>SAVE_TYPE_EEPROM_16K</b>
, <b>SAVE_TYPE_SRAM</b>
, <br />
&#160;&#160;<b>SAVE_TYPE_FLASHRAM</b>
, <b>SAVE_TYPE_SRAM_BANKED</b>
, <b>SAVE_TYPE_SRAM_128K</b>
<br />
}</td></tr>
<tr class="separator:gaba7e686f2ef7ea48b82e33a73a513b95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa28abddc922566c4a043b87b47a21ee9"><td class="memItemLeft" align="right" valign="top"><a id="gaa28abddc922566c4a043b87b47a21ee9" name="gaa28abddc922566c4a043b87b47a21ee9"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>sc64_cic_seed_t</b> { <b>CIC_SEED_AUTO</b> = 0xFFFF
}</td></tr>
<tr class="separator:gaa28abddc922566c4a043b87b47a21ee9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5d5735c93d55472c57ba3436bb724a7e"><td class="memItemLeft" align="right" valign="top"><a id="ga5d5735c93d55472c57ba3436bb724a7e" name="ga5d5735c93d55472c57ba3436bb724a7e"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>sc64_tv_type_t</b> { <b>TV_TYPE_PAL</b> = 0
, <b>TV_TYPE_NTSC</b> = 1
, <b>TV_TYPE_MPAL</b> = 2
, <b>TV_TYPE_PASSTHROUGH</b> = 3
}</td></tr>
<tr class="separator:ga5d5735c93d55472c57ba3436bb724a7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7274e47ae7e8ec1cb99e0ebd10e1a6df"><td class="memItemLeft" align="right" valign="top"><a id="ga7274e47ae7e8ec1cb99e0ebd10e1a6df" name="ga7274e47ae7e8ec1cb99e0ebd10e1a6df"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>sc64_drive_type_t</b> { <b>DRIVE_TYPE_RETAIL</b>
, <b>DRIVE_TYPE_DEVELOPMENT</b>
}</td></tr>
<tr class="separator:ga7274e47ae7e8ec1cb99e0ebd10e1a6df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4d939d07904cc93a638c25152b8be055"><td class="memItemLeft" align="right" valign="top"><a id="ga4d939d07904cc93a638c25152b8be055" name="ga4d939d07904cc93a638c25152b8be055"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>sc64_disk_state_t</b> { <b>DISK_STATE_EJECTED</b>
, <b>DISK_STATE_INSERTED</b>
, <b>DISK_STATE_CHANGED</b>
}</td></tr>
<tr class="separator:ga4d939d07904cc93a638c25152b8be055"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga813206271f5521b500a359ba0cd52fef"><td class="memItemLeft" align="right" valign="top"><a id="ga813206271f5521b500a359ba0cd52fef" name="ga813206271f5521b500a359ba0cd52fef"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>sc64_button_mode_t</b> { <b>BUTTON_MODE_NONE</b>
, <b>BUTTON_MODE_N64_IRQ</b>
, <b>BUTTON_MODE_USB_PACKET</b>
, <b>BUTTON_MODE_DD_DISK_SWAP</b>
}</td></tr>
<tr class="separator:ga813206271f5521b500a359ba0cd52fef"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga2513d563c6a2ca2914e5b9d4b1dbecd8"><td class="memItemLeft" align="right" valign="top">
void&#160;</td><td class="memItemRight" valign="bottom"><b>sc64_ll_lock</b> (void)</td></tr>
<tr class="separator:ga2513d563c6a2ca2914e5b9d4b1dbecd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1f48899ab5f6030cd4cac064d3aa6ab3"><td class="memItemLeft" align="right" valign="top">
sc64_error_t&#160;</td><td class="memItemRight" valign="bottom"><b>sc64_ll_get_version</b> (uint16_t *major, uint16_t *minor, uint32_t *revision)</td></tr>
<tr class="separator:ga1f48899ab5f6030cd4cac064d3aa6ab3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga183b844a2f8e455e55d23760cc9acb6d"><td class="memItemLeft" align="right" valign="top">
sc64_error_t&#160;</td><td class="memItemRight" valign="bottom"><b>sc64_ll_get_config</b> (sc64_cfg_id_t cfg, uint32_t *value)</td></tr>
<tr class="separator:ga183b844a2f8e455e55d23760cc9acb6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf917620b1dece7ad0d76f0784a49155e"><td class="memItemLeft" align="right" valign="top">
sc64_error_t&#160;</td><td class="memItemRight" valign="bottom"><b>sc64_ll_set_config</b> (sc64_cfg_id_t cfg, uint32_t value)</td></tr>
<tr class="separator:gaf917620b1dece7ad0d76f0784a49155e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0ad9cabd1f51bd126706beccfe38eef2"><td class="memItemLeft" align="right" valign="top">
sc64_error_t&#160;</td><td class="memItemRight" valign="bottom"><b>sc64_ll_writeback_pending</b> (bool *pending)</td></tr>
<tr class="separator:ga0ad9cabd1f51bd126706beccfe38eef2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5b53fdc17c5085c537d69d3a5634dfd8"><td class="memItemLeft" align="right" valign="top">
sc64_error_t&#160;</td><td class="memItemRight" valign="bottom"><b>sc64_ll_writeback_enable</b> (void *address)</td></tr>
<tr class="separator:ga5b53fdc17c5085c537d69d3a5634dfd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga29696f62aa79398918d47ddb4be561b4"><td class="memItemLeft" align="right" valign="top">
sc64_error_t&#160;</td><td class="memItemRight" valign="bottom"><b>sc64_ll_flash_wait_busy</b> (void)</td></tr>
<tr class="separator:ga29696f62aa79398918d47ddb4be561b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad3067d455aa53169a8827bcf0b12d46f"><td class="memItemLeft" align="right" valign="top">
sc64_error_t&#160;</td><td class="memItemRight" valign="bottom"><b>sc64_ll_flash_get_erase_block_size</b> (size_t *erase_block_size)</td></tr>
<tr class="separator:gad3067d455aa53169a8827bcf0b12d46f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaedbe9352c3c96cb1d2feca0863142704"><td class="memItemLeft" align="right" valign="top">
sc64_error_t&#160;</td><td class="memItemRight" valign="bottom"><b>sc64_ll_flash_erase_block</b> (void *address)</td></tr>
<tr class="separator:gaedbe9352c3c96cb1d2feca0863142704"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >SC64 flashcart low level access. </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Aug 20 2023 20:03:41 for N64FlashcartMenu by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>