OLD | NEW |
1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: | 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: |
2 1) The <head> information in this page is significant, should be uniform | 2 1) The <head> information in this page is significant, should be uniform |
3 across api docs and should be edited only with knowledge of the | 3 across api docs and should be edited only with knowledge of the |
4 templating mechanism. | 4 templating mechanism. |
5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a | 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a |
6 browser, it will be re-generated from the template, json schema and | 6 browser, it will be re-generated from the template, json schema and |
7 authored overview content. | 7 authored overview content. |
8 4) The <body>.innerHTML is also generated by an offline step so that this | 8 4) The <body>.innerHTML is also generated by an offline step so that this |
9 page may easily be indexed by search engines. | 9 page may easily be indexed by search engines. |
10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> | 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 <a href="#method-read">read</a> | 181 <a href="#method-read">read</a> |
182 </li><li> | 182 </li><li> |
183 <a href="#method-write">write</a> | 183 <a href="#method-write">write</a> |
184 </li> | 184 </li> |
185 </ol> | 185 </ol> |
186 </li> | 186 </li> |
187 <li> | 187 <li> |
188 <a href="#types">Types</a> | 188 <a href="#types">Types</a> |
189 <ol> | 189 <ol> |
190 <li> | 190 <li> |
| 191 <a href="#type-experimental.serial.OpenOptions">experimental.ser
ial.OpenOptions</a> |
| 192 <ol> |
| 193 </ol> |
| 194 </li><li> |
191 <a href="#type-experimental.serial.OpenInfo">experimental.serial
.OpenInfo</a> | 195 <a href="#type-experimental.serial.OpenInfo">experimental.serial
.OpenInfo</a> |
192 <ol> | 196 <ol> |
193 </ol> | 197 </ol> |
194 </li><li> | 198 </li><li> |
195 <a href="#type-experimental.serial.ReadInfo">experimental.serial
.ReadInfo</a> | 199 <a href="#type-experimental.serial.ReadInfo">experimental.serial
.ReadInfo</a> |
196 <ol> | 200 <ol> |
197 </ol> | 201 </ol> |
198 </li><li> | 202 </li><li> |
199 <a href="#type-experimental.serial.WriteInfo">experimental.seria
l.WriteInfo</a> | 203 <a href="#type-experimental.serial.WriteInfo">experimental.seria
l.WriteInfo</a> |
200 <ol> | 204 <ol> |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 </dl> | 511 </dl> |
508 <!-- CALLBACK --> | 512 <!-- CALLBACK --> |
509 <!-- MIN_VERSION --> | 513 <!-- MIN_VERSION --> |
510 </div> <!-- /description --> | 514 </div> <!-- /description --> |
511 </div><div class="apiItem"> | 515 </div><div class="apiItem"> |
512 <a name="method-open"></a> <!-- method-anchor --> | 516 <a name="method-open"></a> <!-- method-anchor --> |
513 <h4>open</h4> | 517 <h4>open</h4> |
514 <div class="summary"> | 518 <div class="summary"> |
515 <!-- Note: intentionally longer 80 columns --> | 519 <!-- Note: intentionally longer 80 columns --> |
516 <span>chrome.experimental.serial.open</span>(<span class="null
"><span>string</span> | 520 <span>chrome.experimental.serial.open</span>(<span class="null
"><span>string</span> |
517 <var><span>port</span></var></span><span class="null"><spa
n>, </span><span>function</span> | 521 <var><span>port</span></var></span><span class="optional">
<span>, </span><span>experimental.serial.OpenOptions</span> |
| 522 <var><span>options</span></var></span><span class="null"><
span>, </span><span>function</span> |
518 <var><span>OpenCallback</span></var></span>)</div> | 523 <var><span>OpenCallback</span></var></span>)</div> |
519 <div class="description"> | 524 <div class="description"> |
520 <p>Opens a connection to the given serial port.</p> | 525 <p>Opens a connection to the given serial port.</p> |
521 <!-- PARAMETERS --> | 526 <!-- PARAMETERS --> |
522 <h4>Parameters</h4> | 527 <h4>Parameters</h4> |
523 <dl> | 528 <dl> |
524 <div> | 529 <div> |
525 <div> | 530 <div> |
526 <dt> | 531 <dt> |
527 <var>port</var> | 532 <var>port</var> |
(...skipping 12 matching lines...) Expand all Loading... |
540 </dt> | 545 </dt> |
541 <dd>The name of the serial port to open.</dd> | 546 <dd>The name of the serial port to open.</dd> |
542 <!-- OBJECT PROPERTIES --> | 547 <!-- OBJECT PROPERTIES --> |
543 <!-- OBJECT METHODS --> | 548 <!-- OBJECT METHODS --> |
544 <!-- OBJECT EVENT FIELDS --> | 549 <!-- OBJECT EVENT FIELDS --> |
545 <!-- FUNCTION PARAMETERS --> | 550 <!-- FUNCTION PARAMETERS --> |
546 </div> | 551 </div> |
547 </div><div> | 552 </div><div> |
548 <div> | 553 <div> |
549 <dt> | 554 <dt> |
| 555 <var>options</var> |
| 556 <em> |
| 557 <!-- TYPE --> |
| 558 <div style="display:inline"> |
| 559 ( |
| 560 <span class="optional">optional</span> |
| 561 <span id="typeTemplate"> |
| 562 <span> |
| 563 <a href="experimental.serial.html#type-experimental.seri
al.OpenOptions">experimental.serial.OpenOptions</a> |
| 564 </span> |
| 565 </span> |
| 566 ) |
| 567 </div> |
| 568 </em> |
| 569 </dt> |
| 570 <dd>Connection options.</dd> |
| 571 <!-- OBJECT PROPERTIES --> |
| 572 <!-- OBJECT METHODS --> |
| 573 <!-- OBJECT EVENT FIELDS --> |
| 574 <!-- FUNCTION PARAMETERS --> |
| 575 </div> |
| 576 </div><div> |
| 577 <div> |
| 578 <dt> |
550 <var>OpenCallback</var> | 579 <var>OpenCallback</var> |
551 <em> | 580 <em> |
552 <!-- TYPE --> | 581 <!-- TYPE --> |
553 <div style="display:inline"> | 582 <div style="display:inline"> |
554 ( | 583 ( |
555 <span id="typeTemplate"> | 584 <span id="typeTemplate"> |
556 <span> | 585 <span> |
557 <span>function</span> | 586 <span>function</span> |
558 </span> | 587 </span> |
559 </span> | 588 </span> |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 </div> <!-- /apiItem --> | 870 </div> <!-- /apiItem --> |
842 </div> <!-- /apiGroup --> | 871 </div> <!-- /apiGroup --> |
843 <!-- EVENTS --> | 872 <!-- EVENTS --> |
844 <!-- /apiGroup --> | 873 <!-- /apiGroup --> |
845 <!-- TYPES --> | 874 <!-- TYPES --> |
846 <div class="apiGroup"> | 875 <div class="apiGroup"> |
847 <a name="types"></a> | 876 <a name="types"></a> |
848 <h3 id="types">Types</h3> | 877 <h3 id="types">Types</h3> |
849 <!-- iterates over all types --> | 878 <!-- iterates over all types --> |
850 <div class="apiItem"> | 879 <div class="apiItem"> |
| 880 <a name="type-experimental.serial.OpenOptions"></a> |
| 881 <h4>experimental.serial.OpenOptions</h4> |
| 882 <div> |
| 883 <dt> |
| 884 <em> |
| 885 <!-- TYPE --> |
| 886 <div style="display:inline"> |
| 887 ( |
| 888 <span id="typeTemplate"> |
| 889 <span> |
| 890 <span>object</span> |
| 891 </span> |
| 892 </span> |
| 893 ) |
| 894 </div> |
| 895 </em> |
| 896 </dt> |
| 897 <dd class="todo"> |
| 898 Undocumented. |
| 899 </dd> |
| 900 <!-- OBJECT PROPERTIES --> |
| 901 <dd> |
| 902 <dl> |
| 903 <div> |
| 904 <div> |
| 905 <dt> |
| 906 <var>bitrate</var> |
| 907 <em> |
| 908 <!-- TYPE --> |
| 909 <div style="display:inline"> |
| 910 ( |
| 911 <span id="typeTemplate"> |
| 912 <span> |
| 913 <span>integer</span> |
| 914 </span> |
| 915 </span> |
| 916 ) |
| 917 </div> |
| 918 </em> |
| 919 </dt> |
| 920 <dd>The requested bitrate of the connection to be opened. For compatib
ility with the widest range of hardware, this number should match one of commonl
y-available bitrates, such as 110, 300, 1200, 2400, 4800, 9600, 14400, 19200, 38
400, 57600, 115200. There is no guarantee, of course, that the device connected
to the serial port will support the requested bitrate, even if the port itself s
upports that bitrate.</dd> |
| 921 <!-- OBJECT PROPERTIES --> |
| 922 <!-- OBJECT METHODS --> |
| 923 <!-- OBJECT EVENT FIELDS --> |
| 924 <!-- FUNCTION PARAMETERS --> |
| 925 </div> |
| 926 </div> |
| 927 </dl> |
| 928 </dd> |
| 929 <!-- OBJECT METHODS --> |
| 930 <!-- OBJECT EVENT FIELDS --> |
| 931 <!-- FUNCTION PARAMETERS --> |
| 932 </div> |
| 933 </div><div class="apiItem"> |
851 <a name="type-experimental.serial.OpenInfo"></a> | 934 <a name="type-experimental.serial.OpenInfo"></a> |
852 <h4>experimental.serial.OpenInfo</h4> | 935 <h4>experimental.serial.OpenInfo</h4> |
853 <div> | 936 <div> |
854 <dt> | 937 <dt> |
855 <em> | 938 <em> |
856 <!-- TYPE --> | 939 <!-- TYPE --> |
857 <div style="display:inline"> | 940 <div style="display:inline"> |
858 ( | 941 ( |
859 <span id="typeTemplate"> | 942 <span id="typeTemplate"> |
860 <span> | 943 <span> |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 _uff=0; | 1157 _uff=0; |
1075 urchinTracker(); | 1158 urchinTracker(); |
1076 } | 1159 } |
1077 catch(e) {/* urchinTracker not available. */} | 1160 catch(e) {/* urchinTracker not available. */} |
1078 </script> | 1161 </script> |
1079 <!-- end analytics --> | 1162 <!-- end analytics --> |
1080 </div> | 1163 </div> |
1081 </div> <!-- /gc-footer --> | 1164 </div> <!-- /gc-footer --> |
1082 </div> <!-- /gc-container --> | 1165 </div> <!-- /gc-container --> |
1083 </body></html> | 1166 </body></html> |
OLD | NEW |