⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cardbus.html

📁 CardBus代码驱动等有用资料
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="<clinit>()"><!-- --></A><H3>
<clinit></H3>
<PRE>
static void <B><clinit></B>()</PRE>
<DL>
</DL>
<HR>

<A NAME="closeConnections()"><!-- --></A><H3>
closeConnections</H3>
<PRE>
public static void <B>closeConnections</B>()</PRE>
<DL>
<DD>Disposes a handle to the driver. This method will never throw any exceptions,
 not even if a handle wasn't established in the first place.
 Handles can be kept for long periods of time and it is NOT recommended
 that the handle be disposed after each access with the hardware.</DL>
<HR>

<A NAME="connect()"><!-- --></A><H3>
connect</H3>
<PRE>
public static void <B>connect</B>()
                    throws <A >CardbusGetHandleException</A></PRE>
<DL>
<DD>Gets handle to the driver. Before any communiation with the hardware
 can take place, a handle must be established. The handle can be kept
 for long periods of time and it is NOT recommended that the handle be
 disposed after each access with the hardware.<DD><DL>
<DT><B>Throws:</B><DD><CODE><A >CardbusGetHandleException</A></CODE> - if there was a problem</DL>
</DD>
</DL>
<HR>

<A NAME="connect(int)"><!-- --></A><H3>
connect</H3>
<PRE>
public static boolean <B>connect</B>(int&nbsp;device_number)</PRE>
<DL>
<DD>Gets handle to the driver. Before any communiation with the hardware
 can take place, a handle must be established. The handle can be kept
 for long periods of time and it is NOT recommended that the handle be
 disposed after each access with the hardware.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>device_number</CODE> - for the appropriate device<DT><B>Returns:</B><DD>true if connection is established</DL>
</DD>
</DL>
<HR>

<A NAME="getPortNames()"><!-- --></A><H3>
getPortNames</H3>
<PRE>
public static java.lang.String[] <B>getPortNames</B>()</PRE>
<DL>
<DD>Finds the names of all the available CardBus devices on the computer in use.<DD><DL>
<DT><B>Returns:</B><DD>a <code>String[]</code> array containg the names of the CardBus devices found</DL>
</DD>
</DL>
<HR>

<A NAME="readIoFixAddr8bit(int, int, byte[])"><!-- --></A><H3>
readIoFixAddr8bit</H3>
<PRE>
public int <B>readIoFixAddr8bit</B>(int&nbsp;address,
                             int&nbsp;noOfBytesToRead,
                             byte[]&nbsp;bufferForReadValues)
                      throws <A >CardbusNoHandleException</A>,
                             <A >CardbusBadParameterException</A>,
                             <A >UnknownCardbusErrorException</A></PRE>
<DL>
<DD>Reads 8-bit words from I/O space at a fixed address.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>address</CODE> - the address at which the access to the hardware
    will take place at. The <code>address</code> must be in the
    asssigned I/O space.<br><DD><CODE>noOfBytesToRead</CODE> - the number of bytes to read.<br><DD><CODE>bufferForReadValues</CODE> - a buffer for the read data. The size of
    the buffer in bytes must be equal to or greater than
    <code>noOfBytesToRead</code>.<br><DT><B>Returns:</B><DD>a negative number if there was a problem, otherwise the number of
    bytes read will be returned.<DT><B>Throws:</B><DD><CODE><A >CardbusBadParameterException</A></CODE> - if one or several parameter have invalid
    values.<DD><CODE><A >CardbusNoHandleException</A></CODE> - if there is currently no handle established
    with the driver.<DD><CODE><A >UnknownCardbusErrorException</A></CODE> - if an unknown error occurred.</DL>
</DD>
</DL>
<HR>

<A NAME="readMemoryFixAddr32bit(int, int, byte[])"><!-- --></A><H3>
readMemoryFixAddr32bit</H3>
<PRE>
public int <B>readMemoryFixAddr32bit</B>(int&nbsp;address,
                                  int&nbsp;noOfBytesToRead,
                                  byte[]&nbsp;bufferForReadValues)
                           throws <A >CardbusNoHandleException</A>,
                                  <A >CardbusBadParameterException</A>,
                                  <A >UnknownCardbusErrorException</A></PRE>
<DL>
<DD>Reads 32-bit words from memory space at a fixed address.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>address</CODE> - the address at which the access to the hardware
    will take place at. The <code>address</code> must be in the
    asssigned memory space. Must be a multiple of 4.<br><DD><CODE>noOfBytesToRead</CODE> - the number of bytes to read. Must be a multiple of 4.<br><DD><CODE>bufferForReadValues</CODE> - a buffer for the read data.
    The size of the buffer in bytes must be equal to or greater than
    <code>noOfBytesToRead</code>.<br><DT><B>Returns:</B><DD>a negative number if there was a problem, otherwise the number of
    bytes read will be returned.<DT><B>Throws:</B><DD><CODE><A >CardbusBadParameterException</A></CODE> - if one or several parameter have invalid
    values.<DD><CODE><A >CardbusNoHandleException</A></CODE> - if there is currently no handle established
    with the driver.<DD><CODE><A >UnknownCardbusErrorException</A></CODE> - if an unknown error occurred.</DL>
</DD>
</DL>
<HR>

<A NAME="sendAndReceiveData(java.lang.String, int)"><!-- --></A><H3>
sendAndReceiveData</H3>
<PRE>
public java.lang.String <B>sendAndReceiveData</B>(java.lang.String&nbsp;messageToBeSent,
                                           int&nbsp;timeOutValue)
                                    throws <A >UnknownCardbusErrorException</A></PRE>
<DL>
<DD>Sends a <code>String</code> over an existing CardBus connection and
  waits for a reply<DD><DL>
<DT><B>Parameters:</B><DD><CODE>messageToBeSent</CODE> - a <code>String</code> to be sent over the
 existing CardBus connection, excluding the carriage return and the
 linefeed at the end<DD><CODE>timeOutValue</CODE> - specifies how many milli-seconds after the
 message was sent the waiting for a reply will cease and Timeout will be
 returned<DT><B>Returns:</B><DD>If a timeout occurs then the <code>String</code> Timeout will
 be returned. Otherwise, the received reply message, excluding
 the initial @ and the carriage return and linefeed at the end, will be
 returned.<DT><B>Throws:</B><DD><CODE><A >UnknownCardbusErrorException</A></CODE> - if an I/O error occurs while trying to receive
 data over the CardBus connection</DL>
</DD>
</DL>
<HR>

<A NAME="sendData(java.lang.String)"><!-- --></A><H3>
sendData</H3>
<PRE>
public void <B>sendData</B>(java.lang.String&nbsp;messageToBeSent)
              throws <A >UnknownCardbusErrorException</A></PRE>
<DL>
<DD>Sends a <code>String</code> over an existing CardBus connection<DD><DL>
<DT><B>Parameters:</B><DD><CODE>messageToBeSent</CODE> - a <code>String</code> to be sent over the
 existing CardBus connection, excluding the carriage return and the
 linefeed at the end<DT><B>Throws:</B><DD><CODE><A >UnknownCardbusErrorException</A></CODE> - if an I/O error occurs while trying to send
 data over the CardBus connection</DL>
</DD>
</DL>
<HR>

<A NAME="writeIoFixAddr8bit(int, int, byte[])"><!-- --></A><H3>
writeIoFixAddr8bit</H3>
<PRE>
public int <B>writeIoFixAddr8bit</B>(int&nbsp;address,
                              int&nbsp;noOfBytesToWrite,
                              byte[]&nbsp;bufferWithValuesToWrite)
                       throws <A >CardbusNoHandleException</A>,
                              <A >CardbusBadParameterException</A>,
                              <A >UnknownCardbusErrorException</A></PRE>
<DL>
<DD>Writes 8-bit words to I/O space at a fixed address.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>address</CODE> - the address at which the access to the hardware
    will take place at. The <code>address</code> must be in the
    asssigned I/O space.<br><DD><CODE>noOfBytesToWrite</CODE> - the number of bytes to write.<br><DD><CODE>bufferWithValuesToWrite</CODE> - a buffer containing the data to be stored
    in the hardware. The size of the buffer in bytes must be equal to or greater than
    <code>noOfBytesToWrite</code>.<br><DT><B>Returns:</B><DD>a negative number if there was a problem, otherwise the number of
    bytes written will be returned.<DT><B>Throws:</B><DD><CODE><A >CardbusBadParameterException</A></CODE> - if one or several parameter have invalid
    values.<DD><CODE><A >CardbusNoHandleException</A></CODE> - if there is currently no handle established
    with the driver.<DD><CODE><A >UnknownCardbusErrorException</A></CODE> - if an unknown error occurred.</DL>
</DD>
</DL>
<HR>

<A NAME="writeMemFixAddr32bit(int, int, byte[])"><!-- --></A><H3>
writeMemFixAddr32bit</H3>
<PRE>
public int <B>writeMemFixAddr32bit</B>(int&nbsp;address,
                                int&nbsp;noOfBytesToWrite,
                                byte[]&nbsp;bufferWithValuesToWrite)
                         throws <A >CardbusNoHandleException</A>,
                                <A >CardbusBadParameterException</A>,
                                <A >UnknownCardbusErrorException</A></PRE>
<DL>
<DD>Writes 32-bit words to memory space at a fixed address.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>address</CODE> - the address at which the first access to the hardware
    will take place at. The <code>address</code> must be in the
    asssigned memory space. Must be a multiple of 4.<br><DD><CODE>noOfBytesToWrite</CODE> - the number of bytes to write. Must be
    a multiple of 4.<br><DD><CODE>bufferWithValuesToWrite</CODE> - a buffer containing the data to be stored
    in the hardware. The size of the buffer in bytes must be equal to or greater than
    <code>noOfBytesToWrite</code>.<br><DT><B>Returns:</B><DD>a negative number if there was a problem, otherwise the number of
    bytes written will be returned.<DT><B>Throws:</B><DD><CODE><A >CardbusBadParameterException</A></CODE> - if one or several parameter have invalid
    values.<DD><CODE><A >CardbusNoHandleException</A></CODE> - if there is currently no handle established
    with the driver.<DD><CODE><A >UnknownCardbusErrorException</A></CODE> - if an unknown error occurred.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A ><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A ><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A ><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A ><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A  TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="CardBus.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -