A clone of: https://github.com/nutechsoftware/alarmdecoder This is requires as they dropped support for older firmware releases w/o building in backward compatibility code, and they had previously hardcoded pyserial to a python2 only version.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

691 lines
44 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>pyad2usb Package &mdash; pyad2usb documentation</title>
  7. <link rel="stylesheet" href="_static/default.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: './',
  12. VERSION: '',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="_static/jquery.js"></script>
  19. <script type="text/javascript" src="_static/underscore.js"></script>
  20. <script type="text/javascript" src="_static/doctools.js"></script>
  21. <link rel="top" title="pyad2usb documentation" href="index.html" />
  22. <link rel="next" title="event Package" href="pyad2usb.event.html" />
  23. <link rel="prev" title="Welcome to pyad2usb’s documentation!" href="index.html" />
  24. </head>
  25. <body>
  26. <div class="related">
  27. <h3>Navigation</h3>
  28. <ul>
  29. <li class="right" style="margin-right: 10px">
  30. <a href="genindex.html" title="General Index"
  31. accesskey="I">index</a></li>
  32. <li class="right" >
  33. <a href="py-modindex.html" title="Python Module Index"
  34. >modules</a> |</li>
  35. <li class="right" >
  36. <a href="pyad2usb.event.html" title="event Package"
  37. accesskey="N">next</a> |</li>
  38. <li class="right" >
  39. <a href="index.html" title="Welcome to pyad2usb’s documentation!"
  40. accesskey="P">previous</a> |</li>
  41. <li><a href="index.html">pyad2usb documentation</a> &raquo;</li>
  42. </ul>
  43. </div>
  44. <div class="document">
  45. <div class="documentwrapper">
  46. <div class="bodywrapper">
  47. <div class="body">
  48. <div class="section" id="pyad2usb-package">
  49. <h1>pyad2usb Package<a class="headerlink" href="#pyad2usb-package" title="Permalink to this headline">¶</a></h1>
  50. <div class="section" id="id1">
  51. <h2><tt class="xref py py-mod docutils literal"><span class="pre">pyad2usb</span></tt> Package<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
  52. <span class="target" id="module-pyad2usb.__init__"></span><p>The PyAD2USB module.</p>
  53. </div>
  54. <div class="section" id="module-pyad2usb.ad2usb">
  55. <span id="ad2usb-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">ad2usb</span></tt> Module<a class="headerlink" href="#module-pyad2usb.ad2usb" title="Permalink to this headline">¶</a></h2>
  56. <p>Provides the full AD2USB class and factory.</p>
  57. <dl class="class">
  58. <dt id="pyad2usb.ad2usb.AD2USB">
  59. <em class="property">class </em><tt class="descclassname">pyad2usb.ad2usb.</tt><tt class="descname">AD2USB</tt><big>(</big><em>device</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#AD2USB"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB" title="Permalink to this definition">¶</a></dt>
  60. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  61. <p>High-level wrapper around AD2USB/AD2SERIAL devices.</p>
  62. <dl class="attribute">
  63. <dt id="pyad2usb.ad2usb.AD2USB.F1">
  64. <tt class="descname">F1</tt><em class="property"> = u'\x01\x01\x01'</em><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.F1" title="Permalink to this definition">¶</a></dt>
  65. <dd></dd></dl>
  66. <dl class="attribute">
  67. <dt id="pyad2usb.ad2usb.AD2USB.F2">
  68. <tt class="descname">F2</tt><em class="property"> = u'\x02\x02\x02'</em><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.F2" title="Permalink to this definition">¶</a></dt>
  69. <dd></dd></dl>
  70. <dl class="attribute">
  71. <dt id="pyad2usb.ad2usb.AD2USB.F3">
  72. <tt class="descname">F3</tt><em class="property"> = u'\x03\x03\x03'</em><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.F3" title="Permalink to this definition">¶</a></dt>
  73. <dd></dd></dl>
  74. <dl class="attribute">
  75. <dt id="pyad2usb.ad2usb.AD2USB.F4">
  76. <tt class="descname">F4</tt><em class="property"> = u'\x04\x04\x04'</em><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.F4" title="Permalink to this definition">¶</a></dt>
  77. <dd></dd></dl>
  78. <dl class="method">
  79. <dt id="pyad2usb.ad2usb.AD2USB.close">
  80. <tt class="descname">close</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#AD2USB.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.close" title="Permalink to this definition">¶</a></dt>
  81. <dd><p>Closes the device.</p>
  82. </dd></dl>
  83. <dl class="method">
  84. <dt id="pyad2usb.ad2usb.AD2USB.get_config">
  85. <tt class="descname">get_config</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#AD2USB.get_config"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.get_config" title="Permalink to this definition">¶</a></dt>
  86. <dd><p>Retrieves the configuration from the device.</p>
  87. </dd></dl>
  88. <dl class="attribute">
  89. <dt id="pyad2usb.ad2usb.AD2USB.id">
  90. <tt class="descname">id</tt><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#AD2USB.id"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.id" title="Permalink to this definition">¶</a></dt>
  91. <dd></dd></dl>
  92. <dl class="attribute">
  93. <dt id="pyad2usb.ad2usb.AD2USB.on_alarm">
  94. <tt class="descname">on_alarm</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_alarm" title="Permalink to this definition">¶</a></dt>
  95. <dd><p>Called when the alarm is triggered.</p>
  96. </dd></dl>
  97. <dl class="attribute">
  98. <dt id="pyad2usb.ad2usb.AD2USB.on_boot">
  99. <tt class="descname">on_boot</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_boot" title="Permalink to this definition">¶</a></dt>
  100. <dd><p>Called when the device finishes bootings.</p>
  101. </dd></dl>
  102. <dl class="attribute">
  103. <dt id="pyad2usb.ad2usb.AD2USB.on_bypass">
  104. <tt class="descname">on_bypass</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_bypass" title="Permalink to this definition">¶</a></dt>
  105. <dd><p>Called when a zone is bypassed.</p>
  106. </dd></dl>
  107. <dl class="attribute">
  108. <dt id="pyad2usb.ad2usb.AD2USB.on_close">
  109. <tt class="descname">on_close</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_close" title="Permalink to this definition">¶</a></dt>
  110. <dd><p>Called when the device has been closed.</p>
  111. </dd></dl>
  112. <dl class="attribute">
  113. <dt id="pyad2usb.ad2usb.AD2USB.on_config_received">
  114. <tt class="descname">on_config_received</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_config_received" title="Permalink to this definition">¶</a></dt>
  115. <dd><p>Called when the device receives its configuration.</p>
  116. </dd></dl>
  117. <dl class="attribute">
  118. <dt id="pyad2usb.ad2usb.AD2USB.on_message">
  119. <tt class="descname">on_message</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_message" title="Permalink to this definition">¶</a></dt>
  120. <dd><p>Called when a message has been received from the device.</p>
  121. </dd></dl>
  122. <dl class="attribute">
  123. <dt id="pyad2usb.ad2usb.AD2USB.on_open">
  124. <tt class="descname">on_open</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_open" title="Permalink to this definition">¶</a></dt>
  125. <dd><p>Called when the device has been opened.</p>
  126. </dd></dl>
  127. <dl class="attribute">
  128. <dt id="pyad2usb.ad2usb.AD2USB.on_power_changed">
  129. <tt class="descname">on_power_changed</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_power_changed" title="Permalink to this definition">¶</a></dt>
  130. <dd><p>Called when panel power switches between AC and DC.</p>
  131. </dd></dl>
  132. <dl class="attribute">
  133. <dt id="pyad2usb.ad2usb.AD2USB.on_read">
  134. <tt class="descname">on_read</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_read" title="Permalink to this definition">¶</a></dt>
  135. <dd><p>Called when a line has been read from the device.</p>
  136. </dd></dl>
  137. <dl class="attribute">
  138. <dt id="pyad2usb.ad2usb.AD2USB.on_status_changed">
  139. <tt class="descname">on_status_changed</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_status_changed" title="Permalink to this definition">¶</a></dt>
  140. <dd><p>Called when the panel status changes.</p>
  141. </dd></dl>
  142. <dl class="attribute">
  143. <dt id="pyad2usb.ad2usb.AD2USB.on_write">
  144. <tt class="descname">on_write</tt><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.on_write" title="Permalink to this definition">¶</a></dt>
  145. <dd><p>Called when data has been written to the device.</p>
  146. </dd></dl>
  147. <dl class="method">
  148. <dt id="pyad2usb.ad2usb.AD2USB.open">
  149. <tt class="descname">open</tt><big>(</big><em>baudrate=None</em>, <em>interface=None</em>, <em>index=None</em>, <em>no_reader_thread=False</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#AD2USB.open"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.open" title="Permalink to this definition">¶</a></dt>
  150. <dd><p>Opens the device.</p>
  151. </dd></dl>
  152. <dl class="method">
  153. <dt id="pyad2usb.ad2usb.AD2USB.reboot">
  154. <tt class="descname">reboot</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#AD2USB.reboot"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.reboot" title="Permalink to this definition">¶</a></dt>
  155. <dd><p>Reboots the device.</p>
  156. </dd></dl>
  157. <dl class="method">
  158. <dt id="pyad2usb.ad2usb.AD2USB.set_config">
  159. <tt class="descname">set_config</tt><big>(</big><em>settings</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#AD2USB.set_config"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.AD2USB.set_config" title="Permalink to this definition">¶</a></dt>
  160. <dd><p>Sets configuration entries on the device.</p>
  161. </dd></dl>
  162. </dd></dl>
  163. <dl class="class">
  164. <dt id="pyad2usb.ad2usb.ExpanderMessage">
  165. <em class="property">class </em><tt class="descclassname">pyad2usb.ad2usb.</tt><tt class="descname">ExpanderMessage</tt><big>(</big><em>data=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#ExpanderMessage"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.ExpanderMessage" title="Permalink to this definition">¶</a></dt>
  166. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  167. <p>Represents a message from a zone or relay expansion module.</p>
  168. <dl class="attribute">
  169. <dt id="pyad2usb.ad2usb.ExpanderMessage.RELAY">
  170. <tt class="descname">RELAY</tt><em class="property"> = 1</em><a class="headerlink" href="#pyad2usb.ad2usb.ExpanderMessage.RELAY" title="Permalink to this definition">¶</a></dt>
  171. <dd></dd></dl>
  172. <dl class="attribute">
  173. <dt id="pyad2usb.ad2usb.ExpanderMessage.ZONE">
  174. <tt class="descname">ZONE</tt><em class="property"> = 0</em><a class="headerlink" href="#pyad2usb.ad2usb.ExpanderMessage.ZONE" title="Permalink to this definition">¶</a></dt>
  175. <dd></dd></dl>
  176. </dd></dl>
  177. <dl class="class">
  178. <dt id="pyad2usb.ad2usb.LRRMessage">
  179. <em class="property">class </em><tt class="descclassname">pyad2usb.ad2usb.</tt><tt class="descname">LRRMessage</tt><big>(</big><em>data=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#LRRMessage"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.LRRMessage" title="Permalink to this definition">¶</a></dt>
  180. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  181. <p>Represent a message from a Long Range Radio.</p>
  182. </dd></dl>
  183. <dl class="class">
  184. <dt id="pyad2usb.ad2usb.Message">
  185. <em class="property">class </em><tt class="descclassname">pyad2usb.ad2usb.</tt><tt class="descname">Message</tt><big>(</big><em>data=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Message"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Message" title="Permalink to this definition">¶</a></dt>
  186. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  187. <p>Represents a message from the alarm panel.</p>
  188. </dd></dl>
  189. <dl class="class">
  190. <dt id="pyad2usb.ad2usb.Overseer">
  191. <em class="property">class </em><tt class="descclassname">pyad2usb.ad2usb.</tt><tt class="descname">Overseer</tt><big>(</big><em>attached_event=None</em>, <em>detached_event=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer" title="Permalink to this definition">¶</a></dt>
  192. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  193. <p>Factory for creation of AD2USB devices as well as provide4s attach/detach events.&#8221;</p>
  194. <dl class="class">
  195. <dt id="pyad2usb.ad2usb.Overseer.DetectThread">
  196. <em class="property">class </em><tt class="descname">DetectThread</tt><big>(</big><em>overseer</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.DetectThread"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.DetectThread" title="Permalink to this definition">¶</a></dt>
  197. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">threading.Thread</span></tt></p>
  198. <p>Thread that handles detection of added/removed devices.</p>
  199. <dl class="method">
  200. <dt id="pyad2usb.ad2usb.Overseer.DetectThread.run">
  201. <tt class="descname">run</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.DetectThread.run"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.DetectThread.run" title="Permalink to this definition">¶</a></dt>
  202. <dd><p>The actual detection process.</p>
  203. </dd></dl>
  204. <dl class="method">
  205. <dt id="pyad2usb.ad2usb.Overseer.DetectThread.stop">
  206. <tt class="descname">stop</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.DetectThread.stop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.DetectThread.stop" title="Permalink to this definition">¶</a></dt>
  207. <dd><p>Stops the thread.</p>
  208. </dd></dl>
  209. </dd></dl>
  210. <dl class="method">
  211. <dt id="pyad2usb.ad2usb.Overseer.close">
  212. <tt class="descclassname">Overseer.</tt><tt class="descname">close</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.close" title="Permalink to this definition">¶</a></dt>
  213. <dd><p>Clean up and shut down.</p>
  214. </dd></dl>
  215. <dl class="classmethod">
  216. <dt id="pyad2usb.ad2usb.Overseer.create">
  217. <em class="property">classmethod </em><tt class="descclassname">Overseer.</tt><tt class="descname">create</tt><big>(</big><em>device=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.create"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.create" title="Permalink to this definition">¶</a></dt>
  218. <dd><p>Factory method that returns the requested AD2USB device, or the first device.</p>
  219. </dd></dl>
  220. <dl class="classmethod">
  221. <dt id="pyad2usb.ad2usb.Overseer.devices">
  222. <em class="property">classmethod </em><tt class="descclassname">Overseer.</tt><tt class="descname">devices</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.devices"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.devices" title="Permalink to this definition">¶</a></dt>
  223. <dd><p>Returns a cached list of AD2USB devices located on the system.</p>
  224. </dd></dl>
  225. <dl class="classmethod">
  226. <dt id="pyad2usb.ad2usb.Overseer.find_all">
  227. <em class="property">classmethod </em><tt class="descclassname">Overseer.</tt><tt class="descname">find_all</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.find_all"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.find_all" title="Permalink to this definition">¶</a></dt>
  228. <dd><p>Returns all AD2USB devices located on the system.</p>
  229. </dd></dl>
  230. <dl class="method">
  231. <dt id="pyad2usb.ad2usb.Overseer.get_device">
  232. <tt class="descclassname">Overseer.</tt><tt class="descname">get_device</tt><big>(</big><em>device=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.get_device"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.get_device" title="Permalink to this definition">¶</a></dt>
  233. <dd><p>Factory method that returns the requested AD2USB device, or the first device.</p>
  234. </dd></dl>
  235. <dl class="attribute">
  236. <dt id="pyad2usb.ad2usb.Overseer.on_attached">
  237. <tt class="descclassname">Overseer.</tt><tt class="descname">on_attached</tt><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.on_attached" title="Permalink to this definition">¶</a></dt>
  238. <dd><p>Called when an AD2USB device has been detected.</p>
  239. </dd></dl>
  240. <dl class="attribute">
  241. <dt id="pyad2usb.ad2usb.Overseer.on_detached">
  242. <tt class="descclassname">Overseer.</tt><tt class="descname">on_detached</tt><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.on_detached" title="Permalink to this definition">¶</a></dt>
  243. <dd><p>Called when an AD2USB device has been removed.</p>
  244. </dd></dl>
  245. <dl class="method">
  246. <dt id="pyad2usb.ad2usb.Overseer.start">
  247. <tt class="descclassname">Overseer.</tt><tt class="descname">start</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.start"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.start" title="Permalink to this definition">¶</a></dt>
  248. <dd><p>Starts the detection thread, if not already running.</p>
  249. </dd></dl>
  250. <dl class="method">
  251. <dt id="pyad2usb.ad2usb.Overseer.stop">
  252. <tt class="descclassname">Overseer.</tt><tt class="descname">stop</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#Overseer.stop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.Overseer.stop" title="Permalink to this definition">¶</a></dt>
  253. <dd><p>Stops the detection thread.</p>
  254. </dd></dl>
  255. </dd></dl>
  256. <dl class="class">
  257. <dt id="pyad2usb.ad2usb.RFMessage">
  258. <em class="property">class </em><tt class="descclassname">pyad2usb.ad2usb.</tt><tt class="descname">RFMessage</tt><big>(</big><em>data=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/ad2usb.html#RFMessage"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.ad2usb.RFMessage" title="Permalink to this definition">¶</a></dt>
  259. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  260. <p>Represents a message from an RF receiver.</p>
  261. </dd></dl>
  262. </div>
  263. <div class="section" id="module-pyad2usb.devices">
  264. <span id="devices-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">devices</span></tt> Module<a class="headerlink" href="#module-pyad2usb.devices" title="Permalink to this headline">¶</a></h2>
  265. <p>Contains different types of devices belonging to the AD2USB family.</p>
  266. <dl class="class">
  267. <dt id="pyad2usb.devices.Device">
  268. <em class="property">class </em><tt class="descclassname">pyad2usb.devices.</tt><tt class="descname">Device</tt><a class="reference internal" href="_modules/pyad2usb/devices.html#Device"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.Device" title="Permalink to this definition">¶</a></dt>
  269. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  270. <p>Generic parent device to all AD2USB products.</p>
  271. <dl class="class">
  272. <dt id="pyad2usb.devices.Device.ReadThread">
  273. <em class="property">class </em><tt class="descname">ReadThread</tt><big>(</big><em>device</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#Device.ReadThread"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.Device.ReadThread" title="Permalink to this definition">¶</a></dt>
  274. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">threading.Thread</span></tt></p>
  275. <p>Reader thread which processes messages from the device.</p>
  276. <dl class="attribute">
  277. <dt id="pyad2usb.devices.Device.ReadThread.READ_TIMEOUT">
  278. <tt class="descname">READ_TIMEOUT</tt><em class="property"> = 10</em><a class="headerlink" href="#pyad2usb.devices.Device.ReadThread.READ_TIMEOUT" title="Permalink to this definition">¶</a></dt>
  279. <dd></dd></dl>
  280. <dl class="method">
  281. <dt id="pyad2usb.devices.Device.ReadThread.run">
  282. <tt class="descname">run</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#Device.ReadThread.run"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.Device.ReadThread.run" title="Permalink to this definition">¶</a></dt>
  283. <dd><p>The actual read process.</p>
  284. </dd></dl>
  285. <dl class="method">
  286. <dt id="pyad2usb.devices.Device.ReadThread.stop">
  287. <tt class="descname">stop</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#Device.ReadThread.stop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.Device.ReadThread.stop" title="Permalink to this definition">¶</a></dt>
  288. <dd><p>Stops the running thread.</p>
  289. </dd></dl>
  290. </dd></dl>
  291. <dl class="attribute">
  292. <dt id="pyad2usb.devices.Device.id">
  293. <tt class="descclassname">Device.</tt><tt class="descname">id</tt><a class="reference internal" href="_modules/pyad2usb/devices.html#Device.id"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.Device.id" title="Permalink to this definition">¶</a></dt>
  294. <dd></dd></dl>
  295. <dl class="method">
  296. <dt id="pyad2usb.devices.Device.is_reader_alive">
  297. <tt class="descclassname">Device.</tt><tt class="descname">is_reader_alive</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#Device.is_reader_alive"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.Device.is_reader_alive" title="Permalink to this definition">¶</a></dt>
  298. <dd><p>Indicates whether or not the reader thread is alive.</p>
  299. </dd></dl>
  300. <dl class="attribute">
  301. <dt id="pyad2usb.devices.Device.on_close">
  302. <tt class="descclassname">Device.</tt><tt class="descname">on_close</tt><a class="headerlink" href="#pyad2usb.devices.Device.on_close" title="Permalink to this definition">¶</a></dt>
  303. <dd><p>Called when the device has been closed</p>
  304. </dd></dl>
  305. <dl class="attribute">
  306. <dt id="pyad2usb.devices.Device.on_open">
  307. <tt class="descclassname">Device.</tt><tt class="descname">on_open</tt><a class="headerlink" href="#pyad2usb.devices.Device.on_open" title="Permalink to this definition">¶</a></dt>
  308. <dd><p>Called when the device has been opened</p>
  309. </dd></dl>
  310. <dl class="attribute">
  311. <dt id="pyad2usb.devices.Device.on_read">
  312. <tt class="descclassname">Device.</tt><tt class="descname">on_read</tt><a class="headerlink" href="#pyad2usb.devices.Device.on_read" title="Permalink to this definition">¶</a></dt>
  313. <dd><p>Called when a line has been read from the device</p>
  314. </dd></dl>
  315. <dl class="attribute">
  316. <dt id="pyad2usb.devices.Device.on_write">
  317. <tt class="descclassname">Device.</tt><tt class="descname">on_write</tt><a class="headerlink" href="#pyad2usb.devices.Device.on_write" title="Permalink to this definition">¶</a></dt>
  318. <dd><p>Called when data has been written to the device</p>
  319. </dd></dl>
  320. <dl class="method">
  321. <dt id="pyad2usb.devices.Device.stop_reader">
  322. <tt class="descclassname">Device.</tt><tt class="descname">stop_reader</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#Device.stop_reader"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.Device.stop_reader" title="Permalink to this definition">¶</a></dt>
  323. <dd><p>Stops the reader thread.</p>
  324. </dd></dl>
  325. </dd></dl>
  326. <dl class="class">
  327. <dt id="pyad2usb.devices.SerialDevice">
  328. <em class="property">class </em><tt class="descclassname">pyad2usb.devices.</tt><tt class="descname">SerialDevice</tt><big>(</big><em>interface=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SerialDevice"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SerialDevice" title="Permalink to this definition">¶</a></dt>
  329. <dd><p>Bases: <a class="reference internal" href="#pyad2usb.devices.Device" title="pyad2usb.devices.Device"><tt class="xref py py-class docutils literal"><span class="pre">pyad2usb.devices.Device</span></tt></a></p>
  330. <p>AD2USB or AD2SERIAL device exposed with the pyserial interface.</p>
  331. <dl class="attribute">
  332. <dt id="pyad2usb.devices.SerialDevice.BAUDRATE">
  333. <tt class="descname">BAUDRATE</tt><em class="property"> = 19200</em><a class="headerlink" href="#pyad2usb.devices.SerialDevice.BAUDRATE" title="Permalink to this definition">¶</a></dt>
  334. <dd></dd></dl>
  335. <dl class="method">
  336. <dt id="pyad2usb.devices.SerialDevice.close">
  337. <tt class="descname">close</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SerialDevice.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SerialDevice.close" title="Permalink to this definition">¶</a></dt>
  338. <dd><p>Closes the device.</p>
  339. </dd></dl>
  340. <dl class="staticmethod">
  341. <dt id="pyad2usb.devices.SerialDevice.find_all">
  342. <em class="property">static </em><tt class="descname">find_all</tt><big>(</big><em>pattern=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SerialDevice.find_all"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SerialDevice.find_all" title="Permalink to this definition">¶</a></dt>
  343. <dd><p>Returns all serial ports present.</p>
  344. </dd></dl>
  345. <dl class="method">
  346. <dt id="pyad2usb.devices.SerialDevice.open">
  347. <tt class="descname">open</tt><big>(</big><em>baudrate=19200</em>, <em>interface=None</em>, <em>index=None</em>, <em>no_reader_thread=False</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SerialDevice.open"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SerialDevice.open" title="Permalink to this definition">¶</a></dt>
  348. <dd><p>Opens the device.</p>
  349. </dd></dl>
  350. <dl class="method">
  351. <dt id="pyad2usb.devices.SerialDevice.read">
  352. <tt class="descname">read</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SerialDevice.read"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SerialDevice.read" title="Permalink to this definition">¶</a></dt>
  353. <dd><p>Reads a single character from the device.</p>
  354. </dd></dl>
  355. <dl class="method">
  356. <dt id="pyad2usb.devices.SerialDevice.read_line">
  357. <tt class="descname">read_line</tt><big>(</big><em>timeout=0.0</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SerialDevice.read_line"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SerialDevice.read_line" title="Permalink to this definition">¶</a></dt>
  358. <dd><p>Reads a line from the device.</p>
  359. </dd></dl>
  360. <dl class="method">
  361. <dt id="pyad2usb.devices.SerialDevice.write">
  362. <tt class="descname">write</tt><big>(</big><em>data</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SerialDevice.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SerialDevice.write" title="Permalink to this definition">¶</a></dt>
  363. <dd><p>Writes data to the device.</p>
  364. </dd></dl>
  365. </dd></dl>
  366. <dl class="class">
  367. <dt id="pyad2usb.devices.SocketDevice">
  368. <em class="property">class </em><tt class="descclassname">pyad2usb.devices.</tt><tt class="descname">SocketDevice</tt><big>(</big><em>interface=('localhost'</em>, <em>10000)</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SocketDevice"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SocketDevice" title="Permalink to this definition">¶</a></dt>
  369. <dd><p>Bases: <a class="reference internal" href="#pyad2usb.devices.Device" title="pyad2usb.devices.Device"><tt class="xref py py-class docutils literal"><span class="pre">pyad2usb.devices.Device</span></tt></a></p>
  370. <p>Device that supports communication with an AD2USB that is exposed via ser2sock or another
  371. Serial to IP interface.</p>
  372. <dl class="method">
  373. <dt id="pyad2usb.devices.SocketDevice.close">
  374. <tt class="descname">close</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SocketDevice.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SocketDevice.close" title="Permalink to this definition">¶</a></dt>
  375. <dd><p>Closes the device.</p>
  376. </dd></dl>
  377. <dl class="method">
  378. <dt id="pyad2usb.devices.SocketDevice.open">
  379. <tt class="descname">open</tt><big>(</big><em>baudrate=None</em>, <em>interface=None</em>, <em>index=0</em>, <em>no_reader_thread=False</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SocketDevice.open"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SocketDevice.open" title="Permalink to this definition">¶</a></dt>
  380. <dd><p>Opens the device.</p>
  381. </dd></dl>
  382. <dl class="method">
  383. <dt id="pyad2usb.devices.SocketDevice.read">
  384. <tt class="descname">read</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SocketDevice.read"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SocketDevice.read" title="Permalink to this definition">¶</a></dt>
  385. <dd><p>Reads a single character from the device.</p>
  386. </dd></dl>
  387. <dl class="method">
  388. <dt id="pyad2usb.devices.SocketDevice.read_line">
  389. <tt class="descname">read_line</tt><big>(</big><em>timeout=0.0</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SocketDevice.read_line"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SocketDevice.read_line" title="Permalink to this definition">¶</a></dt>
  390. <dd><p>Reads a line from the device.</p>
  391. </dd></dl>
  392. <dl class="method">
  393. <dt id="pyad2usb.devices.SocketDevice.write">
  394. <tt class="descname">write</tt><big>(</big><em>data</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#SocketDevice.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.SocketDevice.write" title="Permalink to this definition">¶</a></dt>
  395. <dd><p>Writes data to the device.</p>
  396. </dd></dl>
  397. </dd></dl>
  398. <dl class="class">
  399. <dt id="pyad2usb.devices.USBDevice">
  400. <em class="property">class </em><tt class="descclassname">pyad2usb.devices.</tt><tt class="descname">USBDevice</tt><big>(</big><em>vid=1027</em>, <em>pid=24577</em>, <em>serial=None</em>, <em>description=None</em>, <em>interface=0</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#USBDevice"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.USBDevice" title="Permalink to this definition">¶</a></dt>
  401. <dd><p>Bases: <a class="reference internal" href="#pyad2usb.devices.Device" title="pyad2usb.devices.Device"><tt class="xref py py-class docutils literal"><span class="pre">pyad2usb.devices.Device</span></tt></a></p>
  402. <p>AD2USB device exposed with PyFTDI&#8217;s interface.</p>
  403. <dl class="attribute">
  404. <dt id="pyad2usb.devices.USBDevice.BAUDRATE">
  405. <tt class="descname">BAUDRATE</tt><em class="property"> = 115200</em><a class="headerlink" href="#pyad2usb.devices.USBDevice.BAUDRATE" title="Permalink to this definition">¶</a></dt>
  406. <dd></dd></dl>
  407. <dl class="attribute">
  408. <dt id="pyad2usb.devices.USBDevice.FTDI_PRODUCT_ID">
  409. <tt class="descname">FTDI_PRODUCT_ID</tt><em class="property"> = 24577</em><a class="headerlink" href="#pyad2usb.devices.USBDevice.FTDI_PRODUCT_ID" title="Permalink to this definition">¶</a></dt>
  410. <dd></dd></dl>
  411. <dl class="attribute">
  412. <dt id="pyad2usb.devices.USBDevice.FTDI_VENDOR_ID">
  413. <tt class="descname">FTDI_VENDOR_ID</tt><em class="property"> = 1027</em><a class="headerlink" href="#pyad2usb.devices.USBDevice.FTDI_VENDOR_ID" title="Permalink to this definition">¶</a></dt>
  414. <dd></dd></dl>
  415. <dl class="method">
  416. <dt id="pyad2usb.devices.USBDevice.close">
  417. <tt class="descname">close</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#USBDevice.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.USBDevice.close" title="Permalink to this definition">¶</a></dt>
  418. <dd><p>Closes the device.</p>
  419. </dd></dl>
  420. <dl class="staticmethod">
  421. <dt id="pyad2usb.devices.USBDevice.find_all">
  422. <em class="property">static </em><tt class="descname">find_all</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#USBDevice.find_all"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.USBDevice.find_all" title="Permalink to this definition">¶</a></dt>
  423. <dd><p>Returns all FTDI devices matching our vendor and product IDs.</p>
  424. </dd></dl>
  425. <dl class="method">
  426. <dt id="pyad2usb.devices.USBDevice.open">
  427. <tt class="descname">open</tt><big>(</big><em>baudrate=115200</em>, <em>interface=None</em>, <em>index=0</em>, <em>no_reader_thread=False</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#USBDevice.open"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.USBDevice.open" title="Permalink to this definition">¶</a></dt>
  428. <dd><p>Opens the device.</p>
  429. </dd></dl>
  430. <dl class="method">
  431. <dt id="pyad2usb.devices.USBDevice.read">
  432. <tt class="descname">read</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#USBDevice.read"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.USBDevice.read" title="Permalink to this definition">¶</a></dt>
  433. <dd><p>Reads a single character from the device.</p>
  434. </dd></dl>
  435. <dl class="method">
  436. <dt id="pyad2usb.devices.USBDevice.read_line">
  437. <tt class="descname">read_line</tt><big>(</big><em>timeout=0.0</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#USBDevice.read_line"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.USBDevice.read_line" title="Permalink to this definition">¶</a></dt>
  438. <dd><p>Reads a line from the device.</p>
  439. </dd></dl>
  440. <dl class="method">
  441. <dt id="pyad2usb.devices.USBDevice.write">
  442. <tt class="descname">write</tt><big>(</big><em>data</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/devices.html#USBDevice.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.devices.USBDevice.write" title="Permalink to this definition">¶</a></dt>
  443. <dd><p>Writes data to the device.</p>
  444. </dd></dl>
  445. </dd></dl>
  446. </div>
  447. <div class="section" id="module-pyad2usb.util">
  448. <span id="util-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">util</span></tt> Module<a class="headerlink" href="#module-pyad2usb.util" title="Permalink to this headline">¶</a></h2>
  449. <p>Provides utility classes for the AD2USB devices.</p>
  450. <dl class="exception">
  451. <dt id="pyad2usb.util.CommError">
  452. <em class="property">exception </em><tt class="descclassname">pyad2usb.util.</tt><tt class="descname">CommError</tt><a class="reference internal" href="_modules/pyad2usb/util.html#CommError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.util.CommError" title="Permalink to this definition">¶</a></dt>
  453. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">exceptions.Exception</span></tt></p>
  454. <p>There was an error communicating with the device.</p>
  455. </dd></dl>
  456. <dl class="class">
  457. <dt id="pyad2usb.util.Firmware">
  458. <em class="property">class </em><tt class="descclassname">pyad2usb.util.</tt><tt class="descname">Firmware</tt><a class="reference internal" href="_modules/pyad2usb/util.html#Firmware"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.util.Firmware" title="Permalink to this definition">¶</a></dt>
  459. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  460. <p>Represents firmware for the AD2USB/AD2SERIAL devices.</p>
  461. <dl class="attribute">
  462. <dt id="pyad2usb.util.Firmware.STAGE_BOOT">
  463. <tt class="descname">STAGE_BOOT</tt><em class="property"> = 2</em><a class="headerlink" href="#pyad2usb.util.Firmware.STAGE_BOOT" title="Permalink to this definition">¶</a></dt>
  464. <dd></dd></dl>
  465. <dl class="attribute">
  466. <dt id="pyad2usb.util.Firmware.STAGE_DONE">
  467. <tt class="descname">STAGE_DONE</tt><em class="property"> = 5</em><a class="headerlink" href="#pyad2usb.util.Firmware.STAGE_DONE" title="Permalink to this definition">¶</a></dt>
  468. <dd></dd></dl>
  469. <dl class="attribute">
  470. <dt id="pyad2usb.util.Firmware.STAGE_LOAD">
  471. <tt class="descname">STAGE_LOAD</tt><em class="property"> = 3</em><a class="headerlink" href="#pyad2usb.util.Firmware.STAGE_LOAD" title="Permalink to this definition">¶</a></dt>
  472. <dd></dd></dl>
  473. <dl class="attribute">
  474. <dt id="pyad2usb.util.Firmware.STAGE_START">
  475. <tt class="descname">STAGE_START</tt><em class="property"> = 0</em><a class="headerlink" href="#pyad2usb.util.Firmware.STAGE_START" title="Permalink to this definition">¶</a></dt>
  476. <dd></dd></dl>
  477. <dl class="attribute">
  478. <dt id="pyad2usb.util.Firmware.STAGE_UPLOADING">
  479. <tt class="descname">STAGE_UPLOADING</tt><em class="property"> = 4</em><a class="headerlink" href="#pyad2usb.util.Firmware.STAGE_UPLOADING" title="Permalink to this definition">¶</a></dt>
  480. <dd></dd></dl>
  481. <dl class="attribute">
  482. <dt id="pyad2usb.util.Firmware.STAGE_WAITING">
  483. <tt class="descname">STAGE_WAITING</tt><em class="property"> = 1</em><a class="headerlink" href="#pyad2usb.util.Firmware.STAGE_WAITING" title="Permalink to this definition">¶</a></dt>
  484. <dd></dd></dl>
  485. <dl class="staticmethod">
  486. <dt id="pyad2usb.util.Firmware.upload">
  487. <em class="property">static </em><tt class="descname">upload</tt><big>(</big><em>dev</em>, <em>filename</em>, <em>progress_callback=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/util.html#Firmware.upload"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.util.Firmware.upload" title="Permalink to this definition">¶</a></dt>
  488. <dd><p>Uploads firmware to an AD2USB/AD2SERIAL device.</p>
  489. </dd></dl>
  490. </dd></dl>
  491. <dl class="exception">
  492. <dt id="pyad2usb.util.InvalidMessageError">
  493. <em class="property">exception </em><tt class="descclassname">pyad2usb.util.</tt><tt class="descname">InvalidMessageError</tt><a class="reference internal" href="_modules/pyad2usb/util.html#InvalidMessageError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.util.InvalidMessageError" title="Permalink to this definition">¶</a></dt>
  494. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">exceptions.Exception</span></tt></p>
  495. <p>The format of the panel message was invalid.</p>
  496. </dd></dl>
  497. <dl class="exception">
  498. <dt id="pyad2usb.util.NoDeviceError">
  499. <em class="property">exception </em><tt class="descclassname">pyad2usb.util.</tt><tt class="descname">NoDeviceError</tt><a class="reference internal" href="_modules/pyad2usb/util.html#NoDeviceError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.util.NoDeviceError" title="Permalink to this definition">¶</a></dt>
  500. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">exceptions.Exception</span></tt></p>
  501. <p>No devices found.</p>
  502. </dd></dl>
  503. <dl class="exception">
  504. <dt id="pyad2usb.util.TimeoutError">
  505. <em class="property">exception </em><tt class="descclassname">pyad2usb.util.</tt><tt class="descname">TimeoutError</tt><a class="reference internal" href="_modules/pyad2usb/util.html#TimeoutError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.util.TimeoutError" title="Permalink to this definition">¶</a></dt>
  506. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">exceptions.Exception</span></tt></p>
  507. <p>There was a timeout while trying to communicate with the device.</p>
  508. </dd></dl>
  509. </div>
  510. <div class="section" id="subpackages">
  511. <h2>Subpackages<a class="headerlink" href="#subpackages" title="Permalink to this headline">¶</a></h2>
  512. <div class="toctree-wrapper compound">
  513. <ul>
  514. <li class="toctree-l1"><a class="reference internal" href="pyad2usb.event.html">event Package</a><ul>
  515. <li class="toctree-l2"><a class="reference internal" href="pyad2usb.event.html#id1"><tt class="docutils literal"><span class="pre">event</span></tt> Package</a></li>
  516. <li class="toctree-l2"><a class="reference internal" href="pyad2usb.event.html#module-pyad2usb.event.event"><tt class="docutils literal"><span class="pre">event</span></tt> Module</a></li>
  517. </ul>
  518. </li>
  519. </ul>
  520. </div>
  521. </div>
  522. </div>
  523. </div>
  524. </div>
  525. </div>
  526. <div class="sphinxsidebar">
  527. <div class="sphinxsidebarwrapper">
  528. <h3><a href="index.html">Table Of Contents</a></h3>
  529. <ul>
  530. <li><a class="reference internal" href="#">pyad2usb Package</a><ul>
  531. <li><a class="reference internal" href="#id1"><tt class="docutils literal"><span class="pre">pyad2usb</span></tt> Package</a></li>
  532. <li><a class="reference internal" href="#module-pyad2usb.ad2usb"><tt class="docutils literal"><span class="pre">ad2usb</span></tt> Module</a></li>
  533. <li><a class="reference internal" href="#module-pyad2usb.devices"><tt class="docutils literal"><span class="pre">devices</span></tt> Module</a></li>
  534. <li><a class="reference internal" href="#module-pyad2usb.util"><tt class="docutils literal"><span class="pre">util</span></tt> Module</a></li>
  535. <li><a class="reference internal" href="#subpackages">Subpackages</a><ul>
  536. </ul>
  537. </li>
  538. </ul>
  539. </li>
  540. </ul>
  541. <h4>Previous topic</h4>
  542. <p class="topless"><a href="index.html"
  543. title="previous chapter">Welcome to pyad2usb&#8217;s documentation!</a></p>
  544. <h4>Next topic</h4>
  545. <p class="topless"><a href="pyad2usb.event.html"
  546. title="next chapter">event Package</a></p>
  547. <h3>This Page</h3>
  548. <ul class="this-page-menu">
  549. <li><a href="_sources/pyad2usb.txt"
  550. rel="nofollow">Show Source</a></li>
  551. </ul>
  552. <div id="searchbox" style="display: none">
  553. <h3>Quick search</h3>
  554. <form class="search" action="search.html" method="get">
  555. <input type="text" name="q" />
  556. <input type="submit" value="Go" />
  557. <input type="hidden" name="check_keywords" value="yes" />
  558. <input type="hidden" name="area" value="default" />
  559. </form>
  560. <p class="searchtip" style="font-size: 90%">
  561. Enter search terms or a module, class or function name.
  562. </p>
  563. </div>
  564. <script type="text/javascript">$('#searchbox').show(0);</script>
  565. </div>
  566. </div>
  567. <div class="clearer"></div>
  568. </div>
  569. <div class="related">
  570. <h3>Navigation</h3>
  571. <ul>
  572. <li class="right" style="margin-right: 10px">
  573. <a href="genindex.html" title="General Index"
  574. >index</a></li>
  575. <li class="right" >
  576. <a href="py-modindex.html" title="Python Module Index"
  577. >modules</a> |</li>
  578. <li class="right" >
  579. <a href="pyad2usb.event.html" title="event Package"
  580. >next</a> |</li>
  581. <li class="right" >
  582. <a href="index.html" title="Welcome to pyad2usb’s documentation!"
  583. >previous</a> |</li>
  584. <li><a href="index.html">pyad2usb documentation</a> &raquo;</li>
  585. </ul>
  586. </div>
  587. <div class="footer">
  588. &copy; Copyright 2013, Author.
  589. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2b1.
  590. </div>
  591. </body>
  592. </html>