📄 ls__config_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 Protocol Slave Tutorial: ls_config.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>ls_config.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
Configure All Global Compile Options<p>
These items are usually set in the sources files, but can be over-ridden here by using 'define' or 'undefine'.
<p>
<code>#include "psocgpioint.h"</code><br>
<code>#include "<a class="el" href="isr_8h.html">isr.h</a>"</code><br>
<code>#include "<a class="el" href="timer_8h.html">timer.h</a>"</code><br>
<code>#include "<a class="el" href="flash_8h.html">flash.h</a>"</code><br>
<p>
Include dependency graph for ls_config.h:<p><center><img src="ls__config_8h__incl.png" border="0" usemap="#ls_config.h_map" alt="Include dependency graph"></center>
<map name="ls_config.h_map">
<area href="isr_8h.html" shape="rect" coords="133,157,178,184" alt="">
<area href="timer_8h.html" shape="rect" coords="202,157,266,184" alt="">
<area href="cypdef_8h.html" shape="rect" coords="198,82,270,109" alt="">
<area href="flash_8h.html" shape="rect" coords="290,157,352,184" alt="">
</map>
<p>
This graph shows which files directly or indirectly include this file:<p><center><img src="ls__config_8h__dep__incl.png" border="0" usemap="#ls_config.hdep_map" alt="Included by dependency graph"></center>
<map name="ls_config.hdep_map">
<area href="protocol_8h.html" shape="rect" coords="45,82,125,109" alt="">
<area href="main_8c.html" shape="rect" coords="7,8,69,34" alt="">
<area href="protocol_8c.html" shape="rect" coords="93,8,173,34" alt="">
<area href="timer_8c.html" shape="rect" coords="149,82,213,109" alt="">
</map>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></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="ls__config_8h.html#a0">DEFAULT_POWER_LEVEL</a> 0x07</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a1">BIND_POWER_LEVEL</a> 0x04</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a2">PROTOCOL_ROLE_SLAVE</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a3">KISS_BIND</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a4">DYNAMIC_PA_SUPPORT</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a5">BACK_CHANNEL_DATA</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a6">RADIO_SLEEP_ENABLED</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a7">SLAVE_NUM_TRANSMITS</a> 10</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a8">DEVICE_TYPE</a> 0x06</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a9">MAX_DATA_LEN</a> 20</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a10">APP_TX_PACKET_SIZE</a> MAX_DATA_LEN</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a11">APP_RX_PACKET_SIZE</a> MAX_DATA_LEN</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a12">DEFAULT_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="ls__config_8h.html#a13">DEFAULT_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="ls__config_8h.html#a14">SYS_PARAM_LOC</a> 0x7F</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a15">NVRAM_READ</a>(data, len) flash_read_lite(SYS_PARAM_LOC, data, len)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a16">NVRAM_WRITE</a>(data) flash_write_lite(SYS_PARAM_LOC, data)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a17">TIMER_DELAY_10_USEC</a>() timer_delay_10_usec()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a18">TIMER_DELAY_50_USEC</a>() timer_delay_50_usec()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a19">TIMER_DELAY_MSEC</a>(cnt) timer_delay_msec(cnt)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a20">TIMER_IS_TIME_ELASPSED</a>(base, curr) timer_time_elasped(base, incr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ls__config_8h.html#a21">TIMER_GET_TIME_STAMP</a>() timer_get_time_stamp()</td></tr>
</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="a0" doxytag="ls_config.h::DEFAULT_POWER_LEVEL"></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 DEFAULT_POWER_LEVEL 0x07 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Default PA setting.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a1" doxytag="ls_config.h::BIND_POWER_LEVEL"></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 BIND_POWER_LEVEL 0x04 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
PA setting when binding.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a2" doxytag="ls_config.h::PROTOCOL_ROLE_SLAVE"></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 PROTOCOL_ROLE_SLAVE </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
To set the device to a slave role.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a3" doxytag="ls_config.h::KISS_BIND"></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 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
To use the kiss bind method.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a4" doxytag="ls_config.h::DYNAMIC_PA_SUPPORT"></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 DYNAMIC_PA_SUPPORT </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Option to use dynamic PA support (decreases transmit power as devices get closer together and increases as they get farther apart), all related code will be executed </td>
</tr>
</table>
<a class="anchor" name="a5" doxytag="ls_config.h::BACK_CHANNEL_DATA"></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 BACK_CHANNEL_DATA </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Option to use BACK_CHANNEL_DATA, all related code will be executed.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a6" doxytag="ls_config.h::RADIO_SLEEP_ENABLED"></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 RADIO_SLEEP_ENABLED </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
To allow the radio to be put to sleep.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a7" doxytag="ls_config.h::SLAVE_NUM_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 SLAVE_NUM_TRANSMITS 10 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Number of times to transmit a data packet before failing.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a8" doxytag="ls_config.h::DEVICE_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">#define DEVICE_TYPE 0x06 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
To set the right device type.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a9" doxytag="ls_config.h::MAX_DATA_LEN"></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 MAX_DATA_LEN 20 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Maximum data length for data packet.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a10" doxytag="ls_config.h::APP_TX_PACKET_SIZE"></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 APP_TX_PACKET_SIZE MAX_DATA_LEN </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Data length for data packet being transmitted.
<p>
</td>
</tr>
</table>
<a class="anchor" name="a11" doxytag="ls_config.h::APP_RX_PACKET_SIZE"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -