<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Virtual timers list header. <ahref="struct_v_t_list.html#_details">More...</a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns TRUE if the speciified timer is armed. <ahref="#gae54e6dd40bc7b9cdeb409393ec9e134a"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Checks if the current system time is within the specified time window. <ahref="#ga47933e7381151ab9cc0888e53ced3847"></a><br/></td></tr>
<p>Converts from milliseconds to system ticks number. </p>
<dlclass="note"><dt><b>Note:</b></dt><dd>The result is rounded upward to the next tick boundary. </dd></dl>
<p>Definition at line <aclass="el"href="chvt_8h_source.html#l00050">50</a> of file <aclass="el"href="chvt_8h_source.html">chvt.h</a>.</p>
<p>Referenced by <aclass="el"href="group___m_m_c___s_p_i.html#ga076506461b42641a9fe632cc3e72dab5">mmcStart()</a>, and <aclass="el"href="group___m_m_c___s_p_i.html#ga6aae8e8af4ea0c35c677fa472fb36318">tmrfunc()</a>.</p>
<aclass="code"href="group__time.html#gaf86fafcf8f7ea15d07e55f45dd80e3ac"title="Virtual timers delta list header.">vtlist</a>.<aclass="code"href="struct_v_t_list.html#ac2964dcbab06e6498301aaf51d508d77"title="System Time counter.">vt_systime</a>++; \
<spanclass="keywordflow">if</span> (&<aclass="code"href="group__time.html#gaf86fafcf8f7ea15d07e55f45dd80e3ac"title="Virtual timers delta list header.">vtlist</a> != (<aclass="code"href="struct_v_t_list.html"title="Virtual timers list header.">VTList</a> *)<aclass="code"href="group__time.html#gaf86fafcf8f7ea15d07e55f45dd80e3ac"title="Virtual timers delta list header.">vtlist</a>.<aclass="code"href="struct_v_t_list.html#a18ed6321ebb9d1d4977bc3b1a8d6531d"title="Next timer in the delta list.">vt_next</a>) { \
--<aclass="code"href="group__time.html#gaf86fafcf8f7ea15d07e55f45dd80e3ac"title="Virtual timers delta list header.">vtlist</a>.<aclass="code"href="struct_v_t_list.html#a18ed6321ebb9d1d4977bc3b1a8d6531d"title="Next timer in the delta list.">vt_next</a>-><aclass="code"href="struct_virtual_timer.html#a81422ae4e1d42f486d678bf85772573f"title="Time delta before timeout.">vt_time</a>; \
<spanclass="keywordflow">while</span> (!(vtp = <aclass="code"href="group__time.html#gaf86fafcf8f7ea15d07e55f45dd80e3ac"title="Virtual timers delta list header.">vtlist</a>.<aclass="code"href="struct_v_t_list.html#a18ed6321ebb9d1d4977bc3b1a8d6531d"title="Next timer in the delta list.">vt_next</a>)->vt_time) { \
vtp-><aclass="code"href="struct_virtual_timer.html#a7130d3aa62ec1ee1c71a1034278cd60f"title="Next timer in the delta list.">vt_next</a>-><aclass="code"href="struct_virtual_timer.html#ab2a1ca6407192845f2cb04ba9775c593"title="Previous timer in the delta list.">vt_prev</a> = (<spanclass="keywordtype">void</span> *)&<aclass="code"href="group__time.html#gaf86fafcf8f7ea15d07e55f45dd80e3ac"title="Virtual timers delta list header.">vtlist</a>; \
(&<aclass="code"href="group__time.html#gaf86fafcf8f7ea15d07e55f45dd80e3ac"title="Virtual timers delta list header.">vtlist</a>)->vt_next = vtp-><aclass="code"href="struct_virtual_timer.html#a7130d3aa62ec1ee1c71a1034278cd60f"title="Next timer in the delta list.">vt_next</a>; \
fn(vtp-><aclass="code"href="struct_virtual_timer.html#aa86e3ff1de8fa6c58f2267ed6bc09cb1"title="Timer callback function parameter.">vt_par</a>); \
} \
} \
}
</pre></div>
<p>Virtual timers ticker. </p>
<p>Definition at line <aclass="el"href="chvt_8h_source.html#l00106">106</a> of file <aclass="el"href="chvt_8h_source.html">chvt.h</a>.</p>
<p>Referenced by <aclass="el"href="group__system.html#ga1e42ee112f4a5d2c95be07d523c247be">chSysTimerHandlerI()</a>.</p>
<p>Returns TRUE if the speciified timer is armed. </p>
<p>Definition at line <aclass="el"href="chvt_8h_source.html#l00139">139</a> of file <aclass="el"href="chvt_8h_source.html">chvt.h</a>.</p>
<p>Referenced by <aclass="el"href="group__scheduler.html#ga306e564f678c1a39139639490c77e78b">chSchGoSleepTimeoutS()</a>, and <aclass="el"href="classchibios__rt_1_1_timer.html#a97e29d53a4aaf2ef997732be63fdee6e">chibios_rt::Timer::IsArmed()</a>.</p>
<p>Returns the number of system ticks since the <code><aclass="el"href="group__system.html#gafe2c7de6567e98e487e009e81e3be10b"title="ChibiOS/RT initialization.">chSysInit()</a></code> invocation. </p>
<dlclass="note"><dt><b>Note:</b></dt><dd>The counter can reach its maximum and then restart from zero. </dd>
This function is designed to work with the <code><aclass="el"href="group__threads.html#ga9e6e2f8d46d415e8f0862daf0be1d984"title="Suspends the invoking thread until the system time arrives to the specified value.">chThdSleepUntil()</a></code>.</dd></dl>
<dlclass="return"><dt><b>Returns:</b></dt><dd>The system time in ticks.r </dd></dl>
<p>Definition at line <aclass="el"href="chvt_8h_source.html#l00150">150</a> of file <aclass="el"href="chvt_8h_source.html">chvt.h</a>.</p>
<p>Referenced by <aclass="el"href="group__debug.html#gac7f8f0653faf2e3a93108ff5333821b7">chDbgTrace()</a>, <aclass="el"href="group__threads.html#ga9e6e2f8d46d415e8f0862daf0be1d984">chThdSleepUntil()</a>, <aclass="el"href="group__time.html#ga47933e7381151ab9cc0888e53ced3847">chTimeIsWithin()</a>, <aclass="el"href="classchibios__rt_1_1_system.html#a74fb442c63f2a34c0a81dbfa42319976">chibios_rt::System::GetTime()</a>, <aclass="el"href="group___m_a_c.html#ga151a33674ef86c2403ac7797fa87805c">macWaitReceiveDescriptor()</a>, and <aclass="el"href="group___m_a_c.html#ga7304721038db1d7c0cb616c9c4d3f0ce">macWaitTransmitDescriptor()</a>.</p>
<dlclass="note"><dt><b>Note:</b></dt><dd>The associated function is invoked by an interrupt handler within the I-Locked state, see <aclass="el"href="concepts.html#system_states">System States</a>.</dd></dl>
<tr><tdvalign="top"><tt>[in]</tt> </td><tdvalign="top"><em>time</em> </td><td>the number of time ticks, the value <code>TIME_INFINITE</code> is notallowed. The value <code>TIME_IMMEDIATE</code> is allowed but interpreted as a normal time specification not as an immediate timeout specification. </td></tr>
<tr><tdvalign="top"><tt>[in]</tt> </td><tdvalign="top"><em>vtfunc</em> </td><td>the timer callback function. After invoking the callback the timer is disabled and the structure can be disposed or reused. </td></tr>
<tr><tdvalign="top"><tt>[in]</tt> </td><tdvalign="top"><em>par</em> </td><td>a parameter that will be passed to the callback function </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <aclass="el"href="chvt_8c_source.html#l00070">70</a> of file <aclass="el"href="chvt_8c_source.html">chvt.c</a>.</p>
<p>References <aclass="el"href="group__debug.html#ga6bb6c0f97caab3a66332c8bfbf7a3844">chDbgCheck</a>, <aclass="el"href="group__scheduler.html#gae1568cf3090c973c3bc47f86ae2f5afb">TIME_INFINITE</a>, <aclass="el"href="struct_virtual_timer.html#aac8307916bebf903e4f3e783910cf0e6">VirtualTimer::vt_func</a>, <aclass="el"href="struct_virtual_timer.html#a7130d3aa62ec1ee1c71a1034278cd60f">VirtualTimer::vt_next</a>, <aclass="el"href="struct_v_t_list.html#a18ed6321ebb9d1d4977bc3b1a8d6531d">VTList::vt_next</a>, <aclass="el"href="struct_virtual_timer.html#aa86e3ff1de8fa6c58f2267ed6bc09cb1">VirtualTimer::vt_par</a>, <aclass="el"href="struct_virtual_timer.html#ab2a1ca6407192845f2cb04ba9775c593">VirtualTimer::vt_prev</a>, and <aclass="el"href="struct_virtual_timer.html#a81422ae4e1d42f486d678bf85772573f">VirtualTimer::vt_time</a>.</p>
<p>Referenced by <aclass="el"href="group__scheduler.html#ga306e564f678c1a39139639490c77e78b">chSchGoSleepTimeoutS()</a>, <aclass="el"href="group___m_m_c___s_p_i.html#ga076506461b42641a9fe632cc3e72dab5">mmcStart()</a>, <aclass="el"href="classchibios__rt_1_1_timer.html#a375cb7ce8108c24336016a94efd8a787">chibios_rt::Timer::Set()</a>, and <aclass="el"href="group___m_m_c___s_p_i.html#ga6aae8e8af4ea0c35c677fa472fb36318">tmrfunc()</a>.</p>
<p>Definition at line <aclass="el"href="chvt_8c_source.html#l00097">97</a> of file <aclass="el"href="chvt_8c_source.html">chvt.c</a>.</p>
<p>References <aclass="el"href="group__debug.html#ga43d50c69eb730d0f024eb832d61f30c9">chDbgAssert</a>, <aclass="el"href="group__debug.html#ga6bb6c0f97caab3a66332c8bfbf7a3844">chDbgCheck</a>, <aclass="el"href="struct_virtual_timer.html#aac8307916bebf903e4f3e783910cf0e6">VirtualTimer::vt_func</a>, <aclass="el"href="struct_virtual_timer.html#a7130d3aa62ec1ee1c71a1034278cd60f">VirtualTimer::vt_next</a>, <aclass="el"href="struct_virtual_timer.html#ab2a1ca6407192845f2cb04ba9775c593">VirtualTimer::vt_prev</a>, and <aclass="el"href="struct_virtual_timer.html#a81422ae4e1d42f486d678bf85772573f">VirtualTimer::vt_time</a>.</p>
<p>Referenced by <aclass="el"href="group__scheduler.html#ga306e564f678c1a39139639490c77e78b">chSchGoSleepTimeoutS()</a>, <aclass="el"href="group___m_m_c___s_p_i.html#ga27833cde77794f914e4802c7e65281a5">mmcStop()</a>, and <aclass="el"href="classchibios__rt_1_1_timer.html#a065b7fbc2a055152c39505ae91ea9754">chibios_rt::Timer::Reset()</a>.</p>
Generated on Sun Oct 24 2010 09:40:46 for ChibiOS/RT by <ahref="http://www.doxygen.org/index.html"><imgsrc="doxygen.png"alt="doxygen"align="middle"border="0"></a> 1.7.1</small></address>