1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../../css/manpage.css" type="text/css" />
7<title>Read</title>
8  </head>
9  <body>
10<h1><CODE><a href="../../../../nn/Overview.html">nn</a>::<a href="../../../../nn/hio/Overview.html">hio</a>::<a href="../../../../nn/hio/CTR/Overview.html">CTR</a>::<a href="../../../../nn/hio/CTR/SerialChannel/Overview.html">SerialChannel</a>::Read</CODE> Member Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">#include &lt;nn/hio.h&gt;
14
15<a href="../../../../nn/Result/Overview.html">Result</a> Read(
16     size_t * pReadSize,
17     void * buf,
18     size_t size,
19     <a href="../../../../nn_types/bit32.html">bit32</a> attr = ATTRIBUTE_NONE
20);
21
22<a href="../../../../nn_types/s32.html">s32</a> Read(
23     void * buf,
24     size_t size,
25     <a href="../../../../nn_types/bit32.html">bit32</a> attr = ATTRIBUTE_NONE
26);
27</pre>
28    </div>
29<h2>List of Overloaded Member Functions</h2>
30    <div class="section">
31      <table class="members">
32        <tr>
33          <td>
34<a href="./Read(0).html"><CODE>Read(size_t *, void *, size_t, bit32)</CODE> </a>
35          </td>
36<td>Receives data from the host and returns the result of the operation.</td>
37        </tr>
38        <tr>
39          <td>
40<a href="./Read(1).html"><CODE>Read(void *, size_t, bit32)</CODE> </a>
41          </td>
42<td>Receives data from the host and returns the size of data received.</td>
43        </tr> </table>
44    </div>
45<h2>Description of <CODE>Read(size_t *, void *, size_t, bit32)</CODE></h2>
46<div class="section"><p><B>size</B> bytes of data are received to the buffer specified by <B>buf</B>.<br />The <B>attr</B> parameter specifies how to behave when the received data is fewer bytes than specified by <B>size</B>. <br />The process returns a <CODE><a href="../../../../nn/Result/Overview.html">nn::Result</a></CODE>-type result.</p><!-- write here --></div>
47<h2>Description of <CODE>Read(void *, size_t, bit32)</CODE></h2>
48<div class="section"><p><B>size</B> bytes of data are received to the buffer specified by <B>buf</B>.<br />The <B>attr</B> parameter specifies how to behave when the received data is fewer bytes than specified by <B>size</B>. <br />Returns the actual number of bytes that were received.</p><!-- write here --></div>
49  <hr><p>CONFIDENTIAL</p></body>
50</html>
51