Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jedeoric committed Jan 27, 2024
1 parent 9d419bc commit 8c51e5a
Show file tree
Hide file tree
Showing 25 changed files with 342 additions and 47 deletions.
110 changes: 98 additions & 12 deletions docs/api/assembly/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,10 @@ <h2 id="ch376_dir_create">ch376_dir_create</h2>
<ul>
<li>Accumulator : ch376 status values</li>
</ul>
<p><strong><em>Example</em></strong></p>
<div class="highlight"><pre><span></span><code><span class="w"> </span><span class="k">jsr</span><span class="w"> </span><span class="n">ch376_dir_create</span>
<span class="w"> </span><span class="c1">; check accumulator here ch376_wait_response had been launched by ch376_dir_create</span>
</code></pre></div>
<h2 id="ch376_disk_capacity">ch376_disk_capacity</h2>
<p><strong><em>Description</em></strong></p>
<p>check disk capacity</p>
Expand All @@ -738,44 +742,72 @@ <h2 id="ch376_disk_mount">ch376_disk_mount</h2>
<ul>
<li>Accumulator : ch376 status values</li>
</ul>
<p><strong><em>Example</em></strong></p>
<div class="highlight"><pre><span></span><code><span class="w"> </span><span class="k">jsr</span><span class="w"> </span><span class="n">ch376_disk_mount</span>
<span class="w"> </span><span class="c1">; check accumulator here ch376_wait_response had been launched by ch376_disk_mount</span>
</code></pre></div>
<h2 id="ch376_disk_query">ch376_disk_query</h2>
<div class="admonition bug">
<p class="admonition-title">Impossible to use</p>
</div>
<h2 id="ch376_file_close">ch376_file_close</h2>
<p><strong><em>Description</em></strong></p>
<p>Close file</p>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376 status values</li>
<li>Accumulator : 'ch376 status' value</li>
</ul>
<p><strong><em>Example</em></strong></p>
<div class="highlight"><pre><span></span><code><span class="w"> </span><span class="k">jsr</span><span class="w"> </span><span class="n">ch376_file_close</span>
<span class="w"> </span><span class="c1">; check accumulator here ch376_wait_response had been launched by ch376_file_close</span>
</code></pre></div>
<h2 id="ch376_file_create">ch376_file_create</h2>
<p><strong><em>Description</em></strong></p>
<p>create file</p>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376 status values</li>
<li>Accumulator : ch376 status value</li>
</ul>
<p><strong><em>Example</em></strong></p>
<div class="highlight"><pre><span></span><code><span class="w"> </span><span class="k">jsr</span><span class="w"> </span><span class="n">ch376_file_create</span>
<span class="w"> </span><span class="c1">; check accumulator here ch376_wait_response had been launched by ch376_file_create</span>
</code></pre></div>
<h2 id="ch376_file_erase">ch376_file_erase</h2>
<p><strong><em>Description</em></strong></p>
<p>Erase file</p>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376 status values</li>
<li>Accumulator : ch376 status value</li>
</ul>
<p><strong><em>Example</em></strong></p>
<div class="highlight"><pre><span></span><code><span class="w"> </span><span class="k">jsr</span><span class="w"> </span><span class="n">ch376_file_erase</span>
<span class="w"> </span><span class="c1">; check accumulator here ch376_wait_response had been launched by ch376_file_erase</span>
</code></pre></div>
<h2 id="ch376_file_open">ch376_file_open</h2>
<p><strong><em>Description</em></strong></p>
<p>open file</p>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376 status values</li>
<li>Accumulator : 'ch376 status' value</li>
</ul>
<p><strong><em>Example</em></strong></p>
<div class="highlight"><pre><span></span><code><span class="w"> </span><span class="k">jsr</span><span class="w"> </span><span class="n">ch376_file_erase</span>
<span class="w"> </span><span class="c1">; check accumulator here ch376_wait_response had been launched by ch376_file_open</span>
</code></pre></div>
<h2 id="ch376_get_descr">ch376_get_descr</h2>
<p><strong><em>Description</em></strong></p>
<p>Get usb descr device</p>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376 status values</li>
</ul>
<p><strong><em>Description</em></strong></p>
<p>Get usb descr device</p>
<p><strong><em>Example</em></strong></p>
<div class="highlight"><pre><span></span><code><span class="w"> </span><span class="k">jsr</span><span class="w"> </span><span class="n">ch376_get_descr</span>
<span class="w"> </span><span class="c1">; check accumulator here ch376_wait_response had been launched by ch376_get_descr</span>
</code></pre></div>
<h2 id="ch376_get_file_size">ch376_get_file_size</h2>
<p><strong><em>Description</em></strong></p>
<p>Get file size</p>
<div class="admonition bug">
<p class="admonition-title">Impossible to use</p>
</div>
Expand All @@ -786,6 +818,10 @@ <h2 id="ch376_ic_get_ver">ch376_ic_get_ver</h2>
<ul>
<li>Accumulator : ch376 firmware version</li>
</ul>
<p><strong><em>Example</em></strong></p>
<div class="highlight"><pre><span></span><code><span class="w"> </span><span class="k">jsr</span><span class="w"> </span><span class="n">ch376_ic_get_ver</span>
<span class="w"> </span><span class="c1">; check accumulator for Version (integer value)</span>
</code></pre></div>
<h2 id="ch376_lib_version">ch376_lib_version</h2>
<p><strong><em>Description</em></strong></p>
<p>Get lib version</p>
Expand Down Expand Up @@ -824,49 +860,99 @@ <h2 id="ch376_seek_file">ch376_seek_file</h2>
<ul>
<li>Accumulator : ch376 status values</li>
</ul>
<p><strong><em>Example</em></strong></p>
<div class="highlight"><pre><span></span><code><span class="w"> </span><span class="k">lda</span><span class="w"> </span><span class="p">#</span><span class="mh">$04</span>
<span class="w"> </span><span class="k">sta</span><span class="w"> </span><span class="n">RES</span>
<span class="w"> </span><span class="k">lda</span><span class="w"> </span><span class="p">#</span><span class="mh">$01</span>
<span class="w"> </span><span class="k">ldy</span><span class="w"> </span><span class="p">#</span><span class="mh">$02</span>
<span class="w"> </span><span class="k">ldx</span><span class="w"> </span><span class="p">#</span><span class="mh">$03</span>
<span class="w"> </span><span class="k">jsr</span><span class="w"> </span><span class="n">ch376_seek_file</span>
<span class="w"> </span><span class="c1">; check accumulator here ch376_wait_response had been launched by ch376_seek_file</span>
</code></pre></div>
<div class="admonition note">
<p class="admonition-title">Not tested</p>
</div>
<h2 id="ch376_set_address">ch376_set_address</h2>
<p><strong><em>Description</em></strong></p>
<p>set usb address</p>
<p><strong><em>Example</em></strong></p>
<div class="highlight"><pre><span></span><code><span class="w"> </span><span class="k">lda</span><span class="w"> </span><span class="p">#</span><span class="mh">$02</span>
<span class="w"> </span><span class="k">jsr</span><span class="w"> </span><span class="n">ch376_set_address</span>
</code></pre></div>
<h2 id="ch376_set_config">ch376_set_config</h2>
<p><strong><em>Description</em></strong></p>
<p>set config for usb device</p>
<p><strong><em>Input</em></strong></p>
<ul>
<li>Accumulator : config value
<strong><em>Example</em></strong></li>
</ul>
<div class="highlight"><pre><span></span><code><span class="w"> </span><span class="k">lda</span><span class="w"> </span><span class="p">#</span><span class="mh">$02</span>
<span class="w"> </span><span class="k">jsr</span><span class="w"> </span><span class="n">ch376_set_config</span>
</code></pre></div>
<h2 id="ch376_set_file_name">ch376_set_file_name</h2>
<p><strong><em>Description</em></strong></p>
<p>set file_name</p>
<p><strong><em>Input</em></strong></p>
<ul>
<li>Accumulator : Low ptr adress of the string, terminated by 0</li>
<li>Y Register : High ptr adress of the string, terminated by 0</li>
<li>Y Register : High ptr adress of the string, terminated by 0
<strong><em>Example</em></strong></li>
</ul>
<div class="highlight"><pre><span></span><code><span class="w"> </span><span class="k">lda</span><span class="w"> </span><span class="p">#</span><span class="o">&lt;</span><span class="n">myfile</span>
<span class="w"> </span><span class="k">ldy</span><span class="w"> </span><span class="p">#</span><span class="o">&gt;</span><span class="n">myfile</span>
<span class="w"> </span><span class="k">jsr</span><span class="w"> </span><span class="n">ch376_set_file_name</span>
<span class="w"> </span><span class="k">rts</span>
<span class="nl">myfile:</span>
<span class="w"> </span><span class="kp">.byte</span><span class="w"> </span><span class="s">"hello.txt"</span>
</code></pre></div>
<h2 id="ch376_set_usb_addr">ch376_set_usb_addr</h2>
<p><strong><em>Description</em></strong></p>
<p>set usb_address</p>
<p><strong><em>Input</em></strong></p>
<ul>
<li>Accumulator : The address to set</li>
<li>Accumulator : The address to set
<strong><em>Example</em></strong></li>
</ul>
<div class="highlight"><pre><span></span><code><span class="w"> </span><span class="k">lda</span><span class="w"> </span><span class="p">#</span><span class="mh">$02</span>
<span class="w"> </span><span class="k">jsr</span><span class="w"> </span><span class="n">ch376_set_usb_addr</span>
<span class="w"> </span><span class="k">rts</span>
</code></pre></div>
<h2 id="ch376_set_usb_mode">ch376_set_usb_mode</h2>
<p><strong><em>Description</em></strong></p>
<p>Set usb mode</p>
<p><strong><em>Input</em></strong></p>
<ul>
<li>Accumulator : The usb mode to set</li>
<li>Accumulator : The usb mode to set
<strong><em>Example</em></strong></li>
</ul>
<p>```ca65
lda #CH376_USB_MODE_HOST_RESET
jsr ch376_set_usb_mode
rts</p>
<h2 id="ch376_set_usb_speed">ch376_set_usb_speed</h2>
<p><strong><em>Description</em></strong></p>
<p>Set usb mode</p>
<p><strong><em>Input</em></strong></p>
<ul>
<li>Accumulator : The speed for usb</li>
<li>Accumulator : The speed for usb
<strong><em>Example</em></strong></li>
</ul>
<p>```ca65
lda #$02
jsr ch376_set_usb_speed
rts</p>
<h2 id="ch376_wait_response">ch376_wait_response</h2>
<p><strong><em>Description</em></strong></p>
<p>Perform wait_response. It's not needed to call because some commands already perform ch376_wait_response</p>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376 status values (1 return 1 if usb controller does not respond)</li>
</ul></div>
<li>Accumulator : "ch376 status" value (or return 1 if usb controller does not respond)</li>
</ul>
<p><strong><em>Example</em></strong></p>
<p>```ca65
jsr ch376_wait_response
rts</p></div>

<hr>
<div class="md-source-file">
Expand Down
6 changes: 3 additions & 3 deletions docs/api/c/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -736,12 +736,12 @@ <h2 id="unsigned-char-ch376_file_erase">unsigned char ch376_file_erase();</h2>
<p><strong><em>Description</em></strong></p>
<p>erase file</p>
<p><strong><em>Returns</em></strong></p>
<p>ch376 status values</p>
<p>ch376 status value</p>
<h2 id="unsigned-char-ch376_file_openvoid">unsigned char ch376_file_open(void);</h2>
<p><strong><em>Description</em></strong></p>
<p>open file</p>
<p><strong><em>Returns</em></strong></p>
<p>ch376 status values</p>
<p>'ch376 status' value</p>
<h2 id="unsigned-char-ch376_get_descrunsigned-char-mode">unsigned char ch376_get_descr(unsigned char mode);</h2>
<p><strong><em>Description</em></strong></p>
<p>Get usb descr device</p>
Expand Down Expand Up @@ -793,7 +793,7 @@ <h2 id="unsigned-char-ch376_wait_responsevoid">unsigned char ch376_wait_response
<p><strong><em>Description</em></strong></p>
<p>Perform wait_response</p>
<p><strong><em>Returns</em></strong></p>
<p>ch376 status values</p></div>
<p>"ch376 status" values</p></div>

<hr>
<div class="md-source-file">
Expand Down
2 changes: 1 addition & 1 deletion docs/api/search/search_index.json

Large diffs are not rendered by default.

Binary file modified docs/api/sitemap.xml.gz
Binary file not shown.
Loading

0 comments on commit 8c51e5a

Please sign in to comment.