82 lines
13 KiB
HTML
82 lines
13 KiB
HTML
<!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.16"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>B15F: drv/requests.h 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">B15F
|
|
</div>
|
|
<div id="projectbrief">Board 15 Famulus Edition</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.16 -->
|
|
<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_587c94d866dbb2f408f78cf41f9b2f8d.html">drv</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">requests.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef REQUESTS_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define REQUESTS_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>  </div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> constexpr <span class="keyword">static</span> uint8_t RQ_DISCARD = 0;</div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> constexpr <span class="keyword">static</span> uint8_t RQ_TEST = 1;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> constexpr <span class="keyword">static</span> uint8_t RQ_INFO = 2;</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> constexpr <span class="keyword">static</span> uint8_t RQ_INT_TEST = 3;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> constexpr <span class="keyword">static</span> uint8_t RQ_SELF_TEST = 4;</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> constexpr <span class="keyword">static</span> uint8_t RQ_DIGITAL_WRITE_0 = 5;</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> constexpr <span class="keyword">static</span> uint8_t RQ_DIGITAL_WRITE_1 = 6;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> constexpr <span class="keyword">static</span> uint8_t RQ_DIGITAL_READ_0 = 7;</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> constexpr <span class="keyword">static</span> uint8_t RQ_DIGITAL_READ_1 = 8;</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> constexpr <span class="keyword">static</span> uint8_t RQ_READ_DIP_SWITCH = 9;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> constexpr <span class="keyword">static</span> uint8_t RQ_ANALOG_WRITE_0 = 10;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> constexpr <span class="keyword">static</span> uint8_t RQ_ANALOG_WRITE_1 = 11;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> constexpr <span class="keyword">static</span> uint8_t RQ_ANALOG_READ = 12;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> constexpr <span class="keyword">static</span> uint8_t RQ_ADC_DAC_STROKE = 13;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> constexpr <span class="keyword">static</span> uint8_t RQ_PWM_SET_FREQ = 14;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> constexpr <span class="keyword">static</span> uint8_t RQ_PWM_SET_VALUE = 15;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> constexpr <span class="keyword">static</span> uint8_t RQ_SET_MEM_8 = 16;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> constexpr <span class="keyword">static</span> uint8_t RQ_GET_MEM_8 = 17;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> constexpr <span class="keyword">static</span> uint8_t RQ_SET_MEM_16 = 18;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> constexpr <span class="keyword">static</span> uint8_t RQ_GET_MEM_16 = 19;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> constexpr <span class="keyword">static</span> uint8_t RQ_COUNTER_OFFSET = 20;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> constexpr <span class="keyword">static</span> uint8_t RQ_SERVO_ENABLE = 21;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> constexpr <span class="keyword">static</span> uint8_t RQ_SERVO_DISABLE = 22;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> constexpr <span class="keyword">static</span> uint8_t RQ_SERVO_SET_POS = 23;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> uint8_t <span class="keyword">const</span> rq_len[] =</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>  1 <span class="comment">/* RQ_DISCARD */</span>,</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  1 <span class="comment">/* RQ_TEST */</span> + 1 <span class="comment">/* test byte */</span>,</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  1 <span class="comment">/* RQ_INFO */</span>,</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  1 <span class="comment">/* RQ_INT_TEST */</span> + 1 <span class="comment">/* test int high low */</span> + 1 <span class="comment">/* test int high high */</span>,</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  1 <span class="comment">/* RQ_SELF_TEST */</span>,</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  1 <span class="comment">/* RQ_DIGITAL_WRITE_0 */</span> + 1 <span class="comment">/* port value */</span>,</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  1 <span class="comment">/* RQ_DIGITAL_WRITE_1 */</span> + 1 <span class="comment">/* port value */</span>,</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  1 <span class="comment">/* RQ_DIGITAL_READ_0 */</span>,</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  1 <span class="comment">/* RQ_DIGITAL_READ_1 */</span>,</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  1 <span class="comment">/* RQ_READ_DIP_SWITCH */</span>,</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  1 <span class="comment">/* RQ_ANALOG_WRITE_0 */</span> + 1 <span class="comment">/* test int high low */</span> + 1 <span class="comment">/* test int high high */</span>,</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  1 <span class="comment">/* RQ_ANALOG_WRITE_1 */</span> + 1 <span class="comment">/* test int high low */</span> + 1 <span class="comment">/* test int high high */</span>,</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  1 <span class="comment">/* RQ_ANALOG_READ */</span> + 1 <span class="comment">/* adc channel */</span>,</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  1 <span class="comment">/* RQ_ADC_DAC_STROKE */</span> + 1 <span class="comment">/* channel a */</span> + 1 <span class="comment">/* channel b */</span> + 1 <span class="comment">/* start low */</span> + 1 <span class="comment">/* start high */</span> + 1 <span class="comment">/* delta low */</span> + 1 <span class="comment">/* delta high */</span> + 1 <span class="comment">/* count low */</span> + 1 <span class="comment">/* count high */</span>,</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  1 <span class="comment">/* RQ_PWM_SET_FREQ */</span> + 1 <span class="comment">/* freq low low */</span> + 1 <span class="comment">/* freq low high */</span> + 1 <span class="comment">/* freq high low */</span> + 1 <span class="comment">/* freq high high */</span>,</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  1 <span class="comment">/* RQ_PWM_SET_VALUE */</span> + 1 <span class="comment">/* pwm value */</span>,</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  1 <span class="comment">/* RQ_SET_MEM_8 */</span> + 1 <span class="comment">/* memory address low */</span> + 1 <span class="comment">/* memory address high */</span> + 1 <span class="comment">/* memory value (8-bit) */</span>,</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  1 <span class="comment">/* RQ_GET_MEM_8 */</span> + 1 <span class="comment">/* memory address low */</span> + 1 <span class="comment">/* memory address high */</span>,</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  1 <span class="comment">/* RQ_SET_MEM_16 */</span> + 1 <span class="comment">/* memory address low */</span> + 1 <span class="comment">/* memory address high */</span> + 1 <span class="comment">/* memory value low */</span> + 1 <span class="comment">/* memory value high */</span>,</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  1 <span class="comment">/* RQ_GET_MEM_16 */</span> + 1 <span class="comment">/* memory address low */</span> + 1 <span class="comment">/* memory address high */</span>,</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  1 <span class="comment">/* RQ_COUNTER_OFFSET */</span>,</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  1 <span class="comment">/* RQ_SERVO_ENABLE */</span>,</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  1 <span class="comment">/* RQ_SERVO_DISABLE */</span>,</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  1 <span class="comment">/* RQ_SERVO_SET_POS */</span> + 1 <span class="comment">/* pulse length low */</span> + 1 <span class="comment">/* pulse length high */</span>,</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> };</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="preprocessor">#endif // REQUESTS_H</span></div></div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Mon Jul 8 2019 21:09:34 for B15F by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.16
|
|
</small></address>
|
|
</body>
|
|
</html>
|