-
Notifications
You must be signed in to change notification settings - Fork 0
/
_i2_c_8h_source.html
134 lines (132 loc) · 25.7 KB
/
_i2_c_8h_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
127
128
129
130
131
132
133
134
<!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>myWRIO: C:/Users/jackb/OneDrive - etu.univ-lyon1.fr/TERi/Eclipse/workspace/APIForRIO/src/I2C.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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</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">myWRIO
</div>
<div id="projectbrief">C++ framework for NationalInstruments myRIO</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>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_i2_c_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- 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 class="header">
<div class="headertitle">
<div class="title">I2C.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="_i2_c_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef I2C_H_</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define I2C_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> <span class="preprocessor">#include "<a class="code" href="_my_r_i_o_8h.html">MyRio.h</a>"</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include "CAPI/MyRio.h"</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> </div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="keyword">namespace </span><a class="code" href="namespacemy_r_i_o.html">myRIO</a> {</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> </div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html"> 12</a></span> <span class="keyword">union </span><a class="code" href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html">I2C_CNTL</a> {</div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html#a590e8a16f27531253fc48bd52aa363d1"> 13</a></span>  uint8_t <a class="code" href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html#a590e8a16f27531253fc48bd52aa363d1">data</a>;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <span class="keyword">struct </span>{</div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html#adca03f901a3067c8e4a1573be3fea8aa"> 15</a></span>  <span class="keywordtype">bool</span> <a class="code" href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html#adca03f901a3067c8e4a1573be3fea8aa">tx</a> : 1;</div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html#ab721b45eb7ceae44692e5cee08491a9c"> 16</a></span>  <span class="keywordtype">bool</span> <a class="code" href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html#ab721b45eb7ceae44692e5cee08491a9c">start</a> : 1;</div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html#aeaf980c2488cc3ba590d202065421e46"> 17</a></span>  <span class="keywordtype">bool</span> <a class="code" href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html#aeaf980c2488cc3ba590d202065421e46">stop</a> : 1;</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html#a5838102ead54753b5a49dba007672f9e"> 18</a></span>  <span class="keywordtype">bool</span> <a class="code" href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html#a5838102ead54753b5a49dba007672f9e">ack</a> : 1;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  };</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> };</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="namespacemy_r_i_o.html#a2b619f28b73958e88a4e880f6b06b98bad5f5ba9db8eb42116f225836173b8c4b"> 26</a></span>  <a class="code" href="namespacemy_r_i_o.html#a2b619f28b73958e88a4e880f6b06b98bad5f5ba9db8eb42116f225836173b8c4b">SPD_100KBPS</a> = 100,</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="namespacemy_r_i_o.html#a2b619f28b73958e88a4e880f6b06b98baf8035e01f05c5456b48ac2bbc6267b21"> 27</a></span>  <a class="code" href="namespacemy_r_i_o.html#a2b619f28b73958e88a4e880f6b06b98baf8035e01f05c5456b48ac2bbc6267b21">SPD_400KBPS</a> = 400</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> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="namespacemy_r_i_o.html#a86c89b50665c5b9e40e94a1e63bbae38a1579b1a2f39010510467b7183f5b7748"> 34</a></span>  <a class="code" href="namespacemy_r_i_o.html#a86c89b50665c5b9e40e94a1e63bbae38a1579b1a2f39010510467b7183f5b7748">I2C_WRITE</a>,</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="namespacemy_r_i_o.html#a86c89b50665c5b9e40e94a1e63bbae38a973c1b9fd75c1517c4747a4b4896f402"> 35</a></span>  <a class="code" href="namespacemy_r_i_o.html#a86c89b50665c5b9e40e94a1e63bbae38a973c1b9fd75c1517c4747a4b4896f402">I2C_READ</a></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> };</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classmy_r_i_o_1_1_i2_c.html"> 41</a></span> <span class="keyword">class </span><a class="code" href="classmy_r_i_o_1_1_i2_c.html">I2C</a> {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">static</span> <a class="code" href="classmy_r_i_o_1_1_i2_c.html">I2C</a> *<a class="code" href="classmy_r_i_o_1_1_i2_c.html#af38bb693bc9c445ca675faeb9bacd6ee">open</a>();</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordtype">void</span> <a class="code" href="classmy_r_i_o_1_1_i2_c.html#a8c039ad2880f4a27b07374ca60f41eff">close</a>();</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="classmy_r_i_o_1_1_i2_c.html">I2C</a>* <a class="code" href="classmy_r_i_o_1_1_i2_c.html#a46c2a82b1a8146fc6b4a688a82a0970d">slave</a>(uint8_t addr);</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordtype">bool</span> <a class="code" href="classmy_r_i_o_1_1_i2_c.html#a17cbf8d61e1ecaf6dc21a2aa0def1f27">write</a>(uint8_t reg, uint8_t data);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">bool</span> <a class="code" href="classmy_r_i_o_1_1_i2_c.html#ab7aa6e32b813f4291619d3693cac7132">writeFrom</a>(uint8_t reg, uint8_t* data, uint8_t dataSize);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">bool</span> <a class="code" href="classmy_r_i_o_1_1_i2_c.html#a0885faa777f4c62e70979c84d5133090">read</a>(uint8_t reg, uint8_t*data);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordtype">bool</span> <a class="code" href="classmy_r_i_o_1_1_i2_c.html#a3067e3c1553f3b0a8d17c5ab9807d5db">readFrom</a>(uint8_t reg, uint8_t* data, uint8_t dataSize);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="code" href="classmy_r_i_o_1_1_i2_c.html">I2C</a> <a class="code" href="classmy_r_i_o_1_1_i2_c.html#a57755eab4de5779268181852311750a2">speed</a>(<span class="keywordtype">int</span> SPD_XXKBPS);</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordtype">bool</span> <a class="code" href="classmy_r_i_o_1_1_i2_c.html#a3d8367c29c94b70ab2b5743a211599f8">start</a>(<span class="keywordtype">bool</span> RW, uint8_t reg, uint8_t*data, uint8_t dataSize);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="classmy_r_i_o_1_1_i2_c.html#afaad09fa9bdd23623bddbdcd7585a9fe">~I2C</a>();</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classmy_r_i_o_1_1_i2_c.html#ac743f00dad30c25bbec38724390b4b0c"> 55</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classmy_r_i_o_1_1_i2_c.html#ac743f00dad30c25bbec38724390b4b0c">nbInstance</a>;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="classmy_r_i_o_1_1_i2_c.html#a7a9a84fccdacb3346ff97d6f3e158850">I2C</a>();</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  uint8_t <a class="code" href="classmy_r_i_o_1_1_i2_c.html#a677b038aa4bb75d92a8c24087e8c3743">wait</a>();</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordtype">bool</span> <a class="code" href="classmy_r_i_o_1_1_i2_c.html#a10f0d27f69fb7421bf1772341802ded6">checkErrors</a>(uint8_t state);</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classmy_r_i_o_1_1_i2_c.html#a0bba74f1bfa8195e11ca1e26255f531b"> 61</a></span>  uint8_t <a class="code" href="classmy_r_i_o_1_1_i2_c.html#a0bba74f1bfa8195e11ca1e26255f531b">slaveAddr</a>; </div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classmy_r_i_o_1_1_i2_c.html#a8fc07132464800950fec5db8d80d60e3"> 62</a></span>  uint8_t <a class="code" href="classmy_r_i_o_1_1_i2_c.html#a8fc07132464800950fec5db8d80d60e3">cntr</a>; </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> };</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> } <span class="comment">/* namespace myRIO */</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="preprocessor">#endif </span><span class="comment">/* I2C_H_ */</span><span class="preprocessor"></span></div><div class="ttc" id="namespacemy_r_i_o_html_a2b619f28b73958e88a4e880f6b06b98baf8035e01f05c5456b48ac2bbc6267b21"><div class="ttname"><a href="namespacemy_r_i_o.html#a2b619f28b73958e88a4e880f6b06b98baf8035e01f05c5456b48ac2bbc6267b21">myRIO::SPD_400KBPS</a></div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8h_source.html#l00027">I2C.h:27</a></div></div>
<div class="ttc" id="classmy_r_i_o_1_1_i2_c_html_a46c2a82b1a8146fc6b4a688a82a0970d"><div class="ttname"><a href="classmy_r_i_o_1_1_i2_c.html#a46c2a82b1a8146fc6b4a688a82a0970d">myRIO::I2C::slave</a></div><div class="ttdeci">I2C * slave(uint8_t addr)</div><div class="ttdoc">Set the slave address to talk to.</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8cpp_source.html#l00041">I2C.cpp:41</a></div></div>
<div class="ttc" id="classmy_r_i_o_1_1_i2_c_html_a10f0d27f69fb7421bf1772341802ded6"><div class="ttname"><a href="classmy_r_i_o_1_1_i2_c.html#a10f0d27f69fb7421bf1772341802ded6">myRIO::I2C::checkErrors</a></div><div class="ttdeci">bool checkErrors(uint8_t state)</div><div class="ttdoc">Check for errors during the previous communication.</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8cpp_source.html#l00224">I2C.cpp:224</a></div></div>
<div class="ttc" id="classmy_r_i_o_1_1_i2_c_html_a57755eab4de5779268181852311750a2"><div class="ttname"><a href="classmy_r_i_o_1_1_i2_c.html#a57755eab4de5779268181852311750a2">myRIO::I2C::speed</a></div><div class="ttdeci">I2C speed(int SPD_XXKBPS)</div><div class="ttdoc">Set the I2C bus speed.</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8cpp_source.html#l00090">I2C.cpp:90</a></div></div>
<div class="ttc" id="_my_r_i_o_8h_html"><div class="ttname"><a href="_my_r_i_o_8h.html">MyRIO.h</a></div></div>
<div class="ttc" id="unionmy_r_i_o_1_1_i2_c___c_n_t_l_html_adca03f901a3067c8e4a1573be3fea8aa"><div class="ttname"><a href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html#adca03f901a3067c8e4a1573be3fea8aa">myRIO::I2C_CNTL::tx</a></div><div class="ttdeci">bool tx</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8h_source.html#l00015">I2C.h:15</a></div></div>
<div class="ttc" id="classmy_r_i_o_1_1_i2_c_html_a3067e3c1553f3b0a8d17c5ab9807d5db"><div class="ttname"><a href="classmy_r_i_o_1_1_i2_c.html#a3067e3c1553f3b0a8d17c5ab9807d5db">myRIO::I2C::readFrom</a></div><div class="ttdeci">bool readFrom(uint8_t reg, uint8_t *data, uint8_t dataSize)</div><div class="ttdoc">Read multiple registers, starting to reg.</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8cpp_source.html#l00080">I2C.cpp:80</a></div></div>
<div class="ttc" id="classmy_r_i_o_1_1_i2_c_html_afaad09fa9bdd23623bddbdcd7585a9fe"><div class="ttname"><a href="classmy_r_i_o_1_1_i2_c.html#afaad09fa9bdd23623bddbdcd7585a9fe">myRIO::I2C::~I2C</a></div><div class="ttdeci">~I2C()</div><div class="ttdoc">Close the I2C channel.</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8cpp_source.html#l00245">I2C.cpp:245</a></div></div>
<div class="ttc" id="classmy_r_i_o_1_1_i2_c_html_a677b038aa4bb75d92a8c24087e8c3743"><div class="ttname"><a href="classmy_r_i_o_1_1_i2_c.html#a677b038aa4bb75d92a8c24087e8c3743">myRIO::I2C::wait</a></div><div class="ttdeci">uint8_t wait()</div><div class="ttdoc">Wait for myRIO to end a frame.</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8cpp_source.html#l00210">I2C.cpp:210</a></div></div>
<div class="ttc" id="classmy_r_i_o_1_1_i2_c_html_a7a9a84fccdacb3346ff97d6f3e158850"><div class="ttname"><a href="classmy_r_i_o_1_1_i2_c.html#a7a9a84fccdacb3346ff97d6f3e158850">myRIO::I2C::I2C</a></div><div class="ttdeci">I2C()</div><div class="ttdoc">Enable the I2C channel A on myRIO.</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8cpp_source.html#l00010">I2C.cpp:10</a></div></div>
<div class="ttc" id="classmy_r_i_o_1_1_i2_c_html_ac743f00dad30c25bbec38724390b4b0c"><div class="ttname"><a href="classmy_r_i_o_1_1_i2_c.html#ac743f00dad30c25bbec38724390b4b0c">myRIO::I2C::nbInstance</a></div><div class="ttdeci">static int nbInstance</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8h_source.html#l00055">I2C.h:55</a></div></div>
<div class="ttc" id="classmy_r_i_o_1_1_i2_c_html"><div class="ttname"><a href="classmy_r_i_o_1_1_i2_c.html">myRIO::I2C</a></div><div class="ttdoc">In this configuration, myRIO will always be the master.</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8h_source.html#l00041">I2C.h:41</a></div></div>
<div class="ttc" id="classmy_r_i_o_1_1_i2_c_html_a0bba74f1bfa8195e11ca1e26255f531b"><div class="ttname"><a href="classmy_r_i_o_1_1_i2_c.html#a0bba74f1bfa8195e11ca1e26255f531b">myRIO::I2C::slaveAddr</a></div><div class="ttdeci">uint8_t slaveAddr</div><div class="ttdoc">Slave address.</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8h_source.html#l00061">I2C.h:61</a></div></div>
<div class="ttc" id="unionmy_r_i_o_1_1_i2_c___c_n_t_l_html_ab721b45eb7ceae44692e5cee08491a9c"><div class="ttname"><a href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html#ab721b45eb7ceae44692e5cee08491a9c">myRIO::I2C_CNTL::start</a></div><div class="ttdeci">bool start</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8h_source.html#l00016">I2C.h:16</a></div></div>
<div class="ttc" id="namespacemy_r_i_o_html_a86c89b50665c5b9e40e94a1e63bbae38a973c1b9fd75c1517c4747a4b4896f402"><div class="ttname"><a href="namespacemy_r_i_o.html#a86c89b50665c5b9e40e94a1e63bbae38a973c1b9fd75c1517c4747a4b4896f402">myRIO::I2C_READ</a></div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8h_source.html#l00035">I2C.h:35</a></div></div>
<div class="ttc" id="classmy_r_i_o_1_1_i2_c_html_a3d8367c29c94b70ab2b5743a211599f8"><div class="ttname"><a href="classmy_r_i_o_1_1_i2_c.html#a3d8367c29c94b70ab2b5743a211599f8">myRIO::I2C::start</a></div><div class="ttdeci">bool start(bool RW, uint8_t reg, uint8_t *data, uint8_t dataSize)</div><div class="ttdoc">Begin the procedure.</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8cpp_source.html#l00102">I2C.cpp:102</a></div></div>
<div class="ttc" id="classmy_r_i_o_1_1_i2_c_html_af38bb693bc9c445ca675faeb9bacd6ee"><div class="ttname"><a href="classmy_r_i_o_1_1_i2_c.html#af38bb693bc9c445ca675faeb9bacd6ee">myRIO::I2C::open</a></div><div class="ttdeci">static I2C * open()</div><div class="ttdoc">You can use this to open multiple I2C channels, for exemple use I2CB.</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8cpp_source.html#l00030">I2C.cpp:30</a></div></div>
<div class="ttc" id="classmy_r_i_o_1_1_i2_c_html_a8fc07132464800950fec5db8d80d60e3"><div class="ttname"><a href="classmy_r_i_o_1_1_i2_c.html#a8fc07132464800950fec5db8d80d60e3">myRIO::I2C::cntr</a></div><div class="ttdeci">uint8_t cntr</div><div class="ttdoc">Contains informations relative to the procedure to come.</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8h_source.html#l00062">I2C.h:62</a></div></div>
<div class="ttc" id="namespacemy_r_i_o_html_a86c89b50665c5b9e40e94a1e63bbae38a1579b1a2f39010510467b7183f5b7748"><div class="ttname"><a href="namespacemy_r_i_o.html#a86c89b50665c5b9e40e94a1e63bbae38a1579b1a2f39010510467b7183f5b7748">myRIO::I2C_WRITE</a></div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8h_source.html#l00034">I2C.h:34</a></div></div>
<div class="ttc" id="unionmy_r_i_o_1_1_i2_c___c_n_t_l_html_a590e8a16f27531253fc48bd52aa363d1"><div class="ttname"><a href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html#a590e8a16f27531253fc48bd52aa363d1">myRIO::I2C_CNTL::data</a></div><div class="ttdeci">uint8_t data</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8h_source.html#l00013">I2C.h:13</a></div></div>
<div class="ttc" id="classmy_r_i_o_1_1_i2_c_html_ab7aa6e32b813f4291619d3693cac7132"><div class="ttname"><a href="classmy_r_i_o_1_1_i2_c.html#ab7aa6e32b813f4291619d3693cac7132">myRIO::I2C::writeFrom</a></div><div class="ttdeci">bool writeFrom(uint8_t reg, uint8_t *data, uint8_t dataSize)</div><div class="ttdoc">Write any size of data starting from reg address.</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8cpp_source.html#l00061">I2C.cpp:61</a></div></div>
<div class="ttc" id="unionmy_r_i_o_1_1_i2_c___c_n_t_l_html_a5838102ead54753b5a49dba007672f9e"><div class="ttname"><a href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html#a5838102ead54753b5a49dba007672f9e">myRIO::I2C_CNTL::ack</a></div><div class="ttdeci">bool ack</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8h_source.html#l00018">I2C.h:18</a></div></div>
<div class="ttc" id="namespacemy_r_i_o_html_a2b619f28b73958e88a4e880f6b06b98bad5f5ba9db8eb42116f225836173b8c4b"><div class="ttname"><a href="namespacemy_r_i_o.html#a2b619f28b73958e88a4e880f6b06b98bad5f5ba9db8eb42116f225836173b8c4b">myRIO::SPD_100KBPS</a></div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8h_source.html#l00026">I2C.h:26</a></div></div>
<div class="ttc" id="unionmy_r_i_o_1_1_i2_c___c_n_t_l_html"><div class="ttname"><a href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html">myRIO::I2C_CNTL</a></div><div class="ttdoc">I2C_CNTL contains informations about the procedure to come.</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8h_source.html#l00012">I2C.h:12</a></div></div>
<div class="ttc" id="classmy_r_i_o_1_1_i2_c_html_a17cbf8d61e1ecaf6dc21a2aa0def1f27"><div class="ttname"><a href="classmy_r_i_o_1_1_i2_c.html#a17cbf8d61e1ecaf6dc21a2aa0def1f27">myRIO::I2C::write</a></div><div class="ttdeci">bool write(uint8_t reg, uint8_t data)</div><div class="ttdoc">Write 8 bits data to the given registry on a previously set slave.</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8cpp_source.html#l00051">I2C.cpp:51</a></div></div>
<div class="ttc" id="namespacemy_r_i_o_html"><div class="ttname"><a href="namespacemy_r_i_o.html">myRIO</a></div><div class="ttdef"><b>Definition:</b> <a href="_acc_8h_source.html#l00008">Acc.h:8</a></div></div>
<div class="ttc" id="classmy_r_i_o_1_1_i2_c_html_a8c039ad2880f4a27b07374ca60f41eff"><div class="ttname"><a href="classmy_r_i_o_1_1_i2_c.html#a8c039ad2880f4a27b07374ca60f41eff">myRIO::I2C::close</a></div><div class="ttdeci">void close()</div><div class="ttdoc">Delete (somehow violently) an I2C object.</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8cpp_source.html#l00238">I2C.cpp:238</a></div></div>
<div class="ttc" id="classmy_r_i_o_1_1_i2_c_html_a0885faa777f4c62e70979c84d5133090"><div class="ttname"><a href="classmy_r_i_o_1_1_i2_c.html#a0885faa777f4c62e70979c84d5133090">myRIO::I2C::read</a></div><div class="ttdeci">bool read(uint8_t reg, uint8_t *data)</div><div class="ttdoc">Read a register and get that data back to data.</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8cpp_source.html#l00070">I2C.cpp:70</a></div></div>
<div class="ttc" id="unionmy_r_i_o_1_1_i2_c___c_n_t_l_html_aeaf980c2488cc3ba590d202065421e46"><div class="ttname"><a href="unionmy_r_i_o_1_1_i2_c___c_n_t_l.html#aeaf980c2488cc3ba590d202065421e46">myRIO::I2C_CNTL::stop</a></div><div class="ttdeci">bool stop</div><div class="ttdef"><b>Definition:</b> <a href="_i2_c_8h_source.html#l00017">I2C.h:17</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_98fb12f9c07806436144af22cad486e4.html">Eclipse</a></li><li class="navelem"><a class="el" href="dir_e17da8bc7b823c1f82c904fefd57a078.html">workspace</a></li><li class="navelem"><a class="el" href="dir_814e4b17f8683e03c2431c0e57f58eb6.html">APIForRIO</a></li><li class="navelem"><a class="el" href="dir_c047dd42b8eba02cf6377cb404ab9432.html">src</a></li><li class="navelem"><a class="el" href="_i2_c_8h.html">I2C.h</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
</ul>
</div>
</body>
</html>