📄 union__ls__data__packet.html
字号:
<!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>WirelessUSB(TM) LS PRoC DVK Protocol Master Tutorial: _LS_DATA_PACKET Union Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.9.1 -->
<div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
<h1>_LS_DATA_PACKET Union Reference</h1><code>#include <protocol.h></code>
<p>
Collaboration diagram for _LS_DATA_PACKET:<p><center><img src="union__LS__DATA__PACKET__coll__graph.png" border="0" usemap="#__LS__DATA__PACKET__coll__map" alt="Collaboration graph"></center>
<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap>struct {</td></tr>
<tr><td class="memItemLeft" nowrap> struct {</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o0">parity</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o1">dev_type</a>: 0x03</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o2">type</a>: 0x04</td></tr>
<tr><td class="memItemLeft" nowrap valign="top"> } <a class="el" href="union__LS__DATA__PACKET.html#o3">hdr</a></td></tr>
<tr><td class="memItemLeft" nowrap> <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o4">checksum</a></td></tr>
<tr><td class="memItemLeft" nowrap valign="top">} </td><td class="memItemRight" valign="bottom"><a class="el" href="union__LS__DATA__PACKET.html#o5">bind_request</a></td></tr>
<tr><td class="memItemLeft" nowrap>struct {</td></tr>
<tr><td class="memItemLeft" nowrap> struct {</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o0">parity</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o6">pin</a>: 0x03</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o2">type</a>: 0x04</td></tr>
<tr><td class="memItemLeft" nowrap valign="top"> } <a class="el" href="union__LS__DATA__PACKET.html#o7">hdr</a></td></tr>
<tr><td class="memItemLeft" nowrap> <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o8">mid_1</a></td></tr>
<tr><td class="memItemLeft" nowrap> <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o9">mid_2</a></td></tr>
<tr><td class="memItemLeft" nowrap> <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o10">mid_3</a></td></tr>
<tr><td class="memItemLeft" nowrap> <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o11">mid_4</a></td></tr>
<tr><td class="memItemLeft" nowrap> <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o4">checksum</a></td></tr>
<tr><td class="memItemLeft" nowrap valign="top">} </td><td class="memItemRight" valign="bottom"><a class="el" href="union__LS__DATA__PACKET.html#o12">bind_response</a></td></tr>
<tr><td class="memItemLeft" nowrap>struct {</td></tr>
<tr><td class="memItemLeft" nowrap> struct {</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o0">parity</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o6">pin</a>: 0x03</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o2">type</a>: 0x04</td></tr>
<tr><td class="memItemLeft" nowrap valign="top"> } <a class="el" href="union__LS__DATA__PACKET.html#o13">hdr</a></td></tr>
<tr><td class="memItemLeft" nowrap> <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o8">mid_1</a></td></tr>
<tr><td class="memItemLeft" nowrap> <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o9">mid_2</a></td></tr>
<tr><td class="memItemLeft" nowrap> <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o10">mid_3</a></td></tr>
<tr><td class="memItemLeft" nowrap> <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o11">mid_4</a></td></tr>
<tr><td class="memItemLeft" nowrap> <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o14">pa</a></td></tr>
<tr><td class="memItemLeft" nowrap> <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o4">checksum</a></td></tr>
<tr><td class="memItemLeft" nowrap valign="top">} </td><td class="memItemRight" valign="bottom"><a class="el" href="union__LS__DATA__PACKET.html#o15">connect_request</a></td></tr>
<tr><td class="memItemLeft" nowrap>struct {</td></tr>
<tr><td class="memItemLeft" nowrap> struct {</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o0">parity</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o16">fill</a>: 0x02</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o17">flag</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o2">type</a>: 0x04</td></tr>
<tr><td class="memItemLeft" nowrap valign="top"> } <a class="el" href="union__LS__DATA__PACKET.html#o18">hdr</a></td></tr>
<tr><td class="memItemLeft" nowrap valign="top">} </td><td class="memItemRight" valign="bottom"><a class="el" href="union__LS__DATA__PACKET.html#o19">connect_response</a></td></tr>
<tr><td class="memItemLeft" nowrap>struct {</td></tr>
<tr><td class="memItemLeft" nowrap> struct {</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o0">parity</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o16">fill</a>: 0x02</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o17">flag</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o2">type</a>: 0x04</td></tr>
<tr><td class="memItemLeft" nowrap valign="top"> } <a class="el" href="union__LS__DATA__PACKET.html#o20">hdr</a></td></tr>
<tr><td class="memItemLeft" nowrap valign="top">} </td><td class="memItemRight" valign="bottom"><a class="el" href="union__LS__DATA__PACKET.html#o21">ping</a></td></tr>
<tr><td class="memItemLeft" nowrap>struct {</td></tr>
<tr><td class="memItemLeft" nowrap> struct {</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o0">parity</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o22">dev_id</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o23">dt_data</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o16">fill</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o2">type</a>: 0x04</td></tr>
<tr><td class="memItemLeft" nowrap valign="top"> } <a class="el" href="union__LS__DATA__PACKET.html#o24">hdr</a></td></tr>
<tr><td class="memItemLeft" nowrap> <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o25">app_packet</a> [APP_TX_PACKET_SIZE]</td></tr>
<tr><td class="memItemLeft" nowrap> <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o4">checksum</a></td></tr>
<tr><td class="memItemLeft" nowrap valign="top">} </td><td class="memItemRight" valign="bottom"><a class="el" href="union__LS__DATA__PACKET.html#o26">data</a></td></tr>
<tr><td class="memItemLeft" nowrap>struct {</td></tr>
<tr><td class="memItemLeft" nowrap> struct {</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o0">parity</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o27">dt_ack</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o22">dev_id</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o17">flag</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o2">type</a>: 0x04</td></tr>
<tr><td class="memItemLeft" nowrap valign="top"> } <a class="el" href="union__LS__DATA__PACKET.html#o28">hdr</a></td></tr>
<tr><td class="memItemLeft" nowrap valign="top">} </td><td class="memItemRight" valign="bottom"><a class="el" href="union__LS__DATA__PACKET.html#o29">ack</a></td></tr>
<tr><td class="memItemLeft" nowrap>struct {</td></tr>
<tr><td class="memItemLeft" nowrap> struct {</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o0">parity</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o27">dt_ack</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o23">dt_data</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o17">flag</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o2">type</a>: 0x04</td></tr>
<tr><td class="memItemLeft" nowrap valign="top"> } <a class="el" href="union__LS__DATA__PACKET.html#o30">hdr</a></td></tr>
<tr><td class="memItemLeft" nowrap> <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o25">app_packet</a> [APP_TX_PACKET_SIZE]</td></tr>
<tr><td class="memItemLeft" nowrap> <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o4">checksum</a></td></tr>
<tr><td class="memItemLeft" nowrap valign="top">} </td><td class="memItemRight" valign="bottom"><a class="el" href="union__LS__DATA__PACKET.html#o31">ack_data</a></td></tr>
<tr><td class="memItemLeft" nowrap>struct {</td></tr>
<tr><td class="memItemLeft" nowrap> struct {</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o0">parity</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o22">dev_id</a>: 0x01</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o16">fill</a>: 0x02</td></tr>
<tr><td class="memItemLeft" nowrap> unsigned <a class="el" href="union__LS__DATA__PACKET.html#o2">type</a>: 0x04</td></tr>
<tr><td class="memItemLeft" nowrap valign="top"> } <a class="el" href="union__LS__DATA__PACKET.html#o32">hdr</a></td></tr>
<tr><td class="memItemLeft" nowrap valign="top">} </td><td class="memItemRight" valign="bottom"><a class="el" href="union__LS__DATA__PACKET.html#o33">null</a></td></tr>
<tr><td class="memItemLeft" nowrap>struct {</td></tr>
<tr><td class="memItemLeft" nowrap> <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o34">byte</a></td></tr>
<tr><td class="memItemLeft" nowrap valign="top">} </td><td class="memItemRight" valign="bottom"><a class="el" href="union__LS__DATA__PACKET.html#o35">first</a></td></tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="o0" doxytag="_LS_DATA_PACKET::parity"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">unsigned <a class="el" href="union__LS__DATA__PACKET.html#o0">parity</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Parity bit of null packet.
<p>
</td>
</tr>
</table>
<a class="anchor" name="o1" doxytag="_LS_DATA_PACKET::dev_type"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">unsigned <a class="el" href="union__LS__DATA__PACKET.html#o1">dev_type</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Type of device part of bind request packet.
<p>
</td>
</tr>
</table>
<a class="anchor" name="o2" doxytag="_LS_DATA_PACKET::type"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">unsigned <a class="el" href="union__LS__DATA__PACKET.html#o2">type</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Type of data packet.
<p>
</td>
</tr>
</table>
<a class="anchor" name="o3" doxytag="_LS_DATA_PACKET::hdr"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">struct { ... } <a class="el" href="union__LS__DATA__PACKET.html#o3">hdr</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
To hold the header data of bind request packet.
<p>
</td>
</tr>
</table>
<a class="anchor" name="o4" doxytag="_LS_DATA_PACKET::checksum"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="union__LS__DATA__PACKET.html#o4">checksum</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Calculated checksum of acknowledge/data packet.
<p>
</td>
</tr>
</table>
<a class="anchor" name="o5" doxytag="_LS_DATA_PACKET::bind_request"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">struct { ... } <a class="el" href="union__LS__DATA__PACKET.html#o5">bind_request</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
To hold all data of bind response packet.
<p>
</td>
</tr>
</table>
<a class="anchor" name="o6" doxytag="_LS_DATA_PACKET::pin"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">unsigned <a class="el" href="union__LS__DATA__PACKET.html#o6">pin</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
For storing the pin used in the connect request packet.
<p>
</td>
</tr>
</table>
<a class="anchor" name="o7" doxytag="_LS_DATA_PACKET::hdr"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">struct { ... } <a class="el" href="union__LS__DATA__PACKET.html#o3">hdr</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -