stripe_8h_source.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.10"/>
  7. <title>CoffeePi: stripe.h Source File</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/searchdata.js"></script>
  13. <script type="text/javascript" src="search/search.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(function() { init_search(); });
  16. </script>
  17. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  18. </head>
  19. <body>
  20. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  21. <div id="titlearea">
  22. <table cellspacing="0" cellpadding="0">
  23. <tbody>
  24. <tr style="height: 56px;">
  25. <td id="projectalign" style="padding-left: 0.5em;">
  26. <div id="projectname">CoffeePi
  27. </div>
  28. <div id="projectbrief">Coffee machine control for Raspberry Pi</div>
  29. </td>
  30. </tr>
  31. </tbody>
  32. </table>
  33. </div>
  34. <!-- end header part -->
  35. <!-- Generated by Doxygen 1.8.10 -->
  36. <script type="text/javascript">
  37. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  38. </script>
  39. <div id="navrow1" class="tabs">
  40. <ul class="tablist">
  41. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  42. <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
  43. <li class="current"><a href="files.html"><span>Files</span></a></li>
  44. <li>
  45. <div id="MSearchBox" class="MSearchBoxInactive">
  46. <span class="left">
  47. <img id="MSearchSelect" src="search/mag_sel.png"
  48. onmouseover="return searchBox.OnSearchSelectShow()"
  49. onmouseout="return searchBox.OnSearchSelectHide()"
  50. alt=""/>
  51. <input type="text" id="MSearchField" value="Search" accesskey="S"
  52. onfocus="searchBox.OnSearchFieldFocus(true)"
  53. onblur="searchBox.OnSearchFieldFocus(false)"
  54. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  55. </span><span class="right">
  56. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  57. </span>
  58. </div>
  59. </li>
  60. </ul>
  61. </div>
  62. <div id="navrow2" class="tabs2">
  63. <ul class="tablist">
  64. <li><a href="files.html"><span>File&#160;List</span></a></li>
  65. <li><a href="globals.html"><span>Globals</span></a></li>
  66. </ul>
  67. </div>
  68. </div><!-- top -->
  69. <!-- window showing the filter options -->
  70. <div id="MSearchSelectWindow"
  71. onmouseover="return searchBox.OnSearchSelectShow()"
  72. onmouseout="return searchBox.OnSearchSelectHide()"
  73. onkeydown="return searchBox.OnSearchSelectKey(event)">
  74. </div>
  75. <!-- iframe showing the search results (closed by default) -->
  76. <div id="MSearchResultsWindow">
  77. <iframe src="javascript:void(0)" frameborder="0"
  78. name="MSearchResults" id="MSearchResults">
  79. </iframe>
  80. </div>
  81. <div class="header">
  82. <div class="headertitle">
  83. <div class="title">stripe.h</div> </div>
  84. </div><!--header-->
  85. <div class="contents">
  86. <a href="stripe_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>&#160;<span class="comment">/*</span></div>
  87. <div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * stripe.h</span></div>
  88. <div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> *</span></div>
  89. <div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * Created on: Sep 25, 2017</span></div>
  90. <div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * Author: Philipp Hinz</span></div>
  91. <div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> */</span></div>
  92. <div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div>
  93. <div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#ifndef STRIPE_H_</span></div>
  94. <div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#define STRIPE_H_</span></div>
  95. <div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div>
  96. <div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">// i2c</span></div>
  97. <div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="stripe_8h.html#a52f9fc93ce25c487d4f72b9f2f400545"> 12</a></span>&#160;<span class="preprocessor">#define I2C_ADDRESS_STRIPE 0x69</span></div>
  98. <div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="stripe_8h.html#ad06bb775e1f72bc21a5f17a19eb62e80"> 13</a></span>&#160;<span class="preprocessor">#define STRIPE_CMD_SETR 0x01</span></div>
  99. <div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="stripe_8h.html#ac62893e9f8f3793a3f6de3338a9a93ff"> 14</a></span>&#160;<span class="preprocessor">#define STRIPE_CMD_SETG 0x02</span></div>
  100. <div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="stripe_8h.html#a25c93d4301c3ad1064adfb9eff952211"> 15</a></span>&#160;<span class="preprocessor">#define STRIPE_CMD_SETB 0x03</span></div>
  101. <div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="stripe_8h.html#a3c5fd782e0479daf6bb272d5197c8877"> 16</a></span>&#160;<span class="preprocessor">#define STRIPE_CMD_SETW 0x04</span></div>
  102. <div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="stripe_8h.html#aedb99f1c6b67c005f5a2cd6dea06c6b7"> 17</a></span>&#160;<span class="preprocessor">#define STRIPE_CMD_SETDIM 0x05</span></div>
  103. <div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="stripe_8h.html#ab495a56c339e141ecbecfd9872f81fbb"> 18</a></span>&#160;<span class="preprocessor">#define STRIPE_CMD_SET 0x06 // Bytes: DIM R G B W</span></div>
  104. <div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="stripe_8h.html#aead1e6fe1bdc60cade5b071a293864cc"> 19</a></span>&#160;<span class="preprocessor">#define STRIPE_CMD_SET2 0x07 // Bytes: DIM R G B</span></div>
  105. <div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="stripe_8h.html#a0a2c9ea1a805ca03af6c43c107c98e8e"> 20</a></span>&#160;<span class="preprocessor">#define STRIPE_CMD_RESET 0x09</span></div>
  106. <div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="stripe_8h.html#a14287ccb3789c724603c28910512a0b3"> 21</a></span>&#160;<span class="preprocessor">#define STRIPE_CMD_FADEOUT 0x0A // Bytes: TIMEH TIMEL</span></div>
  107. <div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="stripe_8h.html#a80ccf336e21703504faf1b3acba2c98b"> 22</a></span>&#160;<span class="preprocessor">#define STRIPE_CMD_FADETO 0x0B // Bytes: R G B W TIMEH TIMEL</span></div>
  108. <div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="stripe_8h.html#a2e4a6f31f6823ec2592e9216a51232f2"> 23</a></span>&#160;<span class="preprocessor">#define STRIPE_CMD_FADESTOP 0x0C</span></div>
  109. <div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div>
  110. <div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment">// Color transient (fading) parameters</span></div>
  111. <div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="stripe_8h.html#aa761062faf633557e537e07a781965e9"> 26</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
  112. <div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="stripe_8h.html#aa761062faf633557e537e07a781965e9ad41450786f0c8b404231dfaff4c14931"> 27</a></span>&#160; <a class="code" href="stripe_8h.html#aa761062faf633557e537e07a781965e9ad41450786f0c8b404231dfaff4c14931">TRANS_DIRECT</a> = 0,</div>
  113. <div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="stripe_8h.html#aa761062faf633557e537e07a781965e9a37991877080c17224eaa0268947a545c"> 28</a></span>&#160; <a class="code" href="stripe_8h.html#aa761062faf633557e537e07a781965e9a37991877080c17224eaa0268947a545c">TRANS_FAST</a> = 6,</div>
  114. <div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="stripe_8h.html#aa761062faf633557e537e07a781965e9a26be047607e612751d1979597dd21185"> 29</a></span>&#160; <a class="code" href="stripe_8h.html#aa761062faf633557e537e07a781965e9a26be047607e612751d1979597dd21185">TRANS_MEDIUM</a> = 35,</div>
  115. <div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="stripe_8h.html#aa761062faf633557e537e07a781965e9ad1105b7089df16f505a8c28ef4e31f04"> 30</a></span>&#160; <a class="code" href="stripe_8h.html#aa761062faf633557e537e07a781965e9ad1105b7089df16f505a8c28ef4e31f04">TRANS_SLOW</a> = 200</div>
  116. <div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;} <a class="code" href="stripe_8h.html#aa761062faf633557e537e07a781965e9">stripe_transient_t</a>;</div>
  117. <div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div>
  118. <div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="structstripe__color.html"> 33</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structstripe__color.html">stripe_color</a> {</div>
  119. <div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="structstripe__color.html#a784aa14cb8856664e9533883d8add33b"> 34</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structstripe__color.html#a784aa14cb8856664e9533883d8add33b">red</a> = 0;</div>
  120. <div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="structstripe__color.html#ab650b31353bfddd30e9ea11f8adb870f"> 35</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structstripe__color.html#ab650b31353bfddd30e9ea11f8adb870f">green</a> = 0;</div>
  121. <div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="structstripe__color.html#a2de85b974fc4ec0bcea12d6a270e53a9"> 36</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structstripe__color.html#a2de85b974fc4ec0bcea12d6a270e53a9">blue</a> = 0;</div>
  122. <div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;};</div>
  123. <div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;</div>
  124. <div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="keywordtype">void</span> *<a class="code" href="stripe_8h.html#a914baf734bc672a910769802c1e882c8">stripeThread</a>(<span class="keywordtype">void</span> *threadid);</div>
  125. <div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keywordtype">void</span> *<a class="code" href="stripe_8h.html#a630b80b8bd1e8a0f535b21a720de76b8">stripeTimerHandler</a>(<span class="keywordtype">void</span> *threadid);</div>
  126. <div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="keywordtype">void</span> <a class="code" href="stripe_8h.html#aec214522cff28dc1b0f20c2ec2870189">stripeInit</a>(<span class="keywordtype">void</span>);</div>
  127. <div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="keywordtype">int</span> <a class="code" href="stripe_8h.html#ab58f9b853bd6c2deb11f6b64e6275cd7">stripeCommand</a>(<span class="keywordtype">int</span> len, <span class="keywordtype">char</span>* data);</div>
  128. <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="keywordtype">void</span> <a class="code" href="stripe_8h.html#a79a7d75b45ddbb2b3324ec450658136c">stripeUpdate</a>(<span class="keywordtype">void</span>);</div>
  129. <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="keywordtype">void</span> <a class="code" href="stripe_8h.html#a849e5953dbdb82fb8405b1ab43067eed">stripeUpdateDim</a>(<span class="keywordtype">void</span>);</div>
  130. <div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="keywordtype">void</span> <a class="code" href="stripe_8h.html#a405699059b25eae6001d1e989a1da5d6">stripeSetRGB</a>(<span class="keywordtype">int</span> red, <span class="keywordtype">int</span> green, <span class="keywordtype">int</span> blue);</div>
  131. <div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="keywordtype">void</span> <a class="code" href="stripe_8h.html#a32197a6a1a75aaf54a2a19dbc31be4e0">stripeSetColor</a>(<a class="code" href="structstripe__color.html">stripe_color</a> color);</div>
  132. <div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="keywordtype">void</span> <a class="code" href="stripe_8h.html#a26524f75c9d72587489d20bba6c61da6">stripeSetTransient</a>(<a class="code" href="stripe_8h.html#aa761062faf633557e537e07a781965e9">stripe_transient_t</a> <span class="keyword">transient</span>);</div>
  133. <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="keywordtype">void</span> <a class="code" href="stripe_8h.html#ade9bc3e5b3fabc99922d78df6ae96434">stripeSetDim</a>(<span class="keywordtype">int</span> dim);</div>
  134. <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="keywordtype">void</span> <a class="code" href="stripe_8h.html#a2ae73653f2098fdae40bb0916949e77e">stripeSetWhite</a>(<span class="keywordtype">int</span> white);</div>
  135. <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="keywordtype">void</span> <a class="code" href="stripe_8h.html#a9130dbeb208c1b9e5519834f7de6a530">stripeOn</a>(<span class="keywordtype">void</span>);</div>
  136. <div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="keywordtype">void</span> <a class="code" href="stripe_8h.html#a40d444a306464fa8547feea96737ae0d">stripeOff</a>(<span class="keywordtype">void</span>);</div>
  137. <div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="keywordtype">void</span> <a class="code" href="stripe_8h.html#ac5379b3ade62c829d19654c22efd90de">stripeGetRGB</a>(<span class="keywordtype">int</span>* red, <span class="keywordtype">int</span>* green, <span class="keywordtype">int</span>* blue);</div>
  138. <div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="keywordtype">void</span> <a class="code" href="stripe_8h.html#ab479c1db854476cf80b86d1fe33a908e">stripeGetDim</a>(<span class="keywordtype">int</span>* dim);</div>
  139. <div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="keywordtype">void</span> <a class="code" href="stripe_8h.html#aa67941dfd018cc2e0ba62a76a3d9136d">stripeGetWhite</a>(<span class="keywordtype">int</span>* white);</div>
  140. <div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="keywordtype">void</span> <a class="code" href="stripe_8h.html#a40cca6b9cc8aeca2f28442126528163b">stripeEffectDisable</a>(<span class="keywordtype">void</span>);</div>
  141. <div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="keywordtype">void</span> <a class="code" href="stripe_8h.html#a97c35798100bbf3208fd15cc5615cd97">stripeEffectHeating</a>(<span class="keywordtype">int</span> percent);</div>
  142. <div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="keywordtype">void</span> <a class="code" href="stripe_8h.html#aea3ed8a6a2d07ed7f8f2ff59f6fa3a01">stripeEffectPulse</a>(<a class="code" href="structstripe__color.html">stripe_color</a> color);</div>
  143. <div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;</div>
  144. <div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* STRIPE_H_ */</span><span class="preprocessor"></span></div>
  145. <div class="ttc" id="stripe_8h_html_aa761062faf633557e537e07a781965e9"><div class="ttname"><a href="stripe_8h.html#aa761062faf633557e537e07a781965e9">stripe_transient_t</a></div><div class="ttdeci">stripe_transient_t</div><div class="ttdef"><b>Definition:</b> stripe.h:26</div></div>
  146. <div class="ttc" id="stripe_8h_html_aa761062faf633557e537e07a781965e9a37991877080c17224eaa0268947a545c"><div class="ttname"><a href="stripe_8h.html#aa761062faf633557e537e07a781965e9a37991877080c17224eaa0268947a545c">TRANS_FAST</a></div><div class="ttdef"><b>Definition:</b> stripe.h:28</div></div>
  147. <div class="ttc" id="stripe_8h_html_a630b80b8bd1e8a0f535b21a720de76b8"><div class="ttname"><a href="stripe_8h.html#a630b80b8bd1e8a0f535b21a720de76b8">stripeTimerHandler</a></div><div class="ttdeci">void * stripeTimerHandler(void *threadid)</div><div class="ttdoc">This is the handler for time based stripe effects. </div><div class="ttdef"><b>Definition:</b> stripe.cpp:30</div></div>
  148. <div class="ttc" id="stripe_8h_html_a2ae73653f2098fdae40bb0916949e77e"><div class="ttname"><a href="stripe_8h.html#a2ae73653f2098fdae40bb0916949e77e">stripeSetWhite</a></div><div class="ttdeci">void stripeSetWhite(int white)</div><div class="ttdoc">Updates the white value of the stripe (4th channel) </div><div class="ttdef"><b>Definition:</b> stripe.cpp:198</div></div>
  149. <div class="ttc" id="stripe_8h_html_ab479c1db854476cf80b86d1fe33a908e"><div class="ttname"><a href="stripe_8h.html#ab479c1db854476cf80b86d1fe33a908e">stripeGetDim</a></div><div class="ttdeci">void stripeGetDim(int *dim)</div><div class="ttdoc">Reads the current stripe dimmer value. </div><div class="ttdef"><b>Definition:</b> stripe.cpp:236</div></div>
  150. <div class="ttc" id="stripe_8h_html_aa67941dfd018cc2e0ba62a76a3d9136d"><div class="ttname"><a href="stripe_8h.html#aa67941dfd018cc2e0ba62a76a3d9136d">stripeGetWhite</a></div><div class="ttdeci">void stripeGetWhite(int *white)</div><div class="ttdoc">Reads the current stripe white value (4th channel) </div><div class="ttdef"><b>Definition:</b> stripe.cpp:244</div></div>
  151. <div class="ttc" id="stripe_8h_html_a40cca6b9cc8aeca2f28442126528163b"><div class="ttname"><a href="stripe_8h.html#a40cca6b9cc8aeca2f28442126528163b">stripeEffectDisable</a></div><div class="ttdeci">void stripeEffectDisable(void)</div><div class="ttdoc">Stops current running effects. </div><div class="ttdef"><b>Definition:</b> stripe.cpp:251</div></div>
  152. <div class="ttc" id="stripe_8h_html_aa761062faf633557e537e07a781965e9a26be047607e612751d1979597dd21185"><div class="ttname"><a href="stripe_8h.html#aa761062faf633557e537e07a781965e9a26be047607e612751d1979597dd21185">TRANS_MEDIUM</a></div><div class="ttdef"><b>Definition:</b> stripe.h:29</div></div>
  153. <div class="ttc" id="stripe_8h_html_a9130dbeb208c1b9e5519834f7de6a530"><div class="ttname"><a href="stripe_8h.html#a9130dbeb208c1b9e5519834f7de6a530">stripeOn</a></div><div class="ttdeci">void stripeOn(void)</div><div class="ttdoc">Turns the stripe on (Sets dimmer to 100%) </div><div class="ttdef"><b>Definition:</b> stripe.cpp:205</div></div>
  154. <div class="ttc" id="stripe_8h_html_a914baf734bc672a910769802c1e882c8"><div class="ttname"><a href="stripe_8h.html#a914baf734bc672a910769802c1e882c8">stripeThread</a></div><div class="ttdeci">void * stripeThread(void *threadid)</div><div class="ttdoc">Thread for the stripe control. </div><div class="ttdef"><b>Definition:</b> stripe.cpp:45</div></div>
  155. <div class="ttc" id="structstripe__color_html"><div class="ttname"><a href="structstripe__color.html">stripe_color</a></div><div class="ttdef"><b>Definition:</b> stripe.h:33</div></div>
  156. <div class="ttc" id="stripe_8h_html_aa761062faf633557e537e07a781965e9ad1105b7089df16f505a8c28ef4e31f04"><div class="ttname"><a href="stripe_8h.html#aa761062faf633557e537e07a781965e9ad1105b7089df16f505a8c28ef4e31f04">TRANS_SLOW</a></div><div class="ttdef"><b>Definition:</b> stripe.h:30</div></div>
  157. <div class="ttc" id="structstripe__color_html_a784aa14cb8856664e9533883d8add33b"><div class="ttname"><a href="structstripe__color.html#a784aa14cb8856664e9533883d8add33b">stripe_color::red</a></div><div class="ttdeci">int red</div><div class="ttdef"><b>Definition:</b> stripe.h:34</div></div>
  158. <div class="ttc" id="structstripe__color_html_a2de85b974fc4ec0bcea12d6a270e53a9"><div class="ttname"><a href="structstripe__color.html#a2de85b974fc4ec0bcea12d6a270e53a9">stripe_color::blue</a></div><div class="ttdeci">int blue</div><div class="ttdef"><b>Definition:</b> stripe.h:36</div></div>
  159. <div class="ttc" id="stripe_8h_html_a79a7d75b45ddbb2b3324ec450658136c"><div class="ttname"><a href="stripe_8h.html#a79a7d75b45ddbb2b3324ec450658136c">stripeUpdate</a></div><div class="ttdeci">void stripeUpdate(void)</div><div class="ttdoc">Updates the color data and prepares the stripe command. </div><div class="ttdef"><b>Definition:</b> stripe.cpp:119</div></div>
  160. <div class="ttc" id="stripe_8h_html_aea3ed8a6a2d07ed7f8f2ff59f6fa3a01"><div class="ttname"><a href="stripe_8h.html#aea3ed8a6a2d07ed7f8f2ff59f6fa3a01">stripeEffectPulse</a></div><div class="ttdeci">void stripeEffectPulse(stripe_color color)</div><div class="ttdoc">Enables pulsing with a given color of the stripe. </div><div class="ttdef"><b>Definition:</b> stripe.cpp:276</div></div>
  161. <div class="ttc" id="stripe_8h_html_aec214522cff28dc1b0f20c2ec2870189"><div class="ttname"><a href="stripe_8h.html#aec214522cff28dc1b0f20c2ec2870189">stripeInit</a></div><div class="ttdeci">void stripeInit(void)</div><div class="ttdoc">Initializes i2c communication to stripe controller. </div><div class="ttdef"><b>Definition:</b> stripe.cpp:78</div></div>
  162. <div class="ttc" id="stripe_8h_html_aa761062faf633557e537e07a781965e9ad41450786f0c8b404231dfaff4c14931"><div class="ttname"><a href="stripe_8h.html#aa761062faf633557e537e07a781965e9ad41450786f0c8b404231dfaff4c14931">TRANS_DIRECT</a></div><div class="ttdef"><b>Definition:</b> stripe.h:27</div></div>
  163. <div class="ttc" id="stripe_8h_html_a40d444a306464fa8547feea96737ae0d"><div class="ttname"><a href="stripe_8h.html#a40d444a306464fa8547feea96737ae0d">stripeOff</a></div><div class="ttdeci">void stripeOff(void)</div><div class="ttdoc">Turns the stripe on (Sets dimmer to 0%) </div><div class="ttdef"><b>Definition:</b> stripe.cpp:215</div></div>
  164. <div class="ttc" id="stripe_8h_html_a97c35798100bbf3208fd15cc5615cd97"><div class="ttname"><a href="stripe_8h.html#a97c35798100bbf3208fd15cc5615cd97">stripeEffectHeating</a></div><div class="ttdeci">void stripeEffectHeating(int percent)</div><div class="ttdoc">Sets the stripe to a correspondending color to the heating status. </div><div class="ttdef"><b>Definition:</b> stripe.cpp:259</div></div>
  165. <div class="ttc" id="stripe_8h_html_ab58f9b853bd6c2deb11f6b64e6275cd7"><div class="ttname"><a href="stripe_8h.html#ab58f9b853bd6c2deb11f6b64e6275cd7">stripeCommand</a></div><div class="ttdeci">int stripeCommand(int len, char *data)</div><div class="ttdoc">Sends out command data to the stripe controller via i2c. </div><div class="ttdef"><b>Definition:</b> stripe.cpp:101</div></div>
  166. <div class="ttc" id="stripe_8h_html_a26524f75c9d72587489d20bba6c61da6"><div class="ttname"><a href="stripe_8h.html#a26524f75c9d72587489d20bba6c61da6">stripeSetTransient</a></div><div class="ttdeci">void stripeSetTransient(stripe_transient_t transient)</div><div class="ttdoc">Updates the transient time for the stripe (fading) </div><div class="ttdef"><b>Definition:</b> stripe.cpp:182</div></div>
  167. <div class="ttc" id="structstripe__color_html_ab650b31353bfddd30e9ea11f8adb870f"><div class="ttname"><a href="structstripe__color.html#ab650b31353bfddd30e9ea11f8adb870f">stripe_color::green</a></div><div class="ttdeci">int green</div><div class="ttdef"><b>Definition:</b> stripe.h:35</div></div>
  168. <div class="ttc" id="stripe_8h_html_a405699059b25eae6001d1e989a1da5d6"><div class="ttname"><a href="stripe_8h.html#a405699059b25eae6001d1e989a1da5d6">stripeSetRGB</a></div><div class="ttdeci">void stripeSetRGB(int red, int green, int blue)</div><div class="ttdoc">Updates the color of the stripe. </div><div class="ttdef"><b>Definition:</b> stripe.cpp:163</div></div>
  169. <div class="ttc" id="stripe_8h_html_ac5379b3ade62c829d19654c22efd90de"><div class="ttname"><a href="stripe_8h.html#ac5379b3ade62c829d19654c22efd90de">stripeGetRGB</a></div><div class="ttdeci">void stripeGetRGB(int *red, int *green, int *blue)</div><div class="ttdoc">Reads the current stripe color. </div><div class="ttdef"><b>Definition:</b> stripe.cpp:226</div></div>
  170. <div class="ttc" id="stripe_8h_html_a32197a6a1a75aaf54a2a19dbc31be4e0"><div class="ttname"><a href="stripe_8h.html#a32197a6a1a75aaf54a2a19dbc31be4e0">stripeSetColor</a></div><div class="ttdeci">void stripeSetColor(stripe_color color)</div><div class="ttdoc">Updates the color of the stripe. </div><div class="ttdef"><b>Definition:</b> stripe.cpp:174</div></div>
  171. <div class="ttc" id="stripe_8h_html_a849e5953dbdb82fb8405b1ab43067eed"><div class="ttname"><a href="stripe_8h.html#a849e5953dbdb82fb8405b1ab43067eed">stripeUpdateDim</a></div><div class="ttdeci">void stripeUpdateDim(void)</div><div class="ttdoc">Updates the dimmer value of the stripe. </div><div class="ttdef"><b>Definition:</b> stripe.cpp:147</div></div>
  172. <div class="ttc" id="stripe_8h_html_ade9bc3e5b3fabc99922d78df6ae96434"><div class="ttname"><a href="stripe_8h.html#ade9bc3e5b3fabc99922d78df6ae96434">stripeSetDim</a></div><div class="ttdeci">void stripeSetDim(int dim)</div><div class="ttdoc">Updates the dimmer value of the stripe. </div><div class="ttdef"><b>Definition:</b> stripe.cpp:190</div></div>
  173. </div><!-- fragment --></div><!-- contents -->
  174. <!-- start footer part -->
  175. <hr class="footer"/><address class="footer"><small>
  176. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  177. <img class="footer" src="doxygen.png" alt="doxygen"/>
  178. </a> 1.8.10
  179. </small></address>
  180. </body>
  181. </html>