-
Notifications
You must be signed in to change notification settings - Fork 0
/
SDK__BasicGeneric__B_8c_source.html
126 lines (124 loc) · 63.2 KB
/
SDK__BasicGeneric__B_8c_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Appiko: /home/prathik/workspace/appiko/nrf5x-firmware/application/rf_data_tx_rx/SDK_BasicGeneric_B.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Appiko
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d75c23162a2652451dce46d2e7e8aead.html">application</a></li><li class="navelem"><a class="el" href="dir_eeae24ee2ae2430c5086d4802bed50ad.html">rf_data_tx_rx</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">SDK_BasicGeneric_B.c</div> </div>
</div><!--header-->
<div class="contents">
<a href="SDK__BasicGeneric__B_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">/* Includes ------------------------------------------------------------------*/</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="SDK__EVAL__Config_8h.html">SDK_EVAL_Config.h</a>"</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="S2LP__Config_8h.html">S2LP_Config.h</a>"</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="SDK__Configuration__Common_8h.html">SDK_Configuration_Common.h</a>"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "S2LP_SDK_Util.h"</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#define USE_VCOM</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="group__Basic__Generic__B__Private__Variables.html#gab0b97b3741b669b6b96671aa525bb6ed"> 67</a></span> <a class="code" href="structSRadioInit.html">SRadioInit</a> <a class="code" href="group__Basic__Generic__B__Private__Variables.html#gab0b97b3741b669b6b96671aa525bb6ed">xRadioInit</a> = {</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  BASE_FREQUENCY,</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  MODULATION_SELECT,</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  DATARATE,</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  FREQ_DEVIATION,</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  BANDWIDTH</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> };</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="group__Basic__Generic__B__Private__Variables.html#gad204bbf200c0ad21f047fa16cabdf840"> 79</a></span> <a class="code" href="structPktBasicInit.html">PktBasicInit</a> <a class="code" href="group__Basic__Generic__B__Private__Variables.html#gad204bbf200c0ad21f047fa16cabdf840">xBasicInit</a>={</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  PREAMBLE_LENGTH,</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  SYNC_LENGTH,</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  SYNC_WORD,</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  VARIABLE_LENGTH,</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  EXTENDED_LENGTH_FIELD,</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  CRC_MODE,</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  EN_ADDRESS,</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  EN_FEC,</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  EN_WHITENING</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> };</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="group__Basic__Generic__B__Private__Variables.html#ga30f8af1f7d69dc899776a04e5d2878d8"> 96</a></span> <a class="code" href="structSGpioInit.html">SGpioInit</a> <a class="code" href="group__Basic__Generic__B__Private__Variables.html#ga30f8af1f7d69dc899776a04e5d2878d8">xGpioIRQ</a>={</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <a class="code" href="group__Gpio__Exported__Types.html#gga7df105f2d110525f5323d56216255c32afa825326e022f5f304b99420ccf7ae27">S2LP_GPIO_3</a>,</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <a class="code" href="group__Gpio__Exported__Types.html#gga93afc54d4cda634c7c5cbf8a69013b5aac810a8e28d74a3c7c191a885498a3230">S2LP_GPIO_MODE_DIGITAL_OUTPUT_LP</a>,</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="group__Gpio__Exported__Types.html#gga16e1c622c4a0a136f26724b992b32586adbe0a1a72a4081c1338c6cf505512634">S2LP_GPIO_DIG_OUT_IRQ</a></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> };</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="group__Basic__Generic__B__Private__Variables.html#ga15edebcb6188877f00efa57a13a78970"> 106</a></span> <a class="code" href="structS2LPIrqs.html">S2LPIrqs</a> <a class="code" href="group__Basic__Generic__B__Private__Variables.html#ga15edebcb6188877f00efa57a13a78970">xIrqStatus</a>;</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="group__Basic__Generic__B__Private__Variables.html#ga2897accbeee0d1bc667571ad304cf564"> 112</a></span> uint8_t <a class="code" href="group__Basic__Generic__B__Private__Variables.html#ga2897accbeee0d1bc667571ad304cf564">vectcRxBuff</a>[128], cRxData;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> </div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="group__Basic__Generic__B__Private__Variables.html#gab05474141e14b549e00898f353fc2662"> 117</a></span> <span class="preprocessor">#define IRQ_PREEMPTION_PRIORITY 0x03</span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="keyword">static</span> uint16_t M2S_GPIO_PIN_IRQ;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="keywordtype">void</span> HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> {</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordflow">if</span>(GPIO_Pin==M2S_GPIO_PIN_IRQ)</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  { </div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="comment">/* Get the IRQ status */</span></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <a class="code" href="group__Gpio__Exported__Functions.html#gadc65c545de2674d60a4eeef172d027fa">S2LPGpioIrqGetStatus</a>(&<a class="code" href="group__Basic__Generic__B__Private__Variables.html#ga15edebcb6188877f00efa57a13a78970">xIrqStatus</a>);</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  </div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="comment">/* Check the S2LP RX_DATA_DISC IRQ flag */</span></div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keywordflow">if</span>(<a class="code" href="group__Basic__Generic__B__Private__Variables.html#ga15edebcb6188877f00efa57a13a78970">xIrqStatus</a>.<a class="code" href="structS2LPIrqs.html#ab5048756a2676521bad3b8b9dc8223d0">IRQ_RX_DATA_DISC</a>) {</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="comment">/* toggle LED1 */</span></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <a class="code" href="group__SDK__EVAL__Led__Exported__Functions.html#ga26b42f43b94b1769d5dc743884bca143">SdkEvalLedToggle</a>(LED1);</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  </div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="preprocessor">#ifdef USE_VCOM</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  printf(<span class="stringliteral">"DATA DISCARDED\n\r"</span>);</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  </div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="comment">/* RX command - to ensure the device will be ready for the next reception */</span></div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <a class="code" href="group__Commands__Exported__Macros.html#ga390cd5d41a2c2c08beb958038a2f9f3d">S2LPCmdStrobeRx</a>();</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  }</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  </div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="comment">/* Check the S2LP RX_DATA_READY IRQ flag */</span></div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordflow">if</span>(<a class="code" href="group__Basic__Generic__B__Private__Variables.html#ga15edebcb6188877f00efa57a13a78970">xIrqStatus</a>.<a class="code" href="structS2LPIrqs.html#a45d688a33cd77b452c5d53beb7e3e3cd">IRQ_RX_DATA_READY</a>) {</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="comment">/* Get the RX FIFO size */</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  cRxData = <a class="code" href="group__Fifo__Exported__Functions.html#ga8f1fa687d0d6ecbc8dd128b6f5576b6c">S2LPFifoReadNumberBytesRxFifo</a>();</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  </div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="comment">/* Read the RX FIFO */</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  S2LPSpiReadFifo(cRxData, <a class="code" href="group__Basic__Generic__B__Private__Variables.html#ga2897accbeee0d1bc667571ad304cf564">vectcRxBuff</a>);</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  </div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="comment">/* Flush the RX FIFO */</span></div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  S2LPCmdStrobeFlushRxFifo(); </div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  </div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="comment">/* A simple way to check if the received data sequence is correct (in this case LED5 will toggle) */</span></div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  {</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <a class="code" href="group__Types__Exported__Types.html#gabfbd40443272561261cf6e48ac7c3225">SBool</a> xCorrect=S_TRUE;</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  </div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keywordflow">for</span>(uint8_t i=0 ; i<cRxData ; i++)</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keywordflow">if</span>(<a class="code" href="group__Basic__Generic__B__Private__Variables.html#ga2897accbeee0d1bc667571ad304cf564">vectcRxBuff</a>[i] != i+1)</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  xCorrect=S_FALSE;</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  </div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordflow">if</span>(xCorrect) {</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="comment">/* toggle LED2 */</span></div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <a class="code" href="group__SDK__EVAL__Led__Exported__Functions.html#ga26b42f43b94b1769d5dc743884bca143">SdkEvalLedToggle</a>(LED2);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="preprocessor">#ifdef USE_VCOM</span></div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  printf(<span class="stringliteral">"DATA CORRECT, RSSI: %d dBm\r\n"</span>,<a class="code" href="group__Qi__Exported__Functions.html#gaa6d912f05fc08e174a4247c493ef452b">S2LPRadioGetRssidBm</a>());</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  }</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  } </div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="comment">/* RX command - to ensure the device will be ready for the next reception */</span></div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <a class="code" href="group__Commands__Exported__Macros.html#ga390cd5d41a2c2c08beb958038a2f9f3d">S2LPCmdStrobeRx</a>();</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  </div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="preprocessor">#ifdef USE_VCOM</span></div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="comment">/* print the received data */</span></div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  printf(<span class="stringliteral">"B data received: ["</span>);</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keywordflow">for</span>(uint8_t i=0 ; i<cRxData ; i++)</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  printf(<span class="stringliteral">"%d "</span>, <a class="code" href="group__Basic__Generic__B__Private__Variables.html#ga2897accbeee0d1bc667571ad304cf564">vectcRxBuff</a>[i]);</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  printf(<span class="stringliteral">"]\r\n"</span>);</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  } </div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  </div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  }</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  </div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span> }</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> </div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> </div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="preprocessor">#ifdef USE_STM32L0XX_NUCLEO</span></div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> </div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="keyword">static</span> <span class="keywordtype">void</span> SystemClock_Config(<span class="keywordtype">void</span>)</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> {</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  RCC_ClkInitTypeDef RCC_ClkInitStruct;</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  RCC_OscInitTypeDef RCC_OscInitStruct;</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  </div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <span class="comment">/* Enable Power Control clock */</span></div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  __PWR_CLK_ENABLE();</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  </div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="comment">/* The voltage scaling allows optimizing the power consumption when the device is </span></div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="comment"> clocked below the maximum system frequency, to update the voltage scaling value </span></div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="comment"> regarding system frequency refer to product datasheet. */</span></div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  </div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="comment">/* Enable HSI Oscillator and activate PLL with HSI as source */</span></div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  RCC_OscInitStruct.HSEState = RCC_HSE_OFF;</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  RCC_OscInitStruct.HSIState = RCC_HSI_ON;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  RCC_OscInitStruct.PLL.PLLMUL = RCC_PLLMUL_4;</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  RCC_OscInitStruct.PLL.PLLDIV = RCC_PLLDIV_2;</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  RCC_OscInitStruct.HSICalibrationValue = 0x10;</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  HAL_RCC_OscConfig(&RCC_OscInitStruct); </div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  </div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <span class="comment">/* Select PLL as system clock source and configure the HCLK, PCLK1 and PCLK2 </span></div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="comment"> clocks dividers */</span></div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  RCC_ClkInitStruct.ClockType = (RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2);</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1; </div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; </div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1);</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span> }</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="keyword">static</span> <span class="keywordtype">void</span> SystemClock_Config(<span class="keywordtype">void</span>)</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span> {</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  </div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  RCC_OscInitTypeDef RCC_OscInitStruct = {0};</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  </div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="comment">/* Enable HSE Oscillator and Activate PLL with HSE as source */</span></div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  RCC_OscInitStruct.HSIState = RCC_HSI_ON;</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL6;</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  RCC_OscInitStruct.PLL.PLLDIV = RCC_PLL_DIV3;</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  HAL_RCC_OscConfig(&RCC_OscInitStruct);</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  </div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <span class="comment">/* Set Voltage scale1 as MCU will run at 32MHz */</span></div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  __HAL_RCC_PWR_CLK_ENABLE();</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  </div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <span class="comment">/* Poll VOSF bit of in PWR_CSR. Wait until it is reset to 0 */</span></div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keywordflow">while</span> (__HAL_PWR_GET_FLAG(PWR_FLAG_VOS) != RESET) {};</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  </div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="comment">/* Select PLL as system clock source and configure the HCLK, PCLK1 and PCLK2</span></div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="comment"> clocks dividers */</span></div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  RCC_ClkInitStruct.ClockType = (RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2);</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1);</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  </div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span> }</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span> </div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div><div class="line"><a name="l00283"></a><span class="lineno"><a class="line" href="group__Basic__Generic__B__Private__Functions.html#ga840291bc02cba5474a4cb46a9b9566fe"> 283</a></span> <span class="keywordtype">int</span> <a class="code" href="group__Basic__Generic__B__Private__Functions.html#ga840291bc02cba5474a4cb46a9b9566fe">main</a> (<span class="keywordtype">void</span>)</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> {</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  HAL_Init();</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  SystemClock_Config();</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  </div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <a class="code" href="group__SDK__EVAL__Config__Exported__Functions.html#ga7f3c08c832548d36d19f461dc1cf42ac">SdkEvalIdentification</a>();</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <a class="code" href="group__SDK__EVAL__Led__Exported__Functions.html#gaf99ce8511fa905808e80038ebda90dec">SdkEvalLedInit</a>(LED1);</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <a class="code" href="group__SDK__EVAL__Gpio__Exported__Functions.html#gabd2a56fe984b45fbc53757cd0ace0c4c">SdkEvalM2SGpioInit</a>(<a class="code" href="group__SDK__EVAL__Gpio__Exported__Types.html#gga18a3e287b24fc73b43562380e8d0a9efa33c229cb04756066fc747399e098f729">M2S_GPIO_SDN</a>,<a class="code" href="group__SDK__EVAL__Gpio__Exported__Types.html#gga0aeed6318cb50ddd05342dbe9e98e5dbafca64cac309dbd12f5707ef1b074e198">M2S_MODE_GPIO_OUT</a>);</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  S2LPSpiInit();</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  </div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span> <span class="preprocessor">#ifdef USE_VCOM</span></div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <a class="code" href="group__SDK__EVAL__Com__Exported__Functions.html#ga951abaa7b25a06bbbdb2f84b0c624a12">SdkEvalComInit</a>();</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  </div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="comment">/* S2LP ON */</span></div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  S2LPEnterShutdown();</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  S2LPExitShutdown();</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  </div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="comment">/* EEPROM SPI if init + data retrieving */</span></div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  S2LPManagementIdentificationRFBoard();</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  </div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="comment">/* if the board has eeprom, we can compensate the offset calling S2LPManagementGetOffset</span></div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span> <span class="comment"> (if eeprom is not present this fcn will return 0) */</span></div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <a class="code" href="group__Basic__Generic__B__Private__Variables.html#gab0b97b3741b669b6b96671aa525bb6ed">xRadioInit</a>.<a class="code" href="structSRadioInit.html#af6ec20375b4cd6c95832b2e8bbd52f20">lFrequencyBase</a> = <a class="code" href="group__Basic__Generic__B__Private__Variables.html#gab0b97b3741b669b6b96671aa525bb6ed">xRadioInit</a>.<a class="code" href="structSRadioInit.html#af6ec20375b4cd6c95832b2e8bbd52f20">lFrequencyBase</a> + S2LPManagementGetOffset();</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span> </div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="comment">/* if needed this will set the range extender pins */</span></div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  S2LPManagementRangeExtInit();</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  </div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  <span class="comment">/* if needed this will set the EXT_REF bit of the S2-LP */</span></div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  S2LPManagementTcxoInit();</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  </div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="comment">/* uC IRQ config */</span></div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <a class="code" href="group__SDK__EVAL__Gpio__Exported__Functions.html#gabd2a56fe984b45fbc53757cd0ace0c4c">SdkEvalM2SGpioInit</a>(<a class="code" href="group__SDK__EVAL__Gpio__Exported__Types.html#gga18a3e287b24fc73b43562380e8d0a9efad891dd926080c5b4d7851088de55686a">M2S_GPIO_3</a>,<a class="code" href="group__SDK__EVAL__Gpio__Exported__Types.html#gga0aeed6318cb50ddd05342dbe9e98e5dba91192e2db64d79aaa4acfa75dea4a347">M2S_MODE_EXTI_IN</a>);</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  M2S_GPIO_PIN_IRQ=<a class="code" href="group__SDK__EVAL__Gpio__Exported__Functions.html#ga07726b7c7d07f64d11baf79f31085ff1">SdkEvalGpioGetPin</a>(<a class="code" href="group__SDK__EVAL__Gpio__Exported__Types.html#gga18a3e287b24fc73b43562380e8d0a9efad891dd926080c5b4d7851088de55686a">M2S_GPIO_3</a>);</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  </div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <span class="comment">/* S2LP IRQ config */</span></div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <a class="code" href="group__Gpio__Exported__Functions.html#ga9f76fe5d7bf5a9f4da911cb2a4b05552">S2LPGpioInit</a>(&<a class="code" href="group__Basic__Generic__B__Private__Variables.html#ga30f8af1f7d69dc899776a04e5d2878d8">xGpioIRQ</a>); </div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  </div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <span class="comment">/* uC IRQ enable */</span></div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <a class="code" href="group__SDK__EVAL__Gpio__Exported__Functions.html#ga5034d8df4662830a6613cd0cdf3b3ee3">SdkEvalM2SGpioInterruptCmd</a>(<a class="code" href="group__SDK__EVAL__Gpio__Exported__Types.html#gga18a3e287b24fc73b43562380e8d0a9efad891dd926080c5b4d7851088de55686a">M2S_GPIO_3</a>,<a class="code" href="group__Basic__Generic__B__Private__Variables.html#gab05474141e14b549e00898f353fc2662">IRQ_PREEMPTION_PRIORITY</a>,0,ENABLE);</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  </div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <span class="comment">/* S2LP Radio config */</span></div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <a class="code" href="group__Radio__Exported__Functions.html#ga5449b8d69e0a885e98e2a881c9d3ba14">S2LPRadioInit</a>(&<a class="code" href="group__Basic__Generic__B__Private__Variables.html#gab0b97b3741b669b6b96671aa525bb6ed">xRadioInit</a>);</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  </div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  <span class="comment">/* S2LP Packet config */</span></div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <a class="code" href="group__PktBasic__Exported__Functions.html#ga091d9fee473f7eeee0b6b9ca8e268387">S2LPPktBasicInit</a>(&<a class="code" href="group__Basic__Generic__B__Private__Variables.html#gad204bbf200c0ad21f047fa16cabdf840">xBasicInit</a>);</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  </div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <span class="comment">/* S2LP IRQs enable */</span></div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <a class="code" href="group__Gpio__Exported__Functions.html#ga4269a13f2863a2b271d92c1db772f425">S2LPGpioIrqDeInit</a>(&<a class="code" href="group__Basic__Generic__B__Private__Variables.html#ga15edebcb6188877f00efa57a13a78970">xIrqStatus</a>);</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <a class="code" href="group__Gpio__Exported__Functions.html#ga54fe9ae87c6fb6a2d89098fb7bd54c5b">S2LPGpioIrqConfig</a>(<a class="code" href="group__Gpio__Exported__Types.html#gga32b0f7ba71811d0cff33699697f6c550a7c348d4984fba627444c5b56cf76c594">RX_DATA_DISC</a>,S_ENABLE);</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <a class="code" href="group__Gpio__Exported__Functions.html#ga54fe9ae87c6fb6a2d89098fb7bd54c5b">S2LPGpioIrqConfig</a>(<a class="code" href="group__Gpio__Exported__Types.html#gga32b0f7ba71811d0cff33699697f6c550a1e92cdb4909cf182a0f53feff3a1a072">RX_DATA_READY</a>,S_ENABLE);</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span> </div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  <span class="comment">/* payload length config */</span></div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <a class="code" href="group__PktBasic__Exported__Functions.html#ga14890a011c1e940b5672b04b5fc9e1c6">S2LPPktBasicSetPayloadLength</a>(20);</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span> </div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  <span class="comment">/* RX timeout config */</span></div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  <a class="code" href="group__Timer__Exported__Functions.html#ga31bc4e5e62906184faca46a72509b9dd">S2LPTimerSetRxTimerUs</a>(700000);</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <span class="comment">//SET_INFINITE_RX_TIMEOUT();</span></div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span> </div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <span class="comment">/* IRQ registers blanking */</span></div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <a class="code" href="group__Gpio__Exported__Functions.html#gabad50bd7954d6fb8bc47ce8a2783814a">S2LPGpioIrqClearStatus</a>();</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  </div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <span class="comment">/* RX command */</span></div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <a class="code" href="group__Commands__Exported__Macros.html#ga390cd5d41a2c2c08beb958038a2f9f3d">S2LPCmdStrobeRx</a>();</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span> </div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  <span class="comment">/* infinite loop */</span></div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  <span class="keywordflow">while</span> (1){</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  }</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span> </div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span> }</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span> </div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span> </div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span> </div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span> <span class="preprocessor">#ifdef USE_FULL_ASSERT</span></div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span> </div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span> <span class="keywordtype">void</span> assert_failed(uint8_t* file, uint32_t line)</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span> {</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  <span class="comment">/* User can add his own implementation to report the file name and line number */</span></div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  printf(<span class="stringliteral">"Wrong parameters value: file %s on line %d\r\n"</span>, file, line);</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span> </div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  <span class="comment">/* Infinite loop */</span></div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <span class="keywordflow">while</span> (1)</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  {</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  }</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span> }</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span> </div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span> </div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span> <span class="comment">/******************* (C) COPYRIGHT 2018 STMicroelectronics *****END OF FILE****/</span></div><div class="ttc" id="group__PktBasic__Exported__Functions_html_ga14890a011c1e940b5672b04b5fc9e1c6"><div class="ttname"><a href="group__PktBasic__Exported__Functions.html#ga14890a011c1e940b5672b04b5fc9e1c6">S2LPPktBasicSetPayloadLength</a></div><div class="ttdeci">void S2LPPktBasicSetPayloadLength(uint16_t nPayloadLength)</div><div class="ttdoc">Set the payload length for S2LP Basic packets. Since the packet length depends from the address and t...</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__PktBasic_8c_source.html#l00366">S2LP_PktBasic.c:366</a></div></div>
<div class="ttc" id="group__Types__Exported__Types_html_gabfbd40443272561261cf6e48ac7c3225"><div class="ttname"><a href="group__Types__Exported__Types.html#gabfbd40443272561261cf6e48ac7c3225">SBool</a></div><div class="ttdeci">SBool</div><div class="ttdoc">boolean type enumeration.</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Types_8h_source.html#l00085">S2LP_Types.h:85</a></div></div>
<div class="ttc" id="group__Gpio__Exported__Functions_html_ga4269a13f2863a2b271d92c1db772f425"><div class="ttname"><a href="group__Gpio__Exported__Functions.html#ga4269a13f2863a2b271d92c1db772f425">S2LPGpioIrqDeInit</a></div><div class="ttdeci">void S2LPGpioIrqDeInit(S2LPIrqs *pxIrqInit)</div><div class="ttdoc">Deinit the S2LPIrqs structure setting all the bitfield to 0. Moreover, it sets the IRQ mask registers...</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Gpio_8c_source.html#l00253">S2LP_Gpio.c:253</a></div></div>
<div class="ttc" id="group__Gpio__Exported__Functions_html_ga9f76fe5d7bf5a9f4da911cb2a4b05552"><div class="ttname"><a href="group__Gpio__Exported__Functions.html#ga9f76fe5d7bf5a9f4da911cb2a4b05552">S2LPGpioInit</a></div><div class="ttdeci">void S2LPGpioInit(SGpioInit *pxGpioInitStruct)</div><div class="ttdoc">Initialize the S2LP GPIOx according to the specified parameters in the pxGpioInitStruct.</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Gpio_8c_source.html#l00168">S2LP_Gpio.c:168</a></div></div>
<div class="ttc" id="structSRadioInit_html_af6ec20375b4cd6c95832b2e8bbd52f20"><div class="ttname"><a href="structSRadioInit.html#af6ec20375b4cd6c95832b2e8bbd52f20">SRadioInit::lFrequencyBase</a></div><div class="ttdeci">uint32_t lFrequencyBase</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Radio_8h_source.html#l00114">S2LP_Radio.h:114</a></div></div>
<div class="ttc" id="group__Gpio__Exported__Types_html_gga32b0f7ba71811d0cff33699697f6c550a1e92cdb4909cf182a0f53feff3a1a072"><div class="ttname"><a href="group__Gpio__Exported__Types.html#gga32b0f7ba71811d0cff33699697f6c550a1e92cdb4909cf182a0f53feff3a1a072">RX_DATA_READY</a></div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Gpio_8h_source.html#l00265">S2LP_Gpio.h:265</a></div></div>
<div class="ttc" id="structS2LPIrqs_html_ab5048756a2676521bad3b8b9dc8223d0"><div class="ttname"><a href="structS2LPIrqs.html#ab5048756a2676521bad3b8b9dc8223d0">S2LPIrqs::IRQ_RX_DATA_DISC</a></div><div class="ttdeci">SFlagStatus IRQ_RX_DATA_DISC</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Gpio_8h_source.html#l00224">S2LP_Gpio.h:224</a></div></div>
<div class="ttc" id="group__SDK__EVAL__Gpio__Exported__Functions_html_ga5034d8df4662830a6613cd0cdf3b3ee3"><div class="ttname"><a href="group__SDK__EVAL__Gpio__Exported__Functions.html#ga5034d8df4662830a6613cd0cdf3b3ee3">SdkEvalM2SGpioInterruptCmd</a></div><div class="ttdeci">void SdkEvalM2SGpioInterruptCmd(M2SGpioPin xGpio, uint8_t nPreemption, uint8_t nSubpriority, FunctionalState xNewState)</div><div class="ttdoc">Enables or disables the interrupt on GPIO .</div><div class="ttdef"><b>Definition:</b> <a href="SDK__EVAL__Gpio_8c_source.html#l00201">SDK_EVAL_Gpio.c:201</a></div></div>
<div class="ttc" id="group__Radio__Exported__Functions_html_ga5449b8d69e0a885e98e2a881c9d3ba14"><div class="ttname"><a href="group__Radio__Exported__Functions.html#ga5449b8d69e0a885e98e2a881c9d3ba14">S2LPRadioInit</a></div><div class="ttdeci">uint8_t S2LPRadioInit(SRadioInit *pxSRadioInitStruct)</div><div class="ttdoc">Initializes the S2LP analog and digital radio part according to the specified parameters in the pxSRa...</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Radio_8c_source.html#l00559">S2LP_Radio.c:559</a></div></div>
<div class="ttc" id="group__SDK__EVAL__Gpio__Exported__Types_html_gga18a3e287b24fc73b43562380e8d0a9efa33c229cb04756066fc747399e098f729"><div class="ttname"><a href="group__SDK__EVAL__Gpio__Exported__Types.html#gga18a3e287b24fc73b43562380e8d0a9efa33c229cb04756066fc747399e098f729">M2S_GPIO_SDN</a></div><div class="ttdef"><b>Definition:</b> <a href="SDK__EVAL__Gpio_8h_source.html#l00089">SDK_EVAL_Gpio.h:89</a></div></div>
<div class="ttc" id="group__Basic__Generic__B__Private__Variables_html_gab0b97b3741b669b6b96671aa525bb6ed"><div class="ttname"><a href="group__Basic__Generic__B__Private__Variables.html#gab0b97b3741b669b6b96671aa525bb6ed">xRadioInit</a></div><div class="ttdeci">SRadioInit xRadioInit</div><div class="ttdoc">Radio structure fitting.</div><div class="ttdef"><b>Definition:</b> <a href="SDK__BasicGeneric__B_8c_source.html#l00067">SDK_BasicGeneric_B.c:67</a></div></div>
<div class="ttc" id="group__Gpio__Exported__Types_html_gga32b0f7ba71811d0cff33699697f6c550a7c348d4984fba627444c5b56cf76c594"><div class="ttname"><a href="group__Gpio__Exported__Types.html#gga32b0f7ba71811d0cff33699697f6c550a7c348d4984fba627444c5b56cf76c594">RX_DATA_DISC</a></div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Gpio_8h_source.html#l00266">S2LP_Gpio.h:266</a></div></div>
<div class="ttc" id="SDK__Configuration__Common_8h_html"><div class="ttname"><a href="SDK__Configuration__Common_8h.html">SDK_Configuration_Common.h</a></div><div class="ttdoc">Common configuration header file.</div></div>
<div class="ttc" id="group__SDK__EVAL__Led__Exported__Functions_html_ga26b42f43b94b1769d5dc743884bca143"><div class="ttname"><a href="group__SDK__EVAL__Led__Exported__Functions.html#ga26b42f43b94b1769d5dc743884bca143">SdkEvalLedToggle</a></div><div class="ttdeci">void SdkEvalLedToggle(SdkEvalLed xLed)</div><div class="ttdoc">Toggles the selected LED.</div><div class="ttdef"><b>Definition:</b> <a href="SDK__EVAL__Led_8c_source.html#l00145">SDK_EVAL_Led.c:145</a></div></div>
<div class="ttc" id="SDK__EVAL__Config_8h_html"><div class="ttname"><a href="SDK__EVAL__Config_8h.html">SDK_EVAL_Config.h</a></div><div class="ttdoc">This file contains SDK EVAL configuration and useful defines.</div></div>
<div class="ttc" id="group__Basic__Generic__B__Private__Variables_html_gad204bbf200c0ad21f047fa16cabdf840"><div class="ttname"><a href="group__Basic__Generic__B__Private__Variables.html#gad204bbf200c0ad21f047fa16cabdf840">xBasicInit</a></div><div class="ttdeci">PktBasicInit xBasicInit</div><div class="ttdoc">Packet Basic structure fitting.</div><div class="ttdef"><b>Definition:</b> <a href="SDK__BasicGeneric__B_8c_source.html#l00079">SDK_BasicGeneric_B.c:79</a></div></div>
<div class="ttc" id="group__PktBasic__Exported__Functions_html_ga091d9fee473f7eeee0b6b9ca8e268387"><div class="ttname"><a href="group__PktBasic__Exported__Functions.html#ga091d9fee473f7eeee0b6b9ca8e268387">S2LPPktBasicInit</a></div><div class="ttdeci">void S2LPPktBasicInit(PktBasicInit *pxPktBasicInit)</div><div class="ttdoc">Initialize the S2LP Basic packet according to the specified parameters in the PktBasicInit struct....</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__PktBasic_8c_source.html#l00083">S2LP_PktBasic.c:83</a></div></div>
<div class="ttc" id="structPktBasicInit_html"><div class="ttname"><a href="structPktBasicInit.html">PktBasicInit</a></div><div class="ttdoc">S2LP Basic Packet Init structure definition.</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__PktBasic_8h_source.html#l00119">S2LP_PktBasic.h:119</a></div></div>
<div class="ttc" id="group__Gpio__Exported__Functions_html_ga54fe9ae87c6fb6a2d89098fb7bd54c5b"><div class="ttname"><a href="group__Gpio__Exported__Functions.html#ga54fe9ae87c6fb6a2d89098fb7bd54c5b">S2LPGpioIrqConfig</a></div><div class="ttdeci">void S2LPGpioIrqConfig(IrqList xIrq, SFunctionalState xNewState)</div><div class="ttdoc">Enable or disables a specific IRQ.</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Gpio_8c_source.html#l00303">S2LP_Gpio.c:303</a></div></div>
<div class="ttc" id="group__Gpio__Exported__Functions_html_gabad50bd7954d6fb8bc47ce8a2783814a"><div class="ttname"><a href="group__Gpio__Exported__Functions.html#gabad50bd7954d6fb8bc47ce8a2783814a">S2LPGpioIrqClearStatus</a></div><div class="ttdeci">void S2LPGpioIrqClearStatus(void)</div><div class="ttdoc">Clear the IRQ status registers.</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Gpio_8c_source.html#l00403">S2LP_Gpio.c:403</a></div></div>
<div class="ttc" id="group__SDK__EVAL__Gpio__Exported__Functions_html_ga07726b7c7d07f64d11baf79f31085ff1"><div class="ttname"><a href="group__SDK__EVAL__Gpio__Exported__Functions.html#ga07726b7c7d07f64d11baf79f31085ff1">SdkEvalGpioGetPin</a></div><div class="ttdeci">uint16_t SdkEvalGpioGetPin(M2SGpioPin xGpio)</div><div class="ttdoc">Gets the GPIO_PIN of the M2SGpioPin.</div><div class="ttdef"><b>Definition:</b> <a href="SDK__EVAL__Gpio_8c_source.html#l00375">SDK_EVAL_Gpio.c:375</a></div></div>
<div class="ttc" id="group__SDK__EVAL__Gpio__Exported__Types_html_gga0aeed6318cb50ddd05342dbe9e98e5dba91192e2db64d79aaa4acfa75dea4a347"><div class="ttname"><a href="group__SDK__EVAL__Gpio__Exported__Types.html#gga0aeed6318cb50ddd05342dbe9e98e5dba91192e2db64d79aaa4acfa75dea4a347">M2S_MODE_EXTI_IN</a></div><div class="ttdef"><b>Definition:</b> <a href="SDK__EVAL__Gpio_8h_source.html#l00105">SDK_EVAL_Gpio.h:105</a></div></div>
<div class="ttc" id="structSRadioInit_html"><div class="ttname"><a href="structSRadioInit.html">SRadioInit</a></div><div class="ttdoc">S2LP Radio Init structure definition.</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Radio_8h_source.html#l00113">S2LP_Radio.h:113</a></div></div>
<div class="ttc" id="structS2LPIrqs_html_a45d688a33cd77b452c5d53beb7e3e3cd"><div class="ttname"><a href="structS2LPIrqs.html#a45d688a33cd77b452c5d53beb7e3e3cd">S2LPIrqs::IRQ_RX_DATA_READY</a></div><div class="ttdeci">SFlagStatus IRQ_RX_DATA_READY</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Gpio_8h_source.html#l00223">S2LP_Gpio.h:223</a></div></div>
<div class="ttc" id="group__SDK__EVAL__Gpio__Exported__Types_html_gga0aeed6318cb50ddd05342dbe9e98e5dbafca64cac309dbd12f5707ef1b074e198"><div class="ttname"><a href="group__SDK__EVAL__Gpio__Exported__Types.html#gga0aeed6318cb50ddd05342dbe9e98e5dbafca64cac309dbd12f5707ef1b074e198">M2S_MODE_GPIO_OUT</a></div><div class="ttdef"><b>Definition:</b> <a href="SDK__EVAL__Gpio_8h_source.html#l00106">SDK_EVAL_Gpio.h:106</a></div></div>
<div class="ttc" id="structS2LPIrqs_html"><div class="ttname"><a href="structS2LPIrqs.html">S2LPIrqs</a></div><div class="ttdoc">IRQ bitfield structure for S2LP. This structure is used to read or write the single IRQ bit....</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Gpio_8h_source.html#l00222">S2LP_Gpio.h:222</a></div></div>
<div class="ttc" id="group__SDK__EVAL__Com__Exported__Functions_html_ga951abaa7b25a06bbbdb2f84b0c624a12"><div class="ttname"><a href="group__SDK__EVAL__Com__Exported__Functions.html#ga951abaa7b25a06bbbdb2f84b0c624a12">SdkEvalComInit</a></div><div class="ttdeci">void SdkEvalComInit(void)</div><div class="ttdoc">Configures UART port in DMA mode for both RX and TX.</div><div class="ttdef"><b>Definition:</b> <a href="SDK__EVAL__Com__UART__DMA__TX_8c_source.html#l00088">SDK_EVAL_Com_UART_DMA_TX.c:88</a></div></div>
<div class="ttc" id="group__Basic__Generic__B__Private__Variables_html_ga15edebcb6188877f00efa57a13a78970"><div class="ttname"><a href="group__Basic__Generic__B__Private__Variables.html#ga15edebcb6188877f00efa57a13a78970">xIrqStatus</a></div><div class="ttdeci">S2LPIrqs xIrqStatus</div><div class="ttdoc">IRQ status struct declaration.</div><div class="ttdef"><b>Definition:</b> <a href="SDK__BasicGeneric__B_8c_source.html#l00106">SDK_BasicGeneric_B.c:106</a></div></div>
<div class="ttc" id="group__Basic__Generic__B__Private__Functions_html_ga840291bc02cba5474a4cb46a9b9566fe"><div class="ttname"><a href="group__Basic__Generic__B__Private__Functions.html#ga840291bc02cba5474a4cb46a9b9566fe">main</a></div><div class="ttdeci">int main(void)</div><div class="ttdoc">System main function.</div><div class="ttdef"><b>Definition:</b> <a href="SDK__BasicGeneric__B_8c_source.html#l00283">SDK_BasicGeneric_B.c:283</a></div></div>
<div class="ttc" id="group__Fifo__Exported__Functions_html_ga8f1fa687d0d6ecbc8dd128b6f5576b6c"><div class="ttname"><a href="group__Fifo__Exported__Functions.html#ga8f1fa687d0d6ecbc8dd128b6f5576b6c">S2LPFifoReadNumberBytesRxFifo</a></div><div class="ttdeci">uint8_t S2LPFifoReadNumberBytesRxFifo(void)</div><div class="ttdoc">Return the number of elements in the Rx FIFO.</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Fifo_8c_source.html#l00102">S2LP_Fifo.c:102</a></div></div>
<div class="ttc" id="group__Qi__Exported__Functions_html_gaa6d912f05fc08e174a4247c493ef452b"><div class="ttname"><a href="group__Qi__Exported__Functions.html#gaa6d912f05fc08e174a4247c493ef452b">S2LPRadioGetRssidBm</a></div><div class="ttdeci">int32_t S2LPRadioGetRssidBm(void)</div><div class="ttdoc">Returns the RSSI value.</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Qi_8c_source.html#l00109">S2LP_Qi.c:109</a></div></div>
<div class="ttc" id="group__Basic__Generic__B__Private__Variables_html_ga2897accbeee0d1bc667571ad304cf564"><div class="ttname"><a href="group__Basic__Generic__B__Private__Variables.html#ga2897accbeee0d1bc667571ad304cf564">vectcRxBuff</a></div><div class="ttdeci">uint8_t vectcRxBuff[128]</div><div class="ttdoc">Rx buffer declaration: how to store the received data.</div><div class="ttdef"><b>Definition:</b> <a href="SDK__BasicGeneric__B_8c_source.html#l00112">SDK_BasicGeneric_B.c:112</a></div></div>
<div class="ttc" id="group__Gpio__Exported__Types_html_gga7df105f2d110525f5323d56216255c32afa825326e022f5f304b99420ccf7ae27"><div class="ttname"><a href="group__Gpio__Exported__Types.html#gga7df105f2d110525f5323d56216255c32afa825326e022f5f304b99420ccf7ae27">S2LP_GPIO_3</a></div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Gpio_8h_source.html#l00087">S2LP_Gpio.h:87</a></div></div>
<div class="ttc" id="S2LP__Config_8h_html"><div class="ttname"><a href="S2LP__Config_8h.html">S2LP_Config.h</a></div><div class="ttdoc">S2LP Configuration and useful defines .</div></div>
<div class="ttc" id="group__Gpio__Exported__Types_html_gga93afc54d4cda634c7c5cbf8a69013b5aac810a8e28d74a3c7c191a885498a3230"><div class="ttname"><a href="group__Gpio__Exported__Types.html#gga93afc54d4cda634c7c5cbf8a69013b5aac810a8e28d74a3c7c191a885498a3230">S2LP_GPIO_MODE_DIGITAL_OUTPUT_LP</a></div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Gpio_8h_source.html#l00096">S2LP_Gpio.h:96</a></div></div>
<div class="ttc" id="group__Commands__Exported__Macros_html_ga390cd5d41a2c2c08beb958038a2f9f3d"><div class="ttname"><a href="group__Commands__Exported__Macros.html#ga390cd5d41a2c2c08beb958038a2f9f3d">S2LPCmdStrobeRx</a></div><div class="ttdeci">#define S2LPCmdStrobeRx()</div><div class="ttdoc">Sends the RX command to S2-LP. Start to receive.</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Commands_8h_source.html#l00130">S2LP_Commands.h:130</a></div></div>
<div class="ttc" id="group__SDK__EVAL__Gpio__Exported__Functions_html_gabd2a56fe984b45fbc53757cd0ace0c4c"><div class="ttname"><a href="group__SDK__EVAL__Gpio__Exported__Functions.html#gabd2a56fe984b45fbc53757cd0ace0c4c">SdkEvalM2SGpioInit</a></div><div class="ttdeci">void SdkEvalM2SGpioInit(M2SGpioPin xGpio, M2SGpioMode xGpioMode)</div><div class="ttdoc">Configures MCU GPIO and EXTI Line for GPIOs.</div><div class="ttdef"><b>Definition:</b> <a href="SDK__EVAL__Gpio_8c_source.html#l00134">SDK_EVAL_Gpio.c:134</a></div></div>
<div class="ttc" id="group__SDK__EVAL__Config__Exported__Functions_html_ga7f3c08c832548d36d19f461dc1cf42ac"><div class="ttname"><a href="group__SDK__EVAL__Config__Exported__Functions.html#ga7f3c08c832548d36d19f461dc1cf42ac">SdkEvalIdentification</a></div><div class="ttdeci">void SdkEvalIdentification(void)</div><div class="ttdoc">Identifies the current motherboard.</div><div class="ttdef"><b>Definition:</b> <a href="SDK__EVAL__Config_8c_source.html#l00099">SDK_EVAL_Config.c:99</a></div></div>
<div class="ttc" id="group__SDK__EVAL__Gpio__Exported__Types_html_gga18a3e287b24fc73b43562380e8d0a9efad891dd926080c5b4d7851088de55686a"><div class="ttname"><a href="group__SDK__EVAL__Gpio__Exported__Types.html#gga18a3e287b24fc73b43562380e8d0a9efad891dd926080c5b4d7851088de55686a">M2S_GPIO_3</a></div><div class="ttdef"><b>Definition:</b> <a href="SDK__EVAL__Gpio_8h_source.html#l00088">SDK_EVAL_Gpio.h:88</a></div></div>
<div class="ttc" id="group__Gpio__Exported__Types_html_gga16e1c622c4a0a136f26724b992b32586adbe0a1a72a4081c1338c6cf505512634"><div class="ttname"><a href="group__Gpio__Exported__Types.html#gga16e1c622c4a0a136f26724b992b32586adbe0a1a72a4081c1338c6cf505512634">S2LP_GPIO_DIG_OUT_IRQ</a></div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Gpio_8h_source.html#l00106">S2LP_Gpio.h:106</a></div></div>
<div class="ttc" id="group__Basic__Generic__B__Private__Variables_html_ga30f8af1f7d69dc899776a04e5d2878d8"><div class="ttname"><a href="group__Basic__Generic__B__Private__Variables.html#ga30f8af1f7d69dc899776a04e5d2878d8">xGpioIRQ</a></div><div class="ttdeci">SGpioInit xGpioIRQ</div><div class="ttdoc">GPIO IRQ structure fitting.</div><div class="ttdef"><b>Definition:</b> <a href="SDK__BasicGeneric__B_8c_source.html#l00096">SDK_BasicGeneric_B.c:96</a></div></div>
<div class="ttc" id="group__SDK__EVAL__Led__Exported__Functions_html_gaf99ce8511fa905808e80038ebda90dec"><div class="ttname"><a href="group__SDK__EVAL__Led__Exported__Functions.html#gaf99ce8511fa905808e80038ebda90dec">SdkEvalLedInit</a></div><div class="ttdeci">void SdkEvalLedInit(SdkEvalLed xLed)</div><div class="ttdoc">Configures LED GPIO.</div><div class="ttdef"><b>Definition:</b> <a href="SDK__EVAL__Led_8c_source.html#l00098">SDK_EVAL_Led.c:98</a></div></div>
<div class="ttc" id="structSGpioInit_html"><div class="ttname"><a href="structSGpioInit.html">SGpioInit</a></div><div class="ttdoc">S2LP GPIO Init structure definition.</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Gpio_8h_source.html#l00158">S2LP_Gpio.h:158</a></div></div>
<div class="ttc" id="group__Basic__Generic__B__Private__Variables_html_gab05474141e14b549e00898f353fc2662"><div class="ttname"><a href="group__Basic__Generic__B__Private__Variables.html#gab05474141e14b549e00898f353fc2662">IRQ_PREEMPTION_PRIORITY</a></div><div class="ttdeci">#define IRQ_PREEMPTION_PRIORITY</div><div class="ttdoc">Preemption priority IRQ.</div><div class="ttdef"><b>Definition:</b> <a href="SDK__BasicGeneric__B_8c_source.html#l00117">SDK_BasicGeneric_B.c:117</a></div></div>
<div class="ttc" id="group__Gpio__Exported__Functions_html_gadc65c545de2674d60a4eeef172d027fa"><div class="ttname"><a href="group__Gpio__Exported__Functions.html#gadc65c545de2674d60a4eeef172d027fa">S2LPGpioIrqGetStatus</a></div><div class="ttdeci">void S2LPGpioIrqGetStatus(S2LPIrqs *pxIrqStatus)</div><div class="ttdoc">Fill a pointer to a structure of S2LPIrqs type reading the IRQ_STATUS registers.</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Gpio_8c_source.html#l00383">S2LP_Gpio.c:383</a></div></div>
<div class="ttc" id="group__Timer__Exported__Functions_html_ga31bc4e5e62906184faca46a72509b9dd"><div class="ttname"><a href="group__Timer__Exported__Functions.html#ga31bc4e5e62906184faca46a72509b9dd">S2LPTimerSetRxTimerUs</a></div><div class="ttdeci">void S2LPTimerSetRxTimerUs(uint32_t lDesiredUsec)</div><div class="ttdoc">Set the RX timeout timer counter and prescaler from the desired value in ms. it is possible to fix th...</div><div class="ttdef"><b>Definition:</b> <a href="S2LP__Timer_8c_source.html#l00362">S2LP_Timer.c:362</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>