350 lines
66 KiB
HTML
350 lines
66 KiB
HTML
<!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">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.9.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>libctru: include/3ds/services/nfc.h Source File</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 style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">libctru
|
|
 <span id="projectnumber">v2.4.1</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.1 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(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">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_d475325f6a9fe3bfc3a495c72a9e475e.html">3ds</a></li><li class="navelem"><a class="el" href="dir_0e005207343684f6967052d1f51a7e66.html">services</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">nfc.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="nfc_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * @file nfc.h</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * @brief NFC service. This can only be used with system-version >=9.3.0-X.</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">/// This is returned when the current state is invalid for this command.</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="nfc_8h.html#ad13ff10463dc54dafdb68fe33f97fa72"> 8</a></span> <span class="comment"></span><span class="preprocessor">#define NFC_ERR_INVALID_STATE 0xC8A17600</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">/// This is returned by nfcOpenAppData() when the appdata is uninitialized since nfcInitializeWriteAppData() wasn't used previously.</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="nfc_8h.html#a874ef45433da4582948a692fab7225ba"> 11</a></span> <span class="comment"></span><span class="preprocessor">#define NFC_ERR_APPDATA_UNINITIALIZED 0xC8A17620</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">/// This is returned by nfcGetAmiiboSettings() when the amiibo wasn't setup by the amiibo Settings applet.</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="nfc_8h.html#a1933b382f5960700e016b8f5a20c420b"> 14</a></span> <span class="comment"></span><span class="preprocessor">#define NFC_ERR_AMIIBO_NOTSETUP 0xC8A17628</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">/// This is returned by nfcOpenAppData() when the input AppID doesn't match the actual amiibo AppID.</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="nfc_8h.html#af62d4461851c683739a4154a95bcbe64"> 17</a></span> <span class="comment"></span><span class="preprocessor">#define NFC_ERR_APPID_MISMATCH 0xC8A17638</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">/// "Returned for HMAC-hash mismatch(data corruption), with HMAC-calculation input_buffer_size=0x34."</span></div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="nfc_8h.html#a71f20a0149822130f47496369e8ac446"> 20</a></span> <span class="comment"></span><span class="preprocessor">#define NFC_ERR_DATACORRUPTION0 0xC8C1760C</span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">/// HMAC-hash mismatch with input_buffer_size=0x1DF, see here: https://www.3dbrew.org/wiki/Amiibo</span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="nfc_8h.html#a07acea106acdf958061b9b8e74fa05d0"> 23</a></span> <span class="comment"></span><span class="preprocessor">#define NFC_ERR_DATACORRUPTION1 0xC8A17618</span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">/// This can be used for nfcStartScanning().</span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="nfc_8h.html#a74193ef260c5a8942d77835636e4f36c"> 26</a></span> <span class="comment"></span><span class="preprocessor">#define NFC_STARTSCAN_DEFAULTINPUT 0</span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">/// NFC operation type.</span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="nfc_8h.html#a9eece04c91681b888fb1fa0744944cd7"> 29</a></span> <span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  NFC_OpType_1 = 1, <span class="comment">/// Unknown.</span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="nfc_8h.html#a9eece04c91681b888fb1fa0744944cd7a0cd7ce431e3b1f84d93ae5f1c60fa8b7"> 31</a></span>  <a class="code" href="nfc_8h.html#a9eece04c91681b888fb1fa0744944cd7a0cd7ce431e3b1f84d93ae5f1c60fa8b7">NFC_OpType_NFCTag</a> = 2, <span class="comment">/// This is the default.</span></div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <a class="code" href="nfc_8h.html#a9eece04c91681b888fb1fa0744944cd7a4dfe8836eb56105d0b7a3f84c615ffb3">NFC_OpType_RawNFC</a> = 3 <span class="comment">/// Use Raw NFC tag commands. Only available with >=10.0.0-X.</span></div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="nfc_8h.html#a9eece04c91681b888fb1fa0744944cd7a4dfe8836eb56105d0b7a3f84c615ffb3"> 33</a></span> } <a class="code" href="nfc_8h.html#a9eece04c91681b888fb1fa0744944cd7">NFC_OpType</a>;</div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48"> 35</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  NFC_TagState_Uninitialized = 0, <span class="comment">/// nfcInit() was not used yet.</span></div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48ab8076e3eb5dae8b8a6039bd5216bc00b"> 37</a></span>  <a class="code" href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48ab8076e3eb5dae8b8a6039bd5216bc00b">NFC_TagState_ScanningStopped</a> = 1, <span class="comment">/// Not currently scanning for NFC tags. Set by nfcStopScanning() and nfcInit(), when successful.</span></div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48aafac0dbd5b19fe620065ee0e0594e182"> 38</a></span>  <a class="code" href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48aafac0dbd5b19fe620065ee0e0594e182">NFC_TagState_Scanning</a> = 2, <span class="comment">/// Currently scanning for NFC tags. Set by nfcStartScanning() when successful.</span></div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48af5614df893e8dff6bed2e253e869073a"> 39</a></span>  <a class="code" href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48af5614df893e8dff6bed2e253e869073a">NFC_TagState_InRange</a> = 3, <span class="comment">/// NFC tag is in range. The state automatically changes to this when the state was previously value 2, without using any NFC service commands.</span></div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48a3724306f91d953f27676392d586144ed"> 40</a></span>  <a class="code" href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48a3724306f91d953f27676392d586144ed">NFC_TagState_OutOfRange</a> = 4, <span class="comment">/// NFC tag is now out of range, where the NFC tag was previously in range. This occurs automatically without using any NFC service commands. Once this state is entered, it won't automatically change to anything else when the tag is moved in range again. Hence, if you want to keep doing tag scanning after this, you must stop+start scanning.</span></div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48a05ee15a8c4822b2cfe6d5c609ef02069">NFC_TagState_DataReady</a> = 5 <span class="comment">/// NFC tag data was successfully loaded. This is set by nfcLoadAmiiboData() when successful.</span></div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48a05ee15a8c4822b2cfe6d5c609ef02069"> 42</a></span> } <a class="code" href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48">NFC_TagState</a>;</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment">/// Bit4-7 are always clear with nfcGetAmiiboSettings() due to "& 0xF".</span></div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment"></span><span class="keyword">enum</span> {</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  NFC_amiiboFlag_Setup = <a class="code" href="types_8h.html#a3a8ea58898cb58fc96013383d39f482c">BIT</a>(4), <span class="comment">/// This indicates that the amiibo was setup with amiibo Settings. nfcGetAmiiboSettings() will return an all-zero struct when this is not set.</span></div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <a class="code" href="nfc_8h.html#a9334a5b9057f32da96db9b5c6a045d67a16ce51e6a1dce2256d7a988d1dd9add4">NFC_amiiboFlag_AppDataSetup</a> = <a class="code" href="types_8h.html#a3a8ea58898cb58fc96013383d39f482c">BIT</a>(5) <span class="comment">/// This indicates that the AppData was previously initialized via nfcInitializeWriteAppData(), that function can't be used again with this flag already set.</span></div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="nfc_8h.html#a9334a5b9057f32da96db9b5c6a045d67a16ce51e6a1dce2256d7a988d1dd9add4"> 48</a></span> };</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structNFC__TagInfo.html"> 50</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> id_offset_size;<span class="comment">/// "u16 size/offset of the below ID data. Normally this is 0x7. When this is <=10, this field is the size of the below ID data. When this is >10, this is the offset of the 10-byte ID data, relative to structstart+4+<offsetfield-10>. It's unknown in what cases this 10-byte ID data is used."</span></div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structNFC__TagInfo.html#a60b976dafb0acafde87489bbcb98e8e9"> 52</a></span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> <a class="code" href="structNFC__TagInfo.html#a60b976dafb0acafde87489bbcb98e8e9">unk_x2</a>;<span class="comment">//"Unknown u8, normally 0x0."</span></div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> unk_x3;<span class="comment">//"Unknown u8, normally 0x2."</span></div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> <span class="keywordtype">id</span>[0x28];<span class="comment">//"ID data. When the above size field is 0x7, this is the 7-byte NFC tag UID, followed by all-zeros."</span></div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> } <a class="code" href="structNFC__TagInfo.html">NFC_TagInfo</a>;</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="comment">/// AmiiboSettings structure, see also here: https://3dbrew.org/wiki/NFC:GetAmiiboSettings</span></div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structNFC__AmiiboSettings.html"> 58</a></span> <span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> mii[0x60];<span class="comment">/// "Owner Mii."</span></div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="structNFC__AmiiboSettings.html#a8af186bc8f48b4b07a06553e3c1fbd96"> 60</a></span>  <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> nickname[11];<span class="comment">/// "UTF-16BE Amiibo nickname."</span></div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structNFC__AmiiboSettings.html#a0b5fdd43e05a1f74c6471e83a897f969"> 61</a></span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> <a class="code" href="structNFC__AmiiboSettings.html#a0b5fdd43e05a1f74c6471e83a897f969">flags</a>;<span class="comment">/// "This is plaintext_amiibosettingsdata[0] & 0xF." See also the NFC_amiiboFlag enums.</span></div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structNFC__AmiiboSettings.html#a5f2d5c9b2b91553eb461e8a8e8738068"> 62</a></span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> <a class="code" href="structNFC__AmiiboSettings.html#a5f2d5c9b2b91553eb461e8a8e8738068">countrycodeid</a>;<span class="comment">/// "This is plaintext_amiibosettingsdata[1]." "Country Code ID, from the system which setup this amiibo."</span></div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="structNFC__AmiiboSettings.html#a235d9f671be5710883e9cad51499df2b"> 63</a></span>  <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> <a class="code" href="structNFC__AmiiboSettings.html#a235d9f671be5710883e9cad51499df2b">setupdate_year</a>;</div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> setupdate_month;</div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> setupdate_day;</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> unk_x7c[0x2c];<span class="comment">//Normally all-zero?</span></div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> } <a class="code" href="structNFC__AmiiboSettings.html">NFC_AmiiboSettings</a>;</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment">/// AmiiboConfig structure, see also here: https://3dbrew.org/wiki/NFC:GetAmiiboConfig</span></div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structNFC__AmiiboConfig.html"> 70</a></span> <span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> lastwritedate_year;</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> lastwritedate_month;</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> lastwritedate_day;</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> write_counter;</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> characterID[3];<span class="comment">/// the first element is the collection ID, the second the character in this collection, the third the variant</span></div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structNFC__AmiiboConfig.html#a97b6c6ac32192aee1f00d1c02fa74cc3"> 76</a></span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> <a class="code" href="structNFC__AmiiboConfig.html#a97b6c6ac32192aee1f00d1c02fa74cc3">series</a>;<span class="comment">/// ID of the series</span></div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="structNFC__AmiiboConfig.html#a632f97fc779b373b7cd34d0379fbb739"> 77</a></span>  <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> <a class="code" href="structNFC__AmiiboConfig.html#a632f97fc779b373b7cd34d0379fbb739">amiiboID</a>;<span class="comment">/// ID shared by all exact same amiibo. Some amiibo are only distinguished by this one like regular SMB Series Mario and the gold one</span></div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structNFC__AmiiboConfig.html#a5487bb25ea68a55b6cdbf039ef0d0f47"> 78</a></span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> <a class="code" href="structNFC__AmiiboConfig.html#a5487bb25ea68a55b6cdbf039ef0d0f47">type</a>;<span class="comment">/// Type of amiibo 0 = figure, 1 = card, 2 = plush</span></div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structNFC__AmiiboConfig.html#a9f0d49ca13914f283b47014d366377c8"> 79</a></span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> <a class="code" href="structNFC__AmiiboConfig.html#a9f0d49ca13914f283b47014d366377c8">pagex4_byte3</a>;</div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> appdata_size;<span class="comment">/// "NFC module writes hard-coded u8 value 0xD8 here. This is the size of the Amiibo AppData, apps can use this with the AppData R/W commands. ..."</span></div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="structNFC__AmiiboConfig.html#aa1339708fef551f9e7d70727f9040f65"> 81</a></span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> zeros[0x30];<span class="comment">/// "Unused / reserved: this is cleared by NFC module but never written after that."</span></div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> } <a class="code" href="structNFC__AmiiboConfig.html">NFC_AmiiboConfig</a>;</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment">/// Used by nfcInitializeWriteAppData() internally, see also here: https://3dbrew.org/wiki/NFC:GetAppDataInitStruct</span></div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structNFC__AppDataInitStruct.html"> 85</a></span> <span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> data_x0[0xC];</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> data_xc[0x30];<span class="comment">/// "The data starting at struct offset 0xC is the 0x30-byte struct used by NFC:InitializeWriteAppData, sent by the user-process."</span></div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> } <a class="code" href="structNFC__AppDataInitStruct.html">NFC_AppDataInitStruct</a>;</div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment">/// Used by nfcWriteAppData() internally, see also: https://3dbrew.org/wiki/NFC:WriteAppData</span></div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structNFC__AppDataWriteStruct.html"> 91</a></span> <span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> <span class="keywordtype">id</span>[10];<span class="comment">//7-byte UID normally.</span></div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> id_size;</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> unused_xb[0x15];</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> } <a class="code" href="structNFC__AppDataWriteStruct.html">NFC_AppDataWriteStruct</a>;</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment"> * @brief Initializes NFC.</span></div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="comment"> * @param type See the NFC_OpType enum.</span></div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="nfc_8h.html#a7596b3f973da03255dc6528bf1000092"> 101</a></span> <a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="nfc_8h.html#a7596b3f973da03255dc6528bf1000092">nfcInit</a>(<a class="code" href="nfc_8h.html#a9eece04c91681b888fb1fa0744944cd7">NFC_OpType</a> type);</div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="comment"> * @brief Shuts down NFC.</span></div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="nfc_8h.html#a28d582228da24339528ddb84ab6224f8"> 106</a></span> <span class="keywordtype">void</span> <a class="code" href="nfc_8h.html#a28d582228da24339528ddb84ab6224f8">nfcExit</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="comment"> * @brief Gets the NFC service handle.</span></div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="comment"> * @return The NFC service handle.</span></div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="nfc_8h.html#acd3f71363e602913e0a5f3b980fa09e3"> 112</a></span> <a class="code" href="types_8h.html#ab6d744c6b5de129f12937e482dc674fb">Handle</a> <a class="code" href="nfc_8h.html#acd3f71363e602913e0a5f3b980fa09e3">nfcGetSessionHandle</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="comment"> * @brief Starts scanning for NFC tags.</span></div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="comment"> * @param inval Unknown. See NFC_STARTSCAN_DEFAULTINPUT.</span></div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="nfc_8h.html#ac3ef0b90950c2111d60dce85bcebbc25"> 118</a></span> <a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="nfc_8h.html#ac3ef0b90950c2111d60dce85bcebbc25">nfcStartScanning</a>(<a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> inval);</div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="comment"> * @brief Stops scanning for NFC tags.</span></div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="nfc_8h.html#aed548d946f176cb58d27f02eb3f8788b"> 123</a></span> <span class="keywordtype">void</span> <a class="code" href="nfc_8h.html#aed548d946f176cb58d27f02eb3f8788b">nfcStopScanning</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="comment"> * @brief Read amiibo NFC data and load in memory.</span></div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="nfc_8h.html#a56c7173fe91f49f79098da6db466df1b"> 128</a></span> <a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="nfc_8h.html#a56c7173fe91f49f79098da6db466df1b">nfcLoadAmiiboData</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="comment"> * @brief If the tagstate is valid(NFC_TagState_DataReady or 6), it then sets the current tagstate to NFC_TagState_InRange.</span></div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="nfc_8h.html#a9d3c5604801770e2e8b9ae1298c4834d"> 133</a></span> <a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="nfc_8h.html#a9d3c5604801770e2e8b9ae1298c4834d">nfcResetTagScanState</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="comment"> * @brief This writes the amiibo data stored in memory to the actual amiibo data storage(which is normally the NFC data pages). This can only be used if NFC_LoadAmiiboData() was used previously.</span></div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="nfc_8h.html#a25d99d1157eba6cd04662e73bfad21d7"> 138</a></span> <a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="nfc_8h.html#a25d99d1157eba6cd04662e73bfad21d7">nfcUpdateStoredAmiiboData</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="comment"> * @brief Returns the current NFC tag state.</span></div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment"> * @param state Pointer to write NFC tag state.</span></div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="nfc_8h.html#a7e0e09ac27a6ceefea37fa33c0330b7b"> 144</a></span> <a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="nfc_8h.html#a7e0e09ac27a6ceefea37fa33c0330b7b">nfcGetTagState</a>(<a class="code" href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48">NFC_TagState</a> *state);</div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment"> * @brief Returns the current TagInfo.</span></div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="comment"> * @param out Pointer to write the output TagInfo.</span></div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="nfc_8h.html#a10329321c3f31c5b4c5f273c54497b1f"> 150</a></span> <a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="nfc_8h.html#a10329321c3f31c5b4c5f273c54497b1f">nfcGetTagInfo</a>(<a class="code" href="structNFC__TagInfo.html">NFC_TagInfo</a> *out);</div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="comment"> * @brief Opens the appdata, when the amiibo appdata was previously initialized. This must be used before reading/writing the appdata. See also: https://3dbrew.org/wiki/NFC:OpenAppData</span></div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment"> * @param amiibo_appid Amiibo AppID. See here: https://www.3dbrew.org/wiki/Amiibo</span></div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="nfc_8h.html#a9a0588d2d7bf6174b21fdb1d18d325b7"> 156</a></span> <a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="nfc_8h.html#a9a0588d2d7bf6174b21fdb1d18d325b7">nfcOpenAppData</a>(<a class="code" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> amiibo_appid);</div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="comment"> * @brief This initializes the appdata using the specified input, when the appdata previously wasn't initialized. If the appdata is already initialized, you must first use the amiibo Settings applet menu option labeled "Delete amiibo Game Data". This automatically writes the amiibo data into the actual data storage(normally NFC data pages). See also nfcWriteAppData().</span></div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="comment"> * @param amiibo_appid amiibo AppID. See also nfcOpenAppData().</span></div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment"> * @param buf Input buffer.</span></div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="comment"> * @param size Buffer size.</span></div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="nfc_8h.html#adba9904e5419fd1116639802ee4f3976"> 164</a></span> <a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="nfc_8h.html#adba9904e5419fd1116639802ee4f3976">nfcInitializeWriteAppData</a>(<a class="code" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> amiibo_appid, <span class="keyword">const</span> <span class="keywordtype">void</span> *buf, <span class="keywordtype">size_t</span> size);</div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="comment"> * @brief Reads the appdata. The size must be >=0xD8-bytes, but the actual used size is hard-coded to 0xD8. Note that areas of appdata which were never written to by applications are uninitialized in this output buffer.</span></div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="comment"> * @param buf Output buffer.</span></div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="comment"> * @param size Buffer size.</span></div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="nfc_8h.html#a96eaa70e51883928d1289391ac6d0e99"> 171</a></span> <a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="nfc_8h.html#a96eaa70e51883928d1289391ac6d0e99">nfcReadAppData</a>(<span class="keywordtype">void</span> *buf, <span class="keywordtype">size_t</span> size);</div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="comment"> * @brief Writes the appdata, after nfcOpenAppData() was used successfully. The size should be <=0xD8-bytes. See also: https://3dbrew.org/wiki/NFC:WriteAppData</span></div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="comment"> * @param buf Input buffer.</span></div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="comment"> * @param size Buffer size.</span></div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="comment"> * @param taginfo TagInfo from nfcGetTagInfo().</span></div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="nfc_8h.html#ae123ea01db425b1a36f3d423a058f3a3"> 179</a></span> <a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="nfc_8h.html#ae123ea01db425b1a36f3d423a058f3a3">nfcWriteAppData</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *buf, <span class="keywordtype">size_t</span> size, <a class="code" href="structNFC__TagInfo.html">NFC_TagInfo</a> *taginfo);</div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="comment"> * @brief Returns the current AmiiboSettings.</span></div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="comment"> * @param out Pointer to write the output AmiiboSettings.</span></div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="nfc_8h.html#ab3072a287fd53717e05c8aca7265ad1c"> 185</a></span> <a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="nfc_8h.html#ab3072a287fd53717e05c8aca7265ad1c">nfcGetAmiiboSettings</a>(<a class="code" href="structNFC__AmiiboSettings.html">NFC_AmiiboSettings</a> *out);</div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="comment"> * @brief Returns the current AmiiboConfig.</span></div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="comment"> * @param out Pointer to write the output AmiiboConfig.</span></div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="nfc_8h.html#a26dccce0f9fa807abf31ffa5cf5c28e7"> 191</a></span> <a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="nfc_8h.html#a26dccce0f9fa807abf31ffa5cf5c28e7">nfcGetAmiiboConfig</a>(<a class="code" href="structNFC__AmiiboConfig.html">NFC_AmiiboConfig</a> *out);</div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="comment"> * @brief Starts scanning for NFC tags when initialized with NFC_OpType_RawNFC. See also: https://www.3dbrew.org/wiki/NFC:StartOtherTagScanning</span></div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="comment"> * @param unk0 Same as nfcStartScanning() input.</span></div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="comment"> * @param unk1 Unknown.</span></div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="nfc_8h.html#abc0100533e84183043289003958ea15a"> 198</a></span> <a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="nfc_8h.html#abc0100533e84183043289003958ea15a">nfcStartOtherTagScanning</a>(<a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> unk0, <a class="code" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> unk1);</div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="comment"> * @brief This sends a raw NFC command to the tag. This can only be used when initialized with NFC_OpType_RawNFC, and when the TagState is NFC_TagState_InRange. See also: https://www.3dbrew.org/wiki/NFC:SendTagCommand</span></div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="comment"> * @param inbuf Input buffer.</span></div>
|
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="comment"> * @param insize Size of the input buffer.</span></div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="comment"> * @param outbuf Output buffer.</span></div>
|
|
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="comment"> * @param outsize Size of the output buffer.</span></div>
|
|
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="comment"> * @param actual_transfer_size Optional output ptr to write the actual output-size to, can be NULL.</span></div>
|
|
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="comment"> * @param microseconds Timing-related field in microseconds.</span></div>
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="nfc_8h.html#a927cd24bd9c4018521ff205b8603c1cb"> 209</a></span> <a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="nfc_8h.html#a927cd24bd9c4018521ff205b8603c1cb">nfcSendTagCommand</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *inbuf, <span class="keywordtype">size_t</span> insize, <span class="keywordtype">void</span> *outbuf, <span class="keywordtype">size_t</span> outsize, <span class="keywordtype">size_t</span> *actual_transfer_size, <a class="code" href="types_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a> microseconds);</div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="comment"> * @brief Unknown. This can only be used when initialized with NFC_OpType_RawNFC, and when the TagState is NFC_TagState_InRange.</span></div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="nfc_8h.html#a24c86d1a32ec011bad1c2bdae1eb8e26"> 214</a></span> <a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="nfc_8h.html#a24c86d1a32ec011bad1c2bdae1eb8e26">nfcCmd21</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="comment"> * @brief Unknown. This can only be used when initialized with NFC_OpType_RawNFC, and when the TagState is NFC_TagState_InRange.</span></div>
|
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="nfc_8h.html#a0c46ce5e0bb848fc966821278a76646c"> 219</a></span> <a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="nfc_8h.html#a0c46ce5e0bb848fc966821278a76646c">nfcCmd22</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  </div>
|
|
<div class="ttc" id="anfc_8h_html_a0c46ce5e0bb848fc966821278a76646c"><div class="ttname"><a href="nfc_8h.html#a0c46ce5e0bb848fc966821278a76646c">nfcCmd22</a></div><div class="ttdeci">Result nfcCmd22(void)</div><div class="ttdoc">Unknown.</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a10329321c3f31c5b4c5f273c54497b1f"><div class="ttname"><a href="nfc_8h.html#a10329321c3f31c5b4c5f273c54497b1f">nfcGetTagInfo</a></div><div class="ttdeci">Result nfcGetTagInfo(NFC_TagInfo *out)</div><div class="ttdoc">Returns the current TagInfo.</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a24c86d1a32ec011bad1c2bdae1eb8e26"><div class="ttname"><a href="nfc_8h.html#a24c86d1a32ec011bad1c2bdae1eb8e26">nfcCmd21</a></div><div class="ttdeci">Result nfcCmd21(void)</div><div class="ttdoc">Unknown.</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a25d99d1157eba6cd04662e73bfad21d7"><div class="ttname"><a href="nfc_8h.html#a25d99d1157eba6cd04662e73bfad21d7">nfcUpdateStoredAmiiboData</a></div><div class="ttdeci">Result nfcUpdateStoredAmiiboData(void)</div><div class="ttdoc">This writes the amiibo data stored in memory to the actual amiibo data storage(which is normally the ...</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a26dccce0f9fa807abf31ffa5cf5c28e7"><div class="ttname"><a href="nfc_8h.html#a26dccce0f9fa807abf31ffa5cf5c28e7">nfcGetAmiiboConfig</a></div><div class="ttdeci">Result nfcGetAmiiboConfig(NFC_AmiiboConfig *out)</div><div class="ttdoc">Returns the current AmiiboConfig.</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a28d582228da24339528ddb84ab6224f8"><div class="ttname"><a href="nfc_8h.html#a28d582228da24339528ddb84ab6224f8">nfcExit</a></div><div class="ttdeci">void nfcExit(void)</div><div class="ttdoc">Shuts down NFC.</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a56c7173fe91f49f79098da6db466df1b"><div class="ttname"><a href="nfc_8h.html#a56c7173fe91f49f79098da6db466df1b">nfcLoadAmiiboData</a></div><div class="ttdeci">Result nfcLoadAmiiboData(void)</div><div class="ttdoc">Read amiibo NFC data and load in memory.</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a69a16164e08b77836ef1bc9482f16d48"><div class="ttname"><a href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48">NFC_TagState</a></div><div class="ttdeci">NFC_TagState</div><div class="ttdef"><b>Definition:</b> nfc.h:35</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a69a16164e08b77836ef1bc9482f16d48a05ee15a8c4822b2cfe6d5c609ef02069"><div class="ttname"><a href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48a05ee15a8c4822b2cfe6d5c609ef02069">NFC_TagState_DataReady</a></div><div class="ttdeci">@ NFC_TagState_DataReady</div><div class="ttdoc">NFC tag is now out of range, where the NFC tag was previously in range. This occurs automatically wit...</div><div class="ttdef"><b>Definition:</b> nfc.h:41</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a69a16164e08b77836ef1bc9482f16d48a3724306f91d953f27676392d586144ed"><div class="ttname"><a href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48a3724306f91d953f27676392d586144ed">NFC_TagState_OutOfRange</a></div><div class="ttdeci">@ NFC_TagState_OutOfRange</div><div class="ttdoc">NFC tag is in range. The state automatically changes to this when the state was previously value 2,...</div><div class="ttdef"><b>Definition:</b> nfc.h:40</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a69a16164e08b77836ef1bc9482f16d48aafac0dbd5b19fe620065ee0e0594e182"><div class="ttname"><a href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48aafac0dbd5b19fe620065ee0e0594e182">NFC_TagState_Scanning</a></div><div class="ttdeci">@ NFC_TagState_Scanning</div><div class="ttdoc">Not currently scanning for NFC tags. Set by nfcStopScanning() and nfcInit(), when successful.</div><div class="ttdef"><b>Definition:</b> nfc.h:38</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a69a16164e08b77836ef1bc9482f16d48ab8076e3eb5dae8b8a6039bd5216bc00b"><div class="ttname"><a href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48ab8076e3eb5dae8b8a6039bd5216bc00b">NFC_TagState_ScanningStopped</a></div><div class="ttdeci">@ NFC_TagState_ScanningStopped</div><div class="ttdoc">nfcInit() was not used yet.</div><div class="ttdef"><b>Definition:</b> nfc.h:37</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a69a16164e08b77836ef1bc9482f16d48af5614df893e8dff6bed2e253e869073a"><div class="ttname"><a href="nfc_8h.html#a69a16164e08b77836ef1bc9482f16d48af5614df893e8dff6bed2e253e869073a">NFC_TagState_InRange</a></div><div class="ttdeci">@ NFC_TagState_InRange</div><div class="ttdoc">Currently scanning for NFC tags. Set by nfcStartScanning() when successful.</div><div class="ttdef"><b>Definition:</b> nfc.h:39</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a7596b3f973da03255dc6528bf1000092"><div class="ttname"><a href="nfc_8h.html#a7596b3f973da03255dc6528bf1000092">nfcInit</a></div><div class="ttdeci">Result nfcInit(NFC_OpType type)</div><div class="ttdoc">Initializes NFC.</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a7e0e09ac27a6ceefea37fa33c0330b7b"><div class="ttname"><a href="nfc_8h.html#a7e0e09ac27a6ceefea37fa33c0330b7b">nfcGetTagState</a></div><div class="ttdeci">Result nfcGetTagState(NFC_TagState *state)</div><div class="ttdoc">Returns the current NFC tag state.</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a927cd24bd9c4018521ff205b8603c1cb"><div class="ttname"><a href="nfc_8h.html#a927cd24bd9c4018521ff205b8603c1cb">nfcSendTagCommand</a></div><div class="ttdeci">Result nfcSendTagCommand(const void *inbuf, size_t insize, void *outbuf, size_t outsize, size_t *actual_transfer_size, u64 microseconds)</div><div class="ttdoc">This sends a raw NFC command to the tag.</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a9334a5b9057f32da96db9b5c6a045d67a16ce51e6a1dce2256d7a988d1dd9add4"><div class="ttname"><a href="nfc_8h.html#a9334a5b9057f32da96db9b5c6a045d67a16ce51e6a1dce2256d7a988d1dd9add4">NFC_amiiboFlag_AppDataSetup</a></div><div class="ttdeci">@ NFC_amiiboFlag_AppDataSetup</div><div class="ttdoc">This indicates that the amiibo was setup with amiibo Settings. nfcGetAmiiboSettings() will return an ...</div><div class="ttdef"><b>Definition:</b> nfc.h:47</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a96eaa70e51883928d1289391ac6d0e99"><div class="ttname"><a href="nfc_8h.html#a96eaa70e51883928d1289391ac6d0e99">nfcReadAppData</a></div><div class="ttdeci">Result nfcReadAppData(void *buf, size_t size)</div><div class="ttdoc">Reads the appdata.</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a9a0588d2d7bf6174b21fdb1d18d325b7"><div class="ttname"><a href="nfc_8h.html#a9a0588d2d7bf6174b21fdb1d18d325b7">nfcOpenAppData</a></div><div class="ttdeci">Result nfcOpenAppData(u32 amiibo_appid)</div><div class="ttdoc">Opens the appdata, when the amiibo appdata was previously initialized.</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a9d3c5604801770e2e8b9ae1298c4834d"><div class="ttname"><a href="nfc_8h.html#a9d3c5604801770e2e8b9ae1298c4834d">nfcResetTagScanState</a></div><div class="ttdeci">Result nfcResetTagScanState(void)</div><div class="ttdoc">If the tagstate is valid(NFC_TagState_DataReady or 6), it then sets the current tagstate to NFC_TagSt...</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a9eece04c91681b888fb1fa0744944cd7"><div class="ttname"><a href="nfc_8h.html#a9eece04c91681b888fb1fa0744944cd7">NFC_OpType</a></div><div class="ttdeci">NFC_OpType</div><div class="ttdoc">NFC operation type.</div><div class="ttdef"><b>Definition:</b> nfc.h:29</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a9eece04c91681b888fb1fa0744944cd7a0cd7ce431e3b1f84d93ae5f1c60fa8b7"><div class="ttname"><a href="nfc_8h.html#a9eece04c91681b888fb1fa0744944cd7a0cd7ce431e3b1f84d93ae5f1c60fa8b7">NFC_OpType_NFCTag</a></div><div class="ttdeci">@ NFC_OpType_NFCTag</div><div class="ttdoc">Unknown.</div><div class="ttdef"><b>Definition:</b> nfc.h:31</div></div>
|
|
<div class="ttc" id="anfc_8h_html_a9eece04c91681b888fb1fa0744944cd7a4dfe8836eb56105d0b7a3f84c615ffb3"><div class="ttname"><a href="nfc_8h.html#a9eece04c91681b888fb1fa0744944cd7a4dfe8836eb56105d0b7a3f84c615ffb3">NFC_OpType_RawNFC</a></div><div class="ttdeci">@ NFC_OpType_RawNFC</div><div class="ttdoc">This is the default.</div><div class="ttdef"><b>Definition:</b> nfc.h:32</div></div>
|
|
<div class="ttc" id="anfc_8h_html_ab3072a287fd53717e05c8aca7265ad1c"><div class="ttname"><a href="nfc_8h.html#ab3072a287fd53717e05c8aca7265ad1c">nfcGetAmiiboSettings</a></div><div class="ttdeci">Result nfcGetAmiiboSettings(NFC_AmiiboSettings *out)</div><div class="ttdoc">Returns the current AmiiboSettings.</div></div>
|
|
<div class="ttc" id="anfc_8h_html_abc0100533e84183043289003958ea15a"><div class="ttname"><a href="nfc_8h.html#abc0100533e84183043289003958ea15a">nfcStartOtherTagScanning</a></div><div class="ttdeci">Result nfcStartOtherTagScanning(u16 unk0, u32 unk1)</div><div class="ttdoc">Starts scanning for NFC tags when initialized with NFC_OpType_RawNFC.</div></div>
|
|
<div class="ttc" id="anfc_8h_html_ac3ef0b90950c2111d60dce85bcebbc25"><div class="ttname"><a href="nfc_8h.html#ac3ef0b90950c2111d60dce85bcebbc25">nfcStartScanning</a></div><div class="ttdeci">Result nfcStartScanning(u16 inval)</div><div class="ttdoc">Starts scanning for NFC tags.</div></div>
|
|
<div class="ttc" id="anfc_8h_html_acd3f71363e602913e0a5f3b980fa09e3"><div class="ttname"><a href="nfc_8h.html#acd3f71363e602913e0a5f3b980fa09e3">nfcGetSessionHandle</a></div><div class="ttdeci">Handle nfcGetSessionHandle(void)</div><div class="ttdoc">Gets the NFC service handle.</div></div>
|
|
<div class="ttc" id="anfc_8h_html_adba9904e5419fd1116639802ee4f3976"><div class="ttname"><a href="nfc_8h.html#adba9904e5419fd1116639802ee4f3976">nfcInitializeWriteAppData</a></div><div class="ttdeci">Result nfcInitializeWriteAppData(u32 amiibo_appid, const void *buf, size_t size)</div><div class="ttdoc">This initializes the appdata using the specified input, when the appdata previously wasn't initialize...</div></div>
|
|
<div class="ttc" id="anfc_8h_html_ae123ea01db425b1a36f3d423a058f3a3"><div class="ttname"><a href="nfc_8h.html#ae123ea01db425b1a36f3d423a058f3a3">nfcWriteAppData</a></div><div class="ttdeci">Result nfcWriteAppData(const void *buf, size_t size, NFC_TagInfo *taginfo)</div><div class="ttdoc">Writes the appdata, after nfcOpenAppData() was used successfully.</div></div>
|
|
<div class="ttc" id="anfc_8h_html_aed548d946f176cb58d27f02eb3f8788b"><div class="ttname"><a href="nfc_8h.html#aed548d946f176cb58d27f02eb3f8788b">nfcStopScanning</a></div><div class="ttdeci">void nfcStopScanning(void)</div><div class="ttdoc">Stops scanning for NFC tags.</div></div>
|
|
<div class="ttc" id="astructNFC__AmiiboConfig_html"><div class="ttname"><a href="structNFC__AmiiboConfig.html">NFC_AmiiboConfig</a></div><div class="ttdoc">AmiiboConfig structure, see also here: https://3dbrew.org/wiki/NFC:GetAmiiboConfig.</div><div class="ttdef"><b>Definition:</b> nfc.h:70</div></div>
|
|
<div class="ttc" id="astructNFC__AmiiboConfig_html_a5487bb25ea68a55b6cdbf039ef0d0f47"><div class="ttname"><a href="structNFC__AmiiboConfig.html#a5487bb25ea68a55b6cdbf039ef0d0f47">NFC_AmiiboConfig::type</a></div><div class="ttdeci">u8 type</div><div class="ttdoc">ID shared by all exact same amiibo. Some amiibo are only distinguished by this one like regular SMB S...</div><div class="ttdef"><b>Definition:</b> nfc.h:78</div></div>
|
|
<div class="ttc" id="astructNFC__AmiiboConfig_html_a632f97fc779b373b7cd34d0379fbb739"><div class="ttname"><a href="structNFC__AmiiboConfig.html#a632f97fc779b373b7cd34d0379fbb739">NFC_AmiiboConfig::amiiboID</a></div><div class="ttdeci">u16 amiiboID</div><div class="ttdoc">ID of the series.</div><div class="ttdef"><b>Definition:</b> nfc.h:77</div></div>
|
|
<div class="ttc" id="astructNFC__AmiiboConfig_html_a97b6c6ac32192aee1f00d1c02fa74cc3"><div class="ttname"><a href="structNFC__AmiiboConfig.html#a97b6c6ac32192aee1f00d1c02fa74cc3">NFC_AmiiboConfig::series</a></div><div class="ttdeci">u8 series</div><div class="ttdoc">the first element is the collection ID, the second the character in this collection,...</div><div class="ttdef"><b>Definition:</b> nfc.h:76</div></div>
|
|
<div class="ttc" id="astructNFC__AmiiboConfig_html_a9f0d49ca13914f283b47014d366377c8"><div class="ttname"><a href="structNFC__AmiiboConfig.html#a9f0d49ca13914f283b47014d366377c8">NFC_AmiiboConfig::pagex4_byte3</a></div><div class="ttdeci">u8 pagex4_byte3</div><div class="ttdoc">Type of amiibo 0 = figure, 1 = card, 2 = plush.</div><div class="ttdef"><b>Definition:</b> nfc.h:79</div></div>
|
|
<div class="ttc" id="astructNFC__AmiiboSettings_html"><div class="ttname"><a href="structNFC__AmiiboSettings.html">NFC_AmiiboSettings</a></div><div class="ttdoc">AmiiboSettings structure, see also here: https://3dbrew.org/wiki/NFC:GetAmiiboSettings.</div><div class="ttdef"><b>Definition:</b> nfc.h:58</div></div>
|
|
<div class="ttc" id="astructNFC__AmiiboSettings_html_a0b5fdd43e05a1f74c6471e83a897f969"><div class="ttname"><a href="structNFC__AmiiboSettings.html#a0b5fdd43e05a1f74c6471e83a897f969">NFC_AmiiboSettings::flags</a></div><div class="ttdeci">u8 flags</div><div class="ttdoc">"UTF-16BE Amiibo nickname."</div><div class="ttdef"><b>Definition:</b> nfc.h:61</div></div>
|
|
<div class="ttc" id="astructNFC__AmiiboSettings_html_a235d9f671be5710883e9cad51499df2b"><div class="ttname"><a href="structNFC__AmiiboSettings.html#a235d9f671be5710883e9cad51499df2b">NFC_AmiiboSettings::setupdate_year</a></div><div class="ttdeci">u16 setupdate_year</div><div class="ttdoc">"This is plaintext_amiibosettingsdata[1]." "Country Code ID, from the system which setup this amiibo....</div><div class="ttdef"><b>Definition:</b> nfc.h:63</div></div>
|
|
<div class="ttc" id="astructNFC__AmiiboSettings_html_a5f2d5c9b2b91553eb461e8a8e8738068"><div class="ttname"><a href="structNFC__AmiiboSettings.html#a5f2d5c9b2b91553eb461e8a8e8738068">NFC_AmiiboSettings::countrycodeid</a></div><div class="ttdeci">u8 countrycodeid</div><div class="ttdoc">"This is plaintext_amiibosettingsdata[0] & 0xF." See also the NFC_amiiboFlag enums.</div><div class="ttdef"><b>Definition:</b> nfc.h:62</div></div>
|
|
<div class="ttc" id="astructNFC__AppDataInitStruct_html"><div class="ttname"><a href="structNFC__AppDataInitStruct.html">NFC_AppDataInitStruct</a></div><div class="ttdoc">Used by nfcInitializeWriteAppData() internally, see also here: https://3dbrew.org/wiki/NFC:GetAppData...</div><div class="ttdef"><b>Definition:</b> nfc.h:85</div></div>
|
|
<div class="ttc" id="astructNFC__AppDataWriteStruct_html"><div class="ttname"><a href="structNFC__AppDataWriteStruct.html">NFC_AppDataWriteStruct</a></div><div class="ttdoc">Used by nfcWriteAppData() internally, see also: https://3dbrew.org/wiki/NFC:WriteAppData.</div><div class="ttdef"><b>Definition:</b> nfc.h:91</div></div>
|
|
<div class="ttc" id="astructNFC__TagInfo_html"><div class="ttname"><a href="structNFC__TagInfo.html">NFC_TagInfo</a></div><div class="ttdef"><b>Definition:</b> nfc.h:50</div></div>
|
|
<div class="ttc" id="astructNFC__TagInfo_html_a60b976dafb0acafde87489bbcb98e8e9"><div class="ttname"><a href="structNFC__TagInfo.html#a60b976dafb0acafde87489bbcb98e8e9">NFC_TagInfo::unk_x2</a></div><div class="ttdeci">u8 unk_x2</div><div class="ttdoc">"u16 size/offset of the below ID data. Normally this is 0x7. When this is <=10, this field is the siz...</div><div class="ttdef"><b>Definition:</b> nfc.h:52</div></div>
|
|
<div class="ttc" id="atypes_8h_html_a3a8ea58898cb58fc96013383d39f482c"><div class="ttname"><a href="types_8h.html#a3a8ea58898cb58fc96013383d39f482c">BIT</a></div><div class="ttdeci">#define BIT(n)</div><div class="ttdoc">Creates a bitmask from a bit number.</div><div class="ttdef"><b>Definition:</b> types.h:47</div></div>
|
|
<div class="ttc" id="atypes_8h_html_a3f7e2bcbb0b4c338f3c4f6c937cd4234"><div class="ttname"><a href="types_8h.html#a3f7e2bcbb0b4c338f3c4f6c937cd4234">u64</a></div><div class="ttdeci">uint64_t u64</div><div class="ttdoc">64-bit unsigned integer</div><div class="ttdef"><b>Definition:</b> types.h:24</div></div>
|
|
<div class="ttc" id="atypes_8h_html_a92c50087ca0e64fa93fc59402c55f8ca"><div class="ttname"><a href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a></div><div class="ttdeci">uint8_t u8</div><div class="ttdoc">would be nice if newlib had this already</div><div class="ttdef"><b>Definition:</b> types.h:21</div></div>
|
|
<div class="ttc" id="atypes_8h_html_ab6d744c6b5de129f12937e482dc674fb"><div class="ttname"><a href="types_8h.html#ab6d744c6b5de129f12937e482dc674fb">Handle</a></div><div class="ttdeci">u32 Handle</div><div class="ttdoc">Resource handle.</div><div class="ttdef"><b>Definition:</b> types.h:41</div></div>
|
|
<div class="ttc" id="atypes_8h_html_ac830bf5a4f2cf8273f61ab99a46cf163"><div class="ttname"><a href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a></div><div class="ttdeci">s32 Result</div><div class="ttdoc">Function result.</div><div class="ttdef"><b>Definition:</b> types.h:42</div></div>
|
|
<div class="ttc" id="atypes_8h_html_ace9d960e74685e2cd84b36132dbbf8aa"><div class="ttname"><a href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a></div><div class="ttdeci">uint16_t u16</div><div class="ttdoc">16-bit unsigned integer</div><div class="ttdef"><b>Definition:</b> types.h:22</div></div>
|
|
<div class="ttc" id="atypes_8h_html_afaa62991928fb9fb18ff0db62a040aba"><div class="ttname"><a href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a></div><div class="ttdeci">uint32_t u32</div><div class="ttdoc">32-bit unsigned integer</div><div class="ttdef"><b>Definition:</b> types.h:23</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
|
|
</small></address>
|
|
</body>
|
|
</html>
|