📄 protocol_8h.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 RS232 Master Application: protocol.h File 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>protocol.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
Include file which defines the LS radio packet format<p>
NOTE:If you are porting this code to another processor, the bit fields may need to be swapped around, and calls to protocol_gen_parity may need to be changed also (casting to find the beginning of the header byte).
<p>
<code>#include "<a class="el" href="ls__config_8h.html">ls_config.h</a>"</code><br>
<p>
Include dependency graph for protocol.h:<p><center><img src="protocol_8h__incl.png" border="0" usemap="#protocol.h_map" alt="Include dependency graph"></center>
<map name="protocol.h_map">
<area href="ls__config_8h.html" shape="rect" coords="113,157,198,184" alt="">
<area href="isr_8h.html" shape="rect" coords="133,82,178,109" alt="">
<area href="timer_8h.html" shape="rect" coords="202,82,266,109" alt="">
<area href="cypdef_8h.html" shape="rect" coords="198,8,270,34" alt="">
</map>
<p>
This graph shows which files directly or indirectly include this file:<p><center><img src="protocol_8h__dep__incl.png" border="0" usemap="#protocol.hdep_map" alt="Included by dependency graph"></center>
<map name="protocol.hdep_map">
<area href="main_8c.html" shape="rect" coords="8,7,69,34" alt="">
<area href="mfgtest_8c.html" shape="rect" coords="93,7,170,34" alt="">
<area href="protocol_8c.html" shape="rect" coords="194,7,274,34" alt="">
<area href="rs232_8c.html" shape="rect" coords="298,7,362,34" alt="">
</map>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="struct__SYS__PARAMETERS.html">_SYS_PARAMETERS</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">union </td><td class="memItemRight" valign="bottom"><a class="el" href="union__LS__CONTROL__PACKET.html">_LS_CONTROL_PACKET</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">To set up a control packet. <a href="union__LS__CONTROL__PACKET.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">union </td><td class="memItemRight" valign="bottom"><a class="el" href="union__LS__DATA__PACKET.html">_LS_DATA_PACKET</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">To set up a control packet. <a href="union__LS__DATA__PACKET.html#_details">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a0">MASTER_ACK_TIMEOUT</a> 80</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a1">SLAVE_ACK_TIMEOUT</a> 250</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a2">KISS_BIND_CHANNEL</a> 77</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a3">KISS_BIND_MAX_TRANSMITS</a> 4</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a4">KISS_BIND_RSP_TIMEOUT</a> 100</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a5">KISS_BIND_PA</a> 0</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a6">KISS_BIND_RSSI</a> 0x0A</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a7">PING_DATA</a> 0x31;</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a8">PING_REASON_NORMAL</a> 0x00</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a9">PING_REASON_RSSI</a> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a10">PING_REASON_CORRUPT</a> 0x02</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a11">RSSI_NOISE_THRESHOLD</a> 0x08</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a12">PING_NUM_RSSI</a> 20</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a13">CHANNELS_PER_RSSI_INCREMENT</a> 0x02</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a14">QUICK_RSSI_TIMEOUT</a> 0x02</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a15">NUM_HIGH_RSSI_READINGS</a> 0x05</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a16">RSSI_TOGGLE_TIMEOUT</a> 48</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a17">MASTER_DATA_STATE</a> 0x10</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a18">KISS_BIND_STATE</a> 0x20</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a19">NO_ACTIVITY</a> 0x00</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a20">ACTIVITY</a> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a21">NULL_ACTIVITY</a> 0x02</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a22">NUM_CHANNELS</a> 78</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a23">PIN_MASK</a> 0x03</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a24">RSSI_MASK</a> 0x1F</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a25">MIN_PIN</a> 0x02</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a26">NUM_CHANNELS_PER_SUBSET</a> 13</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a27">LS_STATUS_SUCCESS</a> 0x00</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a28">LS_STATUS_FAILED</a> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a29">DATA_SENT</a> 41</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a30">INVALID_DATA</a> 43</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a31">TX_TIMEOUT_ERR</a> 0x05</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a32">ACK_DATA</a> 0x07</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a33">GOOD_ACK</a> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a34">BIND_REQ</a> 0x00</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a35">BIND_RESP</a> 0x00</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a36">KISS_BIND_REQ</a> 0x0D</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a37">CONNECT_REQ</a> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a38">CONNECT_RESP</a> 0x02</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a39">PING_PACKET</a> 0x03</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a40">DATA_PACKET</a> 0x04</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a41">ACK_PACKET</a> 0x05</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a42">DATA_ACK_PACKET</a> 0x06</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a43">NULL_PACKET</a> 0x07</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a44">MAX_NUM_TYPES</a> 0x07</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a45">NO_PACKET</a> 0xFF</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a46">PING_REQ</a> 0x00</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a47">PING_RESP</a> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a48">ACK_RESP</a> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a49">DATA_IDLE</a> 0x00</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a50">DATA_RECEIVED</a> 0x02</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a51">ACK_RECEIVED</a> 0x04</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a52">BIND_SEED</a> 0x00</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a53">BIND_PN_CODE</a> 0x00</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a54">BIND_BASE_CHANNEL</a> 0x00</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a55">BIND_TIMEOUT</a> 300</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a56">DISCONNECTED_STATE</a> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a57">CONNECTED_STATE</a> 0x02</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a58">BIND_MAX_TRANSMITS</a> 0x04</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a59">BIND_ACK_TIMEOUT</a> 80</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a60">CONNECT_ACK_TIMEOUT</a> 80</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a61">SLAVE_BIND_TIMEOUT</a> NUM_CHANNELS_PER_SUBSET * 10</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a62">SLAVE_CONNECT_TIMEOUT</a> NUM_CHANNELS_PER_SUBSET * 19</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a63">ORIGINAL_CHAN_RECONNECT_COUNT</a> 0x05</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a64">BRIDGE_PING_TIME</a> 50</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a65">SIGNATURE_BYTE</a> 0x90</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a66">LS_TX_PACKET</a> <a class="el" href="union__LS__DATA__PACKET.html">LS_DATA_PACKET</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a67">LS_RX_PACKET</a> <a class="el" href="union__LS__DATA__PACKET.html">LS_DATA_PACKET</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a68">RX_DATA_PACKET_LEN</a> APP_RX_PACKET_SIZE+2</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a69">LS_RX_PACKET_LEN</a> (sizeof(LS_RX_PACKET))</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a70">BIND_REQ_LEN</a> 1</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a71">BIND_RESP_LEN</a> 4+2</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a72">KISS_BIND_REQ_LEN</a> 2</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a73">CONNECT_REQ_LEN</a> 4+2+1</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a74">CONNECT_RESP_LEN</a> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a75">NULL_LEN</a> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a76">PING_LEN</a> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a77">ACK_LEN</a> 0x01</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a78">LS_TX_PACKET_LEN</a> (sizeof(LS_TX_PACKET))</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a79">TX_PACKET_LEN</a> APP_TX_PACKET_SIZE + 2</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a80">ROLE_NONE</a> 0</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a81">ROLE_MASTER</a> 1</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a82">ROLE_SLAVE</a> 2</td></tr>
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="struct__SYS__PARAMETERS.html">_SYS_PARAMETERS</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a83">SYS_PARAMETERS</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="union__LS__CONTROL__PACKET.html">_LS_CONTROL_PACKET</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a84">LS_CONTROL_PACKET</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="union__LS__DATA__PACKET.html">_LS_DATA_PACKET</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a85">LS_DATA_PACKET</a></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="cypdef_8h.html#a1">UINT8</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a88">protocol_init</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a89">protocol_get_tx_pkt</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a90">protocol_get_rx_pkt</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="cypdef_8h.html#a1">UINT8</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a91">protocol_get_rx_packet_length</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a92">protocol_set_role_master</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="cypdef_8h.html#a1">UINT8</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a93">master_bind_mode</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="cypdef_8h.html#a1">UINT8</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a94">master_data_mode</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="cypdef_8h.html#a1">UINT8</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a95">master_send_packet</a> (<a class="el" href="cypdef_8h.html#a1">UINT8</a> data_length)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="cypdef_8h.html#a1">UINT8</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a96">master_is_tx_buffer_empty</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="cypdef_8h.html#a1">UINT8</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a97">master_read_rx_packet</a> (<a class="el" href="cypdef_8h.html#a1">UINT8</a> *, <a class="el" href="cypdef_8h.html#a1">UINT8</a>)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="cypdef_8h.html#a1">UINT8</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a98">protocol_gen_parity</a> (<a class="el" href="cypdef_8h.html#a1">UINT8</a> data)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="cypdef_8h.html#a1">UINT8</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a99">protocol_calc_ck_sum</a> (<a class="el" href="cypdef_8h.html#a1">UINT8</a> *data, <a class="el" href="cypdef_8h.html#a1">UINT8</a> len, <a class="el" href="cypdef_8h.html#a1">UINT8</a> seed)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a100">protocol_send_ack</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="cypdef_8h.html#a1">UINT8</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a101">protocol_verify_packet</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a102">protocol_init_channel</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a103">protocol_get_next_channel</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a104">protocol_calculate_network_id</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="cypdef_8h.html#a1">UINT8</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a105">master_ping_mode</a> (<a class="el" href="cypdef_8h.html#a1">UINT8</a> reason)</td></tr>
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">LS_RX_PACKET </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a86">rx_packet</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">LS_TX_PACKET </td><td class="memItemRight" valign="bottom"><a class="el" href="protocol_8h.html#a87">tx_packet</a></td></tr>
</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="a0" doxytag="protocol.h::MASTER_ACK_TIMEOUT"></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">#define MASTER_ACK_TIMEOUT 80 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
A 16 bit timeout counter used in case an acknowledge is never received. (15 usec units) Only used for the blocking read, WirelessUSBLS_bReadData()). See WirelessUSBLS user module datasheet for more details. </td>
</tr>
</table>
<a class="anchor" name="a1" doxytag="protocol.h::SLAVE_ACK_TIMEOUT"></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">#define SLAVE_ACK_TIMEOUT 250 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
A 16 bit timeout counter used in case an acknowledge is never received. (15 usec units) Only used for the blocking read, WirelessUSBLS_bReadData()). See WirelessUSBLS user module datasheet for more details. </td>
</tr>
</table>
<a class="anchor" name="a2" doxytag="protocol.h::KISS_BIND_CHANNEL"></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">#define KISS_BIND_CHANNEL 77 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
</td>
</tr>
</table>
<a class="anchor" name="a3" doxytag="protocol.h::KISS_BIND_MAX_TRANSMITS"></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">#define KISS_BIND_MAX_TRANSMITS 4 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
The maximum number of Bind Requests sent.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a4" doxytag="protocol.h::KISS_BIND_RSP_TIMEOUT"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -