ports.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <?xml version="1.0" encoding="ISO8859-1"?>
  2. <fpdoc-descriptions>
  3. <!--
  4. $Id$
  5. This file is part of the FPC documentation.
  6. Copyright (C) 1997, by Michael Van Canneyt
  7. The FPC documentation is free text; you can redistribute it and/or
  8. modify it under the terms of the GNU Library General Public License as
  9. published by the Free Software Foundation; either version 2 of the
  10. License, or (at your option) any later version.
  11. The FPC Documentation is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. Library General Public License for more details.
  15. You should have received a copy of the GNU Library General Public
  16. License along with the FPC documentation; see the file COPYING.LIB. If not,
  17. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  18. Boston, MA 02111-1307, USA.
  19. -->
  20. <package name="rtl">
  21. <module name="ports">
  22. <short>Access to hardware ports</short>
  23. <descr>
  24. <p>
  25. The ports unit implements the <var>port</var> constructs found in Turbo Pascal.
  26. It uses classes and default array properties to do this.
  27. </p>
  28. <p>
  29. The unit exists on linux, os/2 and dos. It is implemented only for
  30. compatibility with Turbo Pascal. It's usage is discouraged, because using ports
  31. is not portable programming, and the operating system may not even allow
  32. it (for instance Windows).
  33. </p>
  34. <p>
  35. Under linux, your program must be run as root, or the <var>IOPerm</var> call
  36. must be set in order to set appropriate permissions on the port access.
  37. </p>
  38. </descr>
  39. <element name="TPort">
  40. <short>Type implemented to support integer-sized port access</short>
  41. <descr>
  42. The <var>TPort</var> type is implemented specially for access to the ports
  43. in a TP compatible manner. There is no need to create an instance of this
  44. type: the standard TP variables are instantiated at unit initialization.
  45. </descr>
  46. <seealso>
  47. <link id="port"/>
  48. <link id="TPortW"/>
  49. <link id="TPortL"/>
  50. </seealso>
  51. </element>
  52. <element name="tport.writeport">
  53. <short>Writes an integer of data to a port</short>
  54. <descr>
  55. </descr>
  56. <seealso>
  57. <link id="tport.readport"/>
  58. </seealso>
  59. </element>
  60. <element name="tport.readport">
  61. <short>Reads an integer of data from a port</short>
  62. <descr>
  63. </descr>
  64. <seealso>
  65. <link id="tport.writeport"/>
  66. </seealso>
  67. </element>
  68. <element name="tport.pp">
  69. <short>Access integer-sized port by port number</short>
  70. <descr>
  71. </descr>
  72. </element>
  73. <element name="TPortW">
  74. <short>Type implemented to support word-sized port access</short>
  75. <descr>
  76. The <var>TPortW</var> type is implemented specially for access to the ports
  77. in a TP compatible manner. There is no need to create an instance of this
  78. type: the standard TP variables are instantiated at unit initialization.
  79. </descr>
  80. <seealso>
  81. <link id="portw"/>
  82. <link id="TPort"/>
  83. <link id="TPortL"/>
  84. </seealso>
  85. </element>
  86. <element name="TPortW.writeport">
  87. <short>Writes a word of data to a port</short>
  88. <descr>
  89. </descr>
  90. <seealso>
  91. <link id="TPortW.readport"/>
  92. </seealso>
  93. </element>
  94. <element name="TPortW.readport">
  95. <short>Reads a word of data from a port</short>
  96. <descr>
  97. </descr>
  98. <seealso>
  99. <link id="TPortW.writeport"/>
  100. </seealso>
  101. </element>
  102. <element name="TPortW.pp">
  103. <short>Access word-sized port by port number</short>
  104. <descr>
  105. </descr>
  106. </element>
  107. <element name="TPortL">
  108. <short>Type implemented to support Longint-sized port access</short>
  109. <descr>
  110. The <var>TPortL</var> type is implemented specially for access to the ports
  111. in a TP compatible manner. There is no need to create an instance of this
  112. type: the standard TP variables are instantiated at unit initialization.
  113. </descr>
  114. <seealso>
  115. <link id="portw"/>
  116. <link id="TPort"/>
  117. <link id="TPortL"/>
  118. </seealso>
  119. </element>
  120. <element name="TPortL.writeport">
  121. <short>Writes a Longint of data to a port</short>
  122. <descr>
  123. </descr>
  124. <seealso>
  125. <link id="TPortL.readport"/>
  126. </seealso>
  127. </element>
  128. <element name="TPortL.readport">
  129. <short>Reads a Longint of data from a port</short>
  130. <descr>
  131. </descr>
  132. <seealso>
  133. <link id="TPortL.writeport"/>
  134. </seealso>
  135. </element>
  136. <element name="TPortL.pp">
  137. <short>Access Longint-sized port by port number</short>
  138. <descr>
  139. </descr>
  140. </element>
  141. <element name="Port">
  142. <short>Provide port access per integer</short>
  143. <descr>
  144. <p>
  145. Default instance of type <link id="TPort"/>. Do not free. This variable is
  146. initialized in the unit initialization code, and freed at finalization.
  147. </p>
  148. <p>
  149. Since there is a default property for a variable of this type, a sentence as
  150. </p>
  151. <code>
  152. port[221]:=12;
  153. </code>
  154. <p>
  155. Will result in the integer 12 being written to port 221, if port is defined
  156. as a variable of type <var>tport</var>
  157. </p>
  158. </descr>
  159. </element>
  160. <element name="Portb">
  161. <short>Provide port access per byte</short>
  162. <descr>
  163. <p>
  164. Default instance of type <link id="TPort"/>. Do not free. This variable is
  165. initialized in the unit initialization code, and freed at finalization.
  166. </p>
  167. <p>
  168. Since there is a default property for a variable of this type, a sentence as
  169. </p>
  170. <code>
  171. portb[221]:=12;
  172. </code>
  173. <p>
  174. Will result in the byte 12 being written to port 221, if port is defined
  175. as a variable of type <var>tport</var>
  176. </p>
  177. </descr>
  178. </element>
  179. <element name="PortW">
  180. <short>Provide port access per word</short>
  181. <descr>
  182. <p>
  183. Default instance of type <link id="TPortW"/>. Do not free. This variable is
  184. initialized in the unit initialization code, and freed at finalization.
  185. </p>
  186. <p>
  187. Since there is a default property for a variable of this type, a sentence as
  188. </p>
  189. <code>
  190. portb[221]:=12;
  191. </code>
  192. <p>
  193. Will result in the word 12 being written to port 221, if port is defined
  194. as a variable of type <var>tport</var>
  195. </p>
  196. </descr>
  197. </element>
  198. <element name="PortL">
  199. <short>Provide port access per longint</short>
  200. <descr>
  201. <p>
  202. Default instance of type <link id="TPortL"/>. Do not free. This variable is
  203. initialized in the unit initialization code, and freed at finalization.
  204. </p>
  205. <p>
  206. Since there is a default property for a variable of this type, a sentence as
  207. </p>
  208. <code>
  209. portl[221]:=12;
  210. </code>
  211. <p>
  212. Will result in the longint 12 being written to port 221, if port is defined
  213. as a variable of type <var>tport</var>
  214. </p>
  215. </descr>
  216. </element>
  217. </module>
  218. </package>
  219. </fpdoc-descriptions>