📄 pmsm_8h.html
字号:
<tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define FALSE 0 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>FALSE constant value. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00049">49</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>. </td> </tr></table><a class="anchor" name="a12"></a><!-- doxytag: member="PMSM.h::H1_PIN" ref="a12" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define H1_PIN PA0 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Pin where hall sensor 1 is connected. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00095">95</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00484">GetHall()</a>, and <a class="el" href="main_8c-source.html#l00187">PortsInit()</a>. </td> </tr></table><a class="anchor" name="a13"></a><!-- doxytag: member="PMSM.h::H2_PIN" ref="a13" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define H2_PIN PA1 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Pin where hall sensor 2 is connected. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00098">98</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00484">GetHall()</a>, and <a class="el" href="main_8c-source.html#l00187">PortsInit()</a>. </td> </tr></table><a class="anchor" name="a14"></a><!-- doxytag: member="PMSM.h::H3_PIN" ref="a14" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define H3_PIN PA2 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Pin where hall sensor 3 is connected. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00101">101</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00484">GetHall()</a>, and <a class="el" href="main_8c-source.html#l00187">PortsInit()</a>. </td> </tr></table><a class="anchor" name="a15"></a><!-- doxytag: member="PMSM.h::HALL_PULL_UP_ENABLE" ref="a15" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define HALL_PULL_UP_ENABLE FALSE </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Hall sensor pull-up enable. Set to TRUE to enable, FALSE to disable. <p><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00104">104</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>. </td> </tr></table><a class="anchor" name="a52"></a><!-- doxytag: member="PMSM.h::PID_K_D" ref="a52" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define PID_K_D 0 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>PID controller derivative gain constant. <dl compact><dt><b><a class="el" href="todo.html#_todo000008">Todo:</a></b></dt><dd>Adjust PID controller derivative gain. (Only for closed loop) </dd></dl><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00258">258</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00120">main()</a>. </td> </tr></table><a class="anchor" name="a51"></a><!-- doxytag: member="PMSM.h::PID_K_I" ref="a51" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define PID_K_I 10 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>PID controller integral gain constant. <dl compact><dt><b><a class="el" href="todo.html#_todo000007">Todo:</a></b></dt><dd>Adjust PID controller integral gain. (Only for closed loop) </dd></dl><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00253">253</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00120">main()</a>. </td> </tr></table><a class="anchor" name="a50"></a><!-- doxytag: member="PMSM.h::PID_K_P" ref="a50" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define PID_K_P 256 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>PID controller proportional gain constant. <dl compact><dt><b><a class="el" href="todo.html#_todo000006">Todo:</a></b></dt><dd>Adjust PID controller proportional gain. (Only for closed loop) </dd></dl><p>Definition at line <a class="el" href="PMSM_8h-source.html#l00248">248</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00120">main()</a>. </td> </tr></table><a class="anchor" name="a4"></a><!-- doxytag: member="PMSM.h::PWM1X" ref="a4" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define PWM1X 7 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Bit position of PWM1X flag in TCCR1B register. <p>Bit position of PWM1X flag in TCCR1B register. Included in this file becuase it was not defined in the compilers header files.<p>Definition at line <a class="el" href="PMSM_8h-source.html#l00068">68</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00218">PWMInit()</a>. </td> </tr></table><a class="anchor" name="a26"></a><!-- doxytag: member="PMSM.h::PWM_INVERT_OUTPUT" ref="a26" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define PWM_INVERT_OUTPUT 0 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Selects inversion of PWM outputs. <p>Setting this flag to "1" causes the PWM outputs from Timer/Counter1 to be inverted. Inversion happens after dead time insertion.<p>Definition at line <a class="el" href="PMSM_8h-source.html#l00136">136</a> of file <a class="el" href="PMSM_8h-source.html">PMSM.h</a>.<p>Referenced by <a class="el" href="main_8c-source.html#l00218">PWMInit()</a>. </td> </tr></table><a class="anchor" name="a11"></a><!-- doxytag: member="PMSM.h::PWM_PIN_MASK_PORTB" ref="a11" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define PWM_PIN_MASK_PORTB ((1 << UL) | (1 << UH) | (1 << VL) | (1 << VH) | (1 << WL) | (1 << WH)) </td> </tr> </table> </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -