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>Initialize</title>
8  </head>
9  <body>
10<h1><CODE><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/uds/Overview.html">uds</a>::<a href="../../../nn/uds/CTR/Overview.html">CTR</a>::Initialize</CODE> Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14<a href="../../../nn/Result/Overview.html">nn::Result</a> Initialize(
15     <a href="../../../nn/os/Event/Overview.html">nn::os::Event</a> * pStatusUpdateEvent,
16     void * receiveBuffer,
17     const size_t bufferSize
18);
19
20<a href="../../../nn/Result/Overview.html">nn::Result</a> Initialize(
21     <a href="../../../nn/os/Event/Overview.html">nn::os::Event</a> * pStatusUpdateEvent,
22     void * receiveBuffer,
23     const size_t bufferSize,
24     <a href="../../../nn/cfg/CTR/UserName/Overview.html">nn::cfg::UserName</a> * pUserName
25);
26</pre>
27    </div>
28<h2>List of Overloaded Member Functions</h2>
29    <div class="section">
30      <table class="members">
31        <tr>
32          <td>
33<a href="./Initialize(0).html">Initialize ( nn::os::Event *, void *, const size_t ) </a>
34          </td>
35<td>Initializes the UDS library. Initialization fails if any other communication features are already in use.</td>
36        </tr>
37        <tr>
38          <td>
39<a href="./Initialize(1).html">Initialize ( nn::os::Event *, void *, const size_t, nn::cfg::UserName * ) </a>
40          </td>
41<td>Initializes the UDS library. Initialization fails if any other communication features are already in use.</td>
42        </tr> </table>
43    </div>
44<h2>Description of Initialize ( nn::os::Event *, void *, const size_t )</h2>
45<div class="section"><p>This function may block for a long time because it finalizes communications in the background and the UDS library takes control of the communication device until <a href="../../../nn/uds/CTR/Finalize.html"><CODE>Finalize</CODE></a> is run. Always call the <a href="../../../nn/uds/CTR/Finalize.html"><CODE>Finalize</CODE></a> function to release the communication device after you have finished using the UDS library. This function is thread-unsafe.</p><!-- write here --></div>
46<h2>Description of Initialize ( nn::os::Event *, void *, const size_t, nn::cfg::UserName * )</h2>
47<div class="section"><p>This function may block for a long time because it finalizes communications in the background and the UDS library takes control of the communication device until <a href="../../../nn/uds/CTR/Finalize.html"><CODE>Finalize</CODE></a> is run. Always call the <a href="../../../nn/uds/CTR/Finalize.html"><CODE>Finalize</CODE></a> function to release the communication device after you have finished using the UDS library. Handle the user name given by <CODE>pUserName</CODE> according to UGC guidelines. This function is thread-unsafe.</p><!-- write here --></div>
48  <hr><p>CONFIDENTIAL</p></body>
49</html>