📄 protocol_8c.html
字号:
</td>
<td>
<p>
To set/retrieve radio parameters. Such as PN code, channel, MID, etc.
<p>
To retrieve radio attributes. In this file it is used to retrieve the channel the radio is on. </td>
</tr>
</table>
<a class="anchor" name="a3" doxytag="protocol.c::rx_packet"></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="union__LS__DATA__PACKET.html">LS_DATA_PACKET</a> <a class="el" href="protocol_8h.html#a86">rx_packet</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Packet for receiving.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a4" doxytag="protocol.c::tx_packet"></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="union__LS__DATA__PACKET.html">LS_DATA_PACKET</a> <a class="el" href="protocol_8h.html#a87">tx_packet</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Packet for transmitting.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a5" doxytag="protocol.c::cmd_packet"></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="union__LS__CONTROL__PACKET.html">LS_CONTROL_PACKET</a> <a class="el" href="protocol_8c.html#a5">cmd_packet</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Command packet, used to transmit control packets.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a6" doxytag="protocol.c::tx_length"></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="protocol_8c.html#a6">tx_length</a> = 0 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
transmit packet length
<p>
</td>
</tr>
</table>
<a class="anchor" name="a7" doxytag="protocol.c::valid_buffer"></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="protocol_8c.html#a7">valid_buffer</a>[LS_RX_PACKET_LEN] </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Channel valid array for data packets.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a8" doxytag="protocol.c::master_rx_data_toggle"></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="protocol_8c.html#a8">master_rx_data_toggle</a> = 1 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Data toggle for master receive packets.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a9" doxytag="protocol.c::rx_data_length"></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="protocol_8c.html#a9">rx_data_length</a> = 0 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Data length for receive data.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a10" doxytag="protocol.c::bind_state"></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="protocol_8c.html#a10">bind_state</a> = 0 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
To see what bind state the device is in to set local_bind_state.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a11" doxytag="protocol.c::slave_tx_data_toggle"></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="protocol_8c.html#a11">slave_tx_data_toggle</a> = 1 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Data toggle for slave transmit packets.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a12" doxytag="protocol.c::slave_rx_data_toggle"></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="protocol_8c.html#a12">slave_rx_data_toggle</a> = 1 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Data toggle for slave receive packets.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a13" doxytag="protocol.c::pn_code_table"></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">const <a class="el" href="cypdef_8h.html#a1">UINT8</a> <a class="el" href="protocol_8c.html#a13">pn_code_table</a>[] </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
<b>Initial value:</b><div class="fragment"><pre class="fragment">
{
0x6A, 0xE7, 0x01, 0xEA, 0x03, 0xFD, 0x13, 0xD2,
0xDC, 0xC0, 0x6B, 0xB8, 0x2B, 0x09, 0xBB, 0xB2,
0xA3, 0x1E, 0xF2, 0xA4, 0x31, 0x32, 0x7A, 0xB3,
0x44, 0x83, 0x3B, 0xDD, 0x14, 0xCF, 0x8E, 0xC9,
0x35, 0x35, 0x4E, 0xC5, 0xF3, 0x52, 0x47, 0xB0,
0x7C, 0x23, 0x8A, 0xCE, 0x45, 0x5C, 0x54, 0xD7,
0x81, 0xAC, 0xFB, 0x83, 0x7A, 0x9A, 0x61, 0xAC,
0x3C, 0x12, 0x5F, 0x9C, 0x39, 0x98, 0xF6, 0x8A,
}
</pre></div>PN code table of 32 chips per bit PN codes used for a data rate of 64kbps see WirelessUSB LS Theory of Operation app note for more information </td>
</tr>
</table>
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<title>Cypress Semiconductor Corporation</title>
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
{font-family:"\@MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:#1A419D;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:#1A419D;
text-decoration:underline;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link="#1A419D" vlink="#1A419D">
<div class=Section1>
<div>
<div align=center>
<table class=MsoNormalTable border=1 cellspacing=0 cellpadding=0 width="100%"
style='width:100.0%;border-collapse:collapse;border:none'>
<tr>
<td width="100%" style='width:100.0%;border:none;border-top:solid windowtext 1.0pt;
padding:0in 5.4pt 0in 5.4pt'>
<p class=MsoNormal align=center style='text-align:center'><b><span
style='font-size:13.0pt;font-family:Arial;color:blue'><a
href="http://www.cypress.com/">Cypress Semiconductor Corporation</a></span></b><b><span
style='font-size:13.0pt;font-family:Arial'>牋 </span></b><b><span
style='font-size:16.0pt;font-family:Symbol'>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -