📄 speed__cntr_8h.html
字号:
</table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="speed__cntr_8h-source.html#l00082">82</a> of file <a class="el" href="speed__cntr_8h-source.html">speed_cntr.h</a>.<p>Referenced by <a class="el" href="speed__cntr_8c-source.html#l00046">speed_cntr_Move()</a>, and <a class="el" href="speed__cntr_8c-source.html#l00164">speed_cntr_TIMER1_COMPA_interrupt()</a>. </td> </tr></table><a class="anchor" name="a1" doxytag="speed_cntr.h::FSPR" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> #define FSPR 200 </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Number of (full)steps per round on stepper motor in use. <p><p>Definition at line <a class="el" href="speed__cntr_8h-source.html#l00056">56</a> of file <a class="el" href="speed__cntr_8h-source.html">speed_cntr.h</a>. </td> </tr></table><a class="anchor" name="a10" doxytag="speed_cntr.h::RUN" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> #define RUN 3 </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="speed__cntr_8h-source.html#l00083">83</a> of file <a class="el" href="speed__cntr_8h-source.html">speed_cntr.h</a>.<p>Referenced by <a class="el" href="speed__cntr_8c-source.html#l00046">speed_cntr_Move()</a>, and <a class="el" href="speed__cntr_8c-source.html#l00164">speed_cntr_TIMER1_COMPA_interrupt()</a>. </td> </tr></table><a class="anchor" name="a7" doxytag="speed_cntr.h::STOP" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> #define STOP 0 </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="speed__cntr_8h-source.html#l00080">80</a> of file <a class="el" href="speed__cntr_8h-source.html">speed_cntr.h</a>.<p>Referenced by <a class="el" href="speed__cntr_8c-source.html#l00143">speed_cntr_Init_Timer1()</a>, and <a class="el" href="speed__cntr_8c-source.html#l00164">speed_cntr_TIMER1_COMPA_interrupt()</a>. </td> </tr></table><a class="anchor" name="a0" doxytag="speed_cntr.h::T1_FREQ" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> #define T1_FREQ 460750 </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Frequency of timer1 in [Hz].<p>Modify this according to frequency used. Because of the prescaler setting, the timer1 frequency is the clock frequency divided by 8. <p>Definition at line <a class="el" href="speed__cntr_8h-source.html#l00053">53</a> of file <a class="el" href="speed__cntr_8h-source.html">speed_cntr.h</a>. </td> </tr></table><a class="anchor" name="a4" doxytag="speed_cntr.h::T1_FREQ_148" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> #define T1_FREQ_148 ((int)((T1_FREQ*0.676)/100)) </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="speed__cntr_8h-source.html#l00075">75</a> of file <a class="el" href="speed__cntr_8h-source.html">speed_cntr.h</a>.<p>Referenced by <a class="el" href="speed__cntr_8c-source.html#l00046">speed_cntr_Move()</a>. </td> </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="a15" doxytag="speed_cntr.h::min" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> unsigned int min </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">unsigned int </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>unsigned int </td> <td class="mdname" nowrap> <em>y</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Find minimum value. <p>Returns the smallest value.<p><dl compact><dt><b>Returns:</b></dt><dd>Min(x,y). </dd></dl><p>Definition at line <a class="el" href="speed__cntr_8c-source.html#l00281">281</a> of file <a class="el" href="speed__cntr_8c-source.html">speed_cntr.c</a>.<p><pre class="fragment"><div>00282 {00283 <span class="keywordflow">if</span>(x < y){00284 <span class="keywordflow">return</span> x;00285 }00286 <span class="keywordflow">else</span>{00287 <span class="keywordflow">return</span> y;00288 }00289 }</div></pre> </td> </tr></table><a class="anchor" name="a13" doxytag="speed_cntr.h::speed_cntr_Init_Timer1" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void speed_cntr_Init_Timer1 </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -