Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jedeoric committed Jan 26, 2024
1 parent 5991669 commit 9aecf46
Show file tree
Hide file tree
Showing 20 changed files with 432 additions and 138 deletions.
105 changes: 83 additions & 22 deletions docs/api/assembly/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -706,84 +706,145 @@
<h2 id="ch376_check_exist">ch376_check_exist</h2>
<p><strong><em>Description</em></strong></p>
<p>Send a value, if ch376 is present, it will return $AA</p>
<p><strong><em>ReturnsA</em></strong></p>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : $AA* if it's OK</li>
<li>Accumulator : $AA if it's OK</li>
</ul>
<h2 id="ch376_dir_create">ch376_dir_create</h2>
<p><strong><em>Description</em></strong></p>
<p>create a folder</p>
<p><strong><em>ReturnsA</em></strong></p>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376* status values</li>
<li>Accumulator : ch376 status values</li>
</ul>
<h2 id="ch376_disk_capacity">ch376_disk_capacity</h2>
<p><strong><em>Description</em></strong></p>
<p>check disk capacity</p>
<h2 id="ch376_disk_mount">ch376_disk_mount</h2>
<p><strong><em>Description</em></strong></p>
<p>perform a disk mount</p>
<p><strong><em>ReturnsA</em></strong></p>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376* status values</li>
<li>Accumulator : ch376 status values</li>
</ul>
<h2 id="ch376_disk_query">ch376_disk_query</h2>
<h2 id="ch376_file_close">ch376_file_close</h2>
<p><strong><em>ReturnsA</em></strong></p>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376* status values</li>
<li>Accumulator : ch376 status values</li>
</ul>
<h2 id="ch376_file_create">ch376_file_create</h2>
<p><strong><em>ReturnsA</em></strong></p>
<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 values</li>
</ul>
<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>
</ul>
<h2 id="ch376_file_open">ch376_file_open</h2>
<p><strong><em>ReturnsA</em></strong></p>
<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 values</li>
</ul>
<h2 id="ch376_get_descr">ch376_get_descr</h2>
<p><strong><em>ReturnsA</em></strong></p>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376* status values</li>
<li>Accumulator : ch376 status values</li>
</ul>
<p><strong><em>Description</em></strong></p>
<p>Get usb descr device</p>
<h2 id="ch376_get_file_size">ch376_get_file_size</h2>
<h2 id="ch376_ic_get_ver">ch376_ic_get_ver</h2>
<p><strong><em>Description</em></strong></p>
<p>get version</p>
<p><strong><em>ReturnsA</em></strong></p>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376* firmware version</li>
<li>Accumulator : ch376 firmware version</li>
</ul>
<h2 id="ch376_lib_version">ch376_lib_version</h2>
<p><strong><em>Description</em></strong></p>
<p>Get lib version</p>
<p><strong><em>ReturnsA</em></strong></p>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376* lib version</li>
<li>Accumulator : ch376 lib version</li>
</ul>
<h2 id="ch376_reset_all">ch376_reset_all</h2>
<p><strong><em>Description</em></strong></p>
<p>reset CH376</p>
<h2 id="ch376_seek_file">ch376_seek_file</h2>
<p><strong><em>ReturnsA</em></strong></p>
<p><strong><em>Description</em></strong></p>
<p>Seek file. Manage 24 bits only</p>
<p><strong><em>Input</em></strong></p>
<ul>
<li>Accumulator : ch376* status values</li>
<li>
<p>Accumulator : First byte
<strong><em>Input</em></strong></p>
</li>
<li>
<p>Y Register : second byte
<strong><em>Input</em></strong></p>
</li>
<li>
<p>X Register : third byte byte
<strong><em>Input</em></strong></p>
</li>
</ul>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376 status values</li>
</ul>
<h2 id="ch376_set_address">ch376_set_address</h2>
<p><strong><em>Description</em></strong></p>
<p>set usb address</p>
<h2 id="ch376_set_config">ch376_set_config</h2>
<p><strong><em>Description</em></strong></p>
<p>set config for usb device</p>
<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>
<p>Accumulator : Low ptr adress of the string, terminated by 0
<strong><em>Input</em></strong></p>
</li>
<li>
<p>Y Register : High ptr adress of the string, terminated by 0</p>
</li>
</ul>
<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>
</ul>
<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>
</ul>
<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>
</ul>
<h2 id="ch376_wait_response">ch376_wait_response</h2>
<p><strong><em>ReturnsA</em></strong></p>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376* status values</li>
<li>Accumulator : ch376 status values (1 return 1 if usb controller does not respond)</li>
</ul></div>

<hr>
Expand Down
70 changes: 47 additions & 23 deletions docs/api/c/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,8 @@
<h2 id="unsigned-char-ch376_check_existvoid">unsigned char ch376_check_exist(void);</h2>
<p><strong><em>Description</em></strong></p>
<p>Send a value, if ch376 is present, it will return 0XAA</p>
<p><strong><em>Returns</em></strong>
<em>0XAA</em> if it's OK</p>
<p><strong><em>Returns</em></strong></p>
<p>*0XAAif it's OK</p>
<h2 id="unsigned-char-ch376_dir_create">unsigned char ch376_dir_create();</h2>
<p><strong><em>Description</em></strong></p>
<p>create a folder</p>
Expand All @@ -715,52 +715,76 @@ <h2 id="ch376_disk_capacity">ch376_disk_capacity();</h2>
<h2 id="unsigned-char-ch376_disk_mountvoid">unsigned char ch376_disk_mount(void);</h2>
<p><strong><em>Description</em></strong></p>
<p>perform a disk mount</p>
<p><strong><em>Returns</em></strong>
<em>ch376</em> status values</p>
<p><strong><em>Returns</em></strong></p>
<p>*ch376status values</p>
<h2 id="void-ch376_disk_queryvoid">void ch376_disk_query(void);</h2>
<h2 id="unsigned-char-ch376_file_close">unsigned char ch376_file_close();</h2>
<p><strong><em>Returns</em></strong>
<em>ch376</em> status values</p>
<p><strong><em>Returns</em></strong></p>
<p>*ch376status values</p>
<h2 id="unsigned-char-ch376_dir_create_1">unsigned char ch376_dir_create();</h2>
<p><strong><em>Returns</em></strong>
<em>ch376</em> status values</p>
<p><strong><em>Description</em></strong></p>
<p>create file</p>
<p><strong><em>Returns</em></strong></p>
<p>*ch376status values</p>
<h2 id="unsigned-char-ch376_file_erase">unsigned char ch376_file_erase();</h2>
<p><strong><em>Returns</em></strong>
<em>ch376</em> status values</p>
<p><strong><em>Description</em></strong></p>
<p>erase file</p>
<p><strong><em>Returns</em></strong></p>
<p>*ch376status values</p>
<h2 id="unsigned-char-ch376_file_openvoid">unsigned char ch376_file_open(void);</h2>
<p><strong><em>Returns</em></strong>
<em>ch376</em> status values</p>
<p><strong><em>Description</em></strong></p>
<p>open file</p>
<p><strong><em>Returns</em></strong></p>
<p>*ch376status values</p>
<h2 id="unsigned-char-ch376_get_descrunsigned-char-mode">unsigned char ch376_get_descr(unsigned char mode);</h2>
<p><strong><em>Returns</em></strong>
<em>ch376</em> status values</p>
<p><strong><em>Description</em></strong></p>
<p>Get usb descr device</p>
<p><strong><em>Returns</em></strong></p>
<p>*ch376status values</p>
<h2 id="void-ch376_get_file_sizevoid">void ch376_get_file_size(void);</h2>
<h2 id="unsigned-char-ch376_ic_get_versionvoid">unsigned char ch376_ic_get_version(void);</h2>
<p><strong><em>Description</em></strong></p>
<p>get version</p>
<p><strong><em>Returns</em></strong>
<em>ch376</em> firmware version</p>
<p><strong><em>Returns</em></strong></p>
<p>*ch376firmware version</p>
<h2 id="unsigned-char-ch376_lib_versionvoid">unsigned char ch376_lib_version(void);</h2>
<p><strong><em>Description</em></strong></p>
<p>Get lib version</p>
<p><strong><em>Returns</em></strong>
<em>ch376</em> lib version</p>
<p><strong><em>Returns</em></strong></p>
<p>*ch376lib version</p>
<h2 id="void-ch376_reset_allvoid">void ch376_reset_all(void);</h2>
<p><strong><em>Description</em></strong></p>
<p>reset CH376</p>
<h2 id="unsigned-int-ch376_seek_fileint-position">unsigned int ch376_seek_file(int position);</h2>
<p><strong><em>Returns</em></strong>
<em>ch376</em> status values</p>
<p><strong><em>Description</em></strong></p>
<p>Seek file</p>
<p><strong><em>Returns</em></strong></p>
<p>*ch376status values</p>
<h2 id="void-ch376_set_addressunsigned-char-adress">void ch376_set_address(unsigned char adress);</h2>
<p><strong><em>Description</em></strong></p>
<p>set usb address</p>
<h2 id="void-ch376_set_configunsigned-char-config">void ch376_set_config(unsigned char config);</h2>
<p><strong><em>Description</em></strong></p>
<p>set config for usb device</p>
<h2 id="void-ch376_set_file_namechar-filename">void ch376_set_file_name(char *filename);</h2>
<p><strong><em>Description</em></strong></p>
<p>set file_name</p>
<h2 id="void-ch376_set_usb_addrunsigned-char-adress">void ch376_set_usb_addr(unsigned char adress);</h2>
<p><strong><em>Description</em></strong></p>
<p>Set usb mode</p>
<p>set usb_address</p>
<h2 id="void-ch376_set_usb_modeunsigned-char-mode">void ch376_set_usb_mode(unsigned char mode);</h2>
<p><strong><em>Description</em></strong></p>
<p>Set usb mode</p>
<p><strong><em>Input</em></strong></p>
<h2 id="void-ch376_set_usb_speedunsigned-char-speed">void ch376_set_usb_speed(unsigned char speed);</h2>
<p><strong><em>Description</em></strong></p>
<p>Set usb mode</p>
<p><strong><em>Input</em></strong></p>
<h2 id="unsigned-char-ch376_wait_responsevoid">unsigned char ch376_wait_response(void);</h2>
<p><strong><em>Returns</em></strong>
<em>ch376</em> status values</p></div>
<p><strong><em>Description</em></strong></p>
<p>Perform wait_response</p>
<p><strong><em>Returns</em></strong></p>
<p>*ch376status values</p></div>

<hr>
<div class="md-source-file">
Expand Down
Loading

0 comments on commit 9aecf46

Please sign in to comment.