<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>CanFestival: can_uvccm_win32 Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li id="current"><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="dirs.html"><span>Directories</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="functions.html"><span>Data Fields</span></a></li>
</ul></div>
<h1>can_uvccm_win32 Class Reference</h1><!-- doxytag: class="can_uvccm_win32" --><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcan__uvccm__win32.html#f4f6d1f25174fd3b7d897a5f73bc363e">can_uvccm_win32</a> (<a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> *board)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcan__uvccm__win32.html#39bb5c7bb141391d0f2f34b7dd5f487c">~can_uvccm_win32</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcan__uvccm__win32.html#3358bfa32c0164bc11d220745e3e0430">send</a> (const <a class="el" href="structMessage.html">Message</a> *m)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcan__uvccm__win32.html#4301393c1d3046b35d0b545e761b94db">receive</a> (<a class="el" href="structMessage.html">Message</a> *m)</td></tr>
<tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcan__uvccm__win32.html#7fb6732edc691451bc1d3206c07d4715">open_rs232</a> (int port=1, int baud_rate=57600)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcan__uvccm__win32.html#06f9d2fb860a821436471c3233f91dff">close_rs232</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcan__uvccm__win32.html#c3d1d02a46518b2639beb6060f79f2a2">get_can_data</a> (const char *can_cmd_buf, long &bufsize, <a class="el" href="structMessage.html">Message</a> *m)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcan__uvccm__win32.html#0f2aed9c45f29e6082f37ea17aea46ae">set_can_data</a> (const <a class="el" href="structMessage.html">Message</a> &m, std::string &can_cmd)</td></tr>
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">HANDLE </td><td class="memItemRight" valign="bottom"><a class="el" href="classcan__uvccm__win32.html#3f13c1748b3cd57fd1d478782428859a">m_port</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">HANDLE </td><td class="memItemRight" valign="bottom"><a class="el" href="classcan__uvccm__win32.html#cf25e6725871137696ab41b06fa05417">m_read_event</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">HANDLE </td><td class="memItemRight" valign="bottom"><a class="el" href="classcan__uvccm__win32.html#544ea7fd0e8a5d7cfb7cf9058d6020a4">m_write_event</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classcan__uvccm__win32.html#d264855657adc02fbc687f37d302fc9f">m_residual_buffer</a></td></tr>
<tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classcan__uvccm__win32_1_1error.html">error</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<p>
<p>
Definition at line <a class="el" href="can__uvccm__win32_8cpp-source.html#l00017">17</a> of file <a class="el" href="can__uvccm__win32_8cpp-source.html">can_uvccm_win32.cpp</a>.<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="f4f6d1f25174fd3b7d897a5f73bc363e"></a><!-- doxytag: member="can_uvccm_win32::can_uvccm_win32" ref="f4f6d1f25174fd3b7d897a5f73bc363e" args="(s_BOARD *board)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">can_uvccm_win32::can_uvccm_win32 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structstruct__s__BOARD.html">s_BOARD</a> * </td>
<td class="paramname"> <em>board</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="can__uvccm__win32_8cpp-source.html#l00039">39</a> of file <a class="el" href="can__uvccm__win32_8cpp-source.html">can_uvccm_win32.cpp</a>.
<p>
References <a class="el" href="can__driver_8h-source.html#l00035">struct_s_BOARD::baudrate</a>, and <a class="el" href="can__uvccm__win32_8cpp-source.html#l00136">open_rs232()</a>.
<p>
Here is the call graph for this function:<p><center><img src="classcan__uvccm__win32_f4f6d1f25174fd3b7d897a5f73bc363e_cgraph.png" border="0" usemap="#classcan__uvccm__win32_f4f6d1f25174fd3b7d897a5f73bc363e_cgraph_map" alt=""></center>
<map name="classcan__uvccm__win32_f4f6d1f25174fd3b7d897a5f73bc363e_cgraph_map">
<area href="classcan__uvccm__win32.html#7fb6732edc691451bc1d3206c07d4715" shape="rect" coords="332,6,564,30" alt="">
</map>
</div>
</div><p>
<a class="anchor" name="39bb5c7bb141391d0f2f34b7dd5f487c"></a><!-- doxytag: member="can_uvccm_win32::~can_uvccm_win32" ref="39bb5c7bb141391d0f2f34b7dd5f487c" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">can_uvccm_win32::~can_uvccm_win32 </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="can__uvccm__win32_8cpp-source.html#l00047">47</a> of file <a class="el" href="can__uvccm__win32_8cpp-source.html">can_uvccm_win32.cpp</a>.
<p>
References <a class="el" href="can__uvccm__win32_8cpp-source.html#l00190">close_rs232()</a>.
<p>
Here is the call graph for this function:<p><center><img src="classcan__uvccm__win32_39bb5c7bb141391d0f2f34b7dd5f487c_cgraph.png" border="0" usemap="#classcan__uvccm__win32_39bb5c7bb141391d0f2f34b7dd5f487c_cgraph_map" alt=""></center>
<map name="classcan__uvccm__win32_39bb5c7bb141391d0f2f34b7dd5f487c_cgraph_map">
<area href="classcan__uvccm__win32.html#06f9d2fb860a821436471c3233f91dff" shape="rect" coords="341,6,576,30" alt="">
</map>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="3358bfa32c0164bc11d220745e3e0430"></a><!-- doxytag: member="can_uvccm_win32::send" ref="3358bfa32c0164bc11d220745e3e0430" args="(const Message *m)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool can_uvccm_win32::send </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structMessage.html">Message</a> * </td>
<td class="paramname"> <em>m</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="can__uvccm__win32_8cpp-source.html#l00052">52</a> of file <a class="el" href="can__uvccm__win32_8cpp-source.html">can_uvccm_win32.cpp</a>.
<p>
References <a class="el" href="def_8h-source.html#l00063">FALSE</a>, <a class="el" href="can__uvccm__win32_8cpp-source.html#l00033">m_port</a>, <a class="el" href="can__uvccm__win32_8cpp-source.html#l00035">m_write_event</a>, and <a class="el" href="can__uvccm__win32_8cpp-source.html#l00271">set_can_data()</a>.
<p>
Here is the call graph for this function:<p><center><img src="classcan__uvccm__win32_3358bfa32c0164bc11d220745e3e0430_cgraph.png" border="0" usemap="#classcan__uvccm__win32_3358bfa32c0164bc11d220745e3e0430_cgraph_map" alt=""></center>
<map name="classcan__uvccm__win32_3358bfa32c0164bc11d220745e3e0430_cgraph_map">
<area href="classcan__uvccm__win32.html#0f2aed9c45f29e6082f37ea17aea46ae" shape="rect" coords="240,6,483,30" alt="">
</map>
</div>
</div><p>
<a class="anchor" name="4301393c1d3046b35d0b545e761b94db"></a><!-- doxytag: member="can_uvccm_win32::receive" ref="4301393c1d3046b35d0b545e761b94db" args="(Message *m)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool can_uvccm_win32::receive </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td>
<td class="paramname"> <em>m</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="can__uvccm__win32_8cpp-source.html#l00080">80</a> of file <a class="el" href="can__uvccm__win32_8cpp-source.html">can_uvccm_win32.cpp</a>.
<p>
References <a class="el" href="def_8h-source.html#l00063">FALSE</a>, <a class="el" href="can__uvccm__win32_8cpp-source.html#l00206">get_can_data()</a>, <a class="el" href="can__uvccm__win32_8cpp-source.html#l00033">m_port</a>, <a class="el" href="can__uvccm__win32_8cpp-source.html#l00034">m_read_event</a>, and <a class="el" href="can__uvccm__win32_8cpp-source.html#l00036">m_residual_buffer</a>.
<p>
Here is the call graph for this function:<p><center><img src="classcan__uvccm__win32_4301393c1d3046b35d0b545e761b94db_cgraph.png" border="0" usemap="#classcan__uvccm__win32_4301393c1d3046b35d0b545e761b94db_cgraph_map" alt=""></center>
<map name="classcan__uvccm__win32_4301393c1d3046b35d0b545e761b94db_cgraph_map">
<area href="classcan__uvccm__win32.html#c3d1d02a46518b2639beb6060f79f2a2" shape="rect" coords="258,6,500,30" alt="">
</map>
</div>
</div><p>
<a class="anchor" name="7fb6732edc691451bc1d3206c07d4715"></a><!-- doxytag: member="can_uvccm_win32::open_rs232" ref="7fb6732edc691451bc1d3206c07d4715" args="(int port=1, int baud_rate=57600)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool can_uvccm_win32::open_rs232 </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>port</em> = <code>1</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>baud_rate</em> = <code>57600</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [private]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="can__uvccm__win32_8cpp-source.html#l00136">136</a> of file <a class="el" href="can__uvccm__win32_8cpp-source.html">can_uvccm_win32.cpp</a>.
<p>
References <a class="el" href="def_8h-source.html#l00063">FALSE</a>, <a class="el" href="can__uvccm__win32_8cpp-source.html#l00033">m_port</a>, <a class="el" href="can__uvccm__win32_8cpp-source.html#l00034">m_read_event</a>, <a class="el" href="can__uvccm__win32_8cpp-source.html#l00035">m_write_event</a>, and <a class="el" href="def_8h-source.html#l00062">TRUE</a>.
<p>
Referenced by <a class="el" href="can__uvccm__win32_8cpp-source.html#l00039">can_uvccm_win32()</a>.
</div>
</div><p>
<a class="anchor" name="06f9d2fb860a821436471c3233f91dff"></a><!-- doxytag: member="can_uvccm_win32::close_rs232" ref="06f9d2fb860a821436471c3233f91dff" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool can_uvccm_win32::close_rs232 </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [private]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="can__uvccm__win32_8cpp-source.html#l00190">190</a> of file <a class="el" href="can__uvccm__win32_8cpp-source.html">can_uvccm_win32.cpp</a>.
<p>
References <a class="el" href="can__uvccm__win32_8cpp-source.html#l00033">m_port</a>, <a class="el" href="can__uvccm__win32_8cpp-source.html#l00034">m_read_event</a>, <a class="el" href="can__uvccm__win32_8cpp-source.html#l00036">m_residual_buffer</a>, and <a class="el" href="can__uvccm__win32_8cpp-source.html#l00035">m_write_event</a>.
<p>
Referenced by <a class="el" href="can__uvccm__win32_8cpp-source.html#l00047">~can_uvccm_win32()</a>.
</div>
</div><p>
<a class="anchor" name="c3d1d02a46518b2639beb6060f79f2a2"></a><!-- doxytag: member="can_uvccm_win32::get_can_data" ref="c3d1d02a46518b2639beb6060f79f2a2" args="(const char *can_cmd_buf, long &bufsize, Message *m)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool can_uvccm_win32::get_can_data </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>can_cmd_buf</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">long & </td>
<td class="paramname"> <em>bufsize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td>
<td class="paramname"> <em>m</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [private]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="can__uvccm__win32_8cpp-source.html#l00206">206</a> of file <a class="el" href="can__uvccm__win32_8cpp-source.html">can_uvccm_win32.cpp</a>.
<p>
References <a class="el" href="can_8h-source.html#l00042">Message::cob_id</a>, <a class="el" href="can_8h-source.html#l00046">Message::data</a>, <a class="el" href="can_8h-source.html#l00045">Message::len</a>, <a class="el" href="can_8h-source.html#l00043">Message::rtr</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>, and <a class="el" href="can_8h-source.html#l00036">SHORT_CAN::w</a>.
<p>
Referenced by <a class="el" href="can__uvccm__win32_8cpp-source.html#l00080">receive()</a>.
</div>
</div><p>
<a class="anchor" name="0f2aed9c45f29e6082f37ea17aea46ae"></a><!-- doxytag: member="can_uvccm_win32::set_can_data" ref="0f2aed9c45f29e6082f37ea17aea46ae" args="(const Message &m, std::string &can_cmd)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool can_uvccm_win32::set_can_data </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structMessage.html">Message</a> & </td>
<td class="paramname"> <em>m</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::string & </td>
<td class="paramname"> <em>can_cmd</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [private]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="can__uvccm__win32_8cpp-source.html#l00271">271</a> of file <a class="el" href="can__uvccm__win32_8cpp-source.html">can_uvccm_win32.cpp</a>.
<p>
References <a class="el" href="can_8h-source.html#l00042">Message::cob_id</a>, <a class="el" href="can_8h-source.html#l00046">Message::data</a>, <a class="el" href="can_8h-source.html#l00045">Message::len</a>, <a class="el" href="can_8h-source.html#l00043">Message::rtr</a>, and <a class="el" href="can_8h-source.html#l00036">SHORT_CAN::w</a>.
<p>
Referenced by <a class="el" href="can__uvccm__win32_8cpp-source.html#l00052">send()</a>.
</div>
</div><p>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="3f13c1748b3cd57fd1d478782428859a"></a><!-- doxytag: member="can_uvccm_win32::m_port" ref="3f13c1748b3cd57fd1d478782428859a" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HANDLE <a class="el" href="classcan__uvccm__win32.html#3f13c1748b3cd57fd1d478782428859a">can_uvccm_win32::m_port</a><code> [private]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="can__uvccm__win32_8cpp-source.html#l00033">33</a> of file <a class="el" href="can__uvccm__win32_8cpp-source.html">can_uvccm_win32.cpp</a>.
<p>
Referenced by <a class="el" href="can__uvccm__win32_8cpp-source.html#l00190">close_rs232()</a>, <a class="el" href="can__uvccm__win32_8cpp-source.html#l00136">open_rs232()</a>, <a class="el" href="can__uvccm__win32_8cpp-source.html#l00080">receive()</a>, and <a class="el" href="can__uvccm__win32_8cpp-source.html#l00052">send()</a>.
</div>
</div><p>
<a class="anchor" name="cf25e6725871137696ab41b06fa05417"></a><!-- doxytag: member="can_uvccm_win32::m_read_event" ref="cf25e6725871137696ab41b06fa05417" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HANDLE <a class="el" href="classcan__uvccm__win32.html#cf25e6725871137696ab41b06fa05417">can_uvccm_win32::m_read_event</a><code> [private]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="can__uvccm__win32_8cpp-source.html#l00034">34</a> of file <a class="el" href="can__uvccm__win32_8cpp-source.html">can_uvccm_win32.cpp</a>.
<p>
Referenced by <a class="el" href="can__uvccm__win32_8cpp-source.html#l00190">close_rs232()</a>, <a class="el" href="can__uvccm__win32_8cpp-source.html#l00136">open_rs232()</a>, and <a class="el" href="can__uvccm__win32_8cpp-source.html#l00080">receive()</a>.
</div>
</div><p>
<a class="anchor" name="544ea7fd0e8a5d7cfb7cf9058d6020a4"></a><!-- doxytag: member="can_uvccm_win32::m_write_event" ref="544ea7fd0e8a5d7cfb7cf9058d6020a4" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HANDLE <a class="el" href="classcan__uvccm__win32.html#544ea7fd0e8a5d7cfb7cf9058d6020a4">can_uvccm_win32::m_write_event</a><code> [private]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="can__uvccm__win32_8cpp-source.html#l00035">35</a> of file <a class="el" href="can__uvccm__win32_8cpp-source.html">can_uvccm_win32.cpp</a>.
<p>
Referenced by <a class="el" href="can__uvccm__win32_8cpp-source.html#l00190">close_rs232()</a>, <a class="el" href="can__uvccm__win32_8cpp-source.html#l00136">open_rs232()</a>, and <a class="el" href="can__uvccm__win32_8cpp-source.html#l00052">send()</a>.
</div>
</div><p>
<a class="anchor" name="d264855657adc02fbc687f37d302fc9f"></a><!-- doxytag: member="can_uvccm_win32::m_residual_buffer" ref="d264855657adc02fbc687f37d302fc9f" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string <a class="el" href="classcan__uvccm__win32.html#d264855657adc02fbc687f37d302fc9f">can_uvccm_win32::m_residual_buffer</a><code> [private]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="can__uvccm__win32_8cpp-source.html#l00036">36</a> of file <a class="el" href="can__uvccm__win32_8cpp-source.html">can_uvccm_win32.cpp</a>.
<p>
Referenced by <a class="el" href="can__uvccm__win32_8cpp-source.html#l00190">close_rs232()</a>, and <a class="el" href="can__uvccm__win32_8cpp-source.html#l00080">receive()</a>.
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>drivers/can_uvccm_win32/<a class="el" href="can__uvccm__win32_8cpp-source.html">can_uvccm_win32.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 8 08:52:17 2007 for CanFestival by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
</body>
</html>