Files
discoverpixy/group___t_i_m___group3.html
2015-05-12 11:12:43 +02:00

664 lines
34 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.9.1"/>
<title>discoverpixy: Input Capture management functions</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="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>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</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 style="padding-left: 0.5em;">
<div id="projectname">discoverpixy
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
</div><!-- top -->
<!-- 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="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Input Capture management functions<div class="ingroups"><a class="el" href="group___s_t_m32_f4xx___std_periph___driver.html">STM32F4xx_StdPeriph_Driver</a> &raquo; <a class="el" href="group___t_i_m.html">TIM</a> &raquo; <a class="el" href="group___t_i_m___private___functions.html">TIM_Private_Functions</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p>Input Capture management functions.
<a href="#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for Input Capture management functions:</div>
<div class="dyncontent">
<center><table><tr><td><img src="group___t_i_m___group3.png" border="0" alt="" usemap="#group______t__i__m______group3"/>
<map name="group______t__i__m______group3" id="group______t__i__m______group3">
<area shape="rect" id="node2" href="group___t_i_m___private___functions.html" title="TIM_Private_Functions" alt="" coords="5,13,159,39"/></map>
</td></tr></table></center>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga9e6a153dd6552e4e1188eba227316f7f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_i_m___group3.html#ga9e6a153dd6552e4e1188eba227316f7f">TIM_ICInit</a> (<a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *TIMx, <a class="el" href="struct_t_i_m___i_c_init_type_def.html">TIM_ICInitTypeDef</a> *TIM_ICInitStruct)</td></tr>
<tr class="memdesc:ga9e6a153dd6552e4e1188eba227316f7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the TIM peripheral according to the specified parameters in the TIM_ICInitStruct. <a href="#ga9e6a153dd6552e4e1188eba227316f7f">More...</a><br /></td></tr>
<tr class="separator:ga9e6a153dd6552e4e1188eba227316f7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5005dac8e4e8a4c7fc2a0ef05b77cc50"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_i_m___group3.html#ga5005dac8e4e8a4c7fc2a0ef05b77cc50">TIM_ICStructInit</a> (<a class="el" href="struct_t_i_m___i_c_init_type_def.html">TIM_ICInitTypeDef</a> *TIM_ICInitStruct)</td></tr>
<tr class="memdesc:ga5005dac8e4e8a4c7fc2a0ef05b77cc50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills each TIM_ICInitStruct member with its default value. <a href="#ga5005dac8e4e8a4c7fc2a0ef05b77cc50">More...</a><br /></td></tr>
<tr class="separator:ga5005dac8e4e8a4c7fc2a0ef05b77cc50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa71f9296556310f85628d6c748a06475"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_i_m___group3.html#gaa71f9296556310f85628d6c748a06475">TIM_PWMIConfig</a> (<a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *TIMx, <a class="el" href="struct_t_i_m___i_c_init_type_def.html">TIM_ICInitTypeDef</a> *TIM_ICInitStruct)</td></tr>
<tr class="memdesc:gaa71f9296556310f85628d6c748a06475"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the TIM peripheral according to the specified parameters in the TIM_ICInitStruct to measure an external PWM signal. <a href="#gaa71f9296556310f85628d6c748a06475">More...</a><br /></td></tr>
<tr class="separator:gaa71f9296556310f85628d6c748a06475"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6bd39ca543305ff0cd06fce0f678d94d"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_i_m___group3.html#ga6bd39ca543305ff0cd06fce0f678d94d">TIM_GetCapture1</a> (<a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *TIMx)</td></tr>
<tr class="memdesc:ga6bd39ca543305ff0cd06fce0f678d94d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the TIMx Input Capture 1 value. <a href="#ga6bd39ca543305ff0cd06fce0f678d94d">More...</a><br /></td></tr>
<tr class="separator:ga6bd39ca543305ff0cd06fce0f678d94d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2524cb5db14e388fb7f20c99fb3d58a5"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_i_m___group3.html#ga2524cb5db14e388fb7f20c99fb3d58a5">TIM_GetCapture2</a> (<a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *TIMx)</td></tr>
<tr class="memdesc:ga2524cb5db14e388fb7f20c99fb3d58a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the TIMx Input Capture 2 value. <a href="#ga2524cb5db14e388fb7f20c99fb3d58a5">More...</a><br /></td></tr>
<tr class="separator:ga2524cb5db14e388fb7f20c99fb3d58a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga71ee9ce2c535ec0fb3fac5f9119221f7"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_i_m___group3.html#ga71ee9ce2c535ec0fb3fac5f9119221f7">TIM_GetCapture3</a> (<a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *TIMx)</td></tr>
<tr class="memdesc:ga71ee9ce2c535ec0fb3fac5f9119221f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the TIMx Input Capture 3 value. <a href="#ga71ee9ce2c535ec0fb3fac5f9119221f7">More...</a><br /></td></tr>
<tr class="separator:ga71ee9ce2c535ec0fb3fac5f9119221f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga420b022cbc71ac603b5dd4922687abb1"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_i_m___group3.html#ga420b022cbc71ac603b5dd4922687abb1">TIM_GetCapture4</a> (<a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *TIMx)</td></tr>
<tr class="memdesc:ga420b022cbc71ac603b5dd4922687abb1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the TIMx Input Capture 4 value. <a href="#ga420b022cbc71ac603b5dd4922687abb1">More...</a><br /></td></tr>
<tr class="separator:ga420b022cbc71ac603b5dd4922687abb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf0f684dea88e222de9689d8ed0ca8805"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_i_m___group3.html#gaf0f684dea88e222de9689d8ed0ca8805">TIM_SetIC1Prescaler</a> (<a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *TIMx, uint16_t TIM_ICPSC)</td></tr>
<tr class="memdesc:gaf0f684dea88e222de9689d8ed0ca8805"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the TIMx Input Capture 1 prescaler. <a href="#gaf0f684dea88e222de9689d8ed0ca8805">More...</a><br /></td></tr>
<tr class="separator:gaf0f684dea88e222de9689d8ed0ca8805"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3cc4869b5fe73271808512c89322a325"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_i_m___group3.html#ga3cc4869b5fe73271808512c89322a325">TIM_SetIC2Prescaler</a> (<a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *TIMx, uint16_t TIM_ICPSC)</td></tr>
<tr class="memdesc:ga3cc4869b5fe73271808512c89322a325"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the TIMx Input Capture 2 prescaler. <a href="#ga3cc4869b5fe73271808512c89322a325">More...</a><br /></td></tr>
<tr class="separator:ga3cc4869b5fe73271808512c89322a325"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga76f906383b8132ebe00dffadb70cf7f9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_i_m___group3.html#ga76f906383b8132ebe00dffadb70cf7f9">TIM_SetIC3Prescaler</a> (<a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *TIMx, uint16_t TIM_ICPSC)</td></tr>
<tr class="memdesc:ga76f906383b8132ebe00dffadb70cf7f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the TIMx Input Capture 3 prescaler. <a href="#ga76f906383b8132ebe00dffadb70cf7f9">More...</a><br /></td></tr>
<tr class="separator:ga76f906383b8132ebe00dffadb70cf7f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0f2c784271356d6b64b8c0da64dbdbc2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___t_i_m___group3.html#ga0f2c784271356d6b64b8c0da64dbdbc2">TIM_SetIC4Prescaler</a> (<a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *TIMx, uint16_t TIM_ICPSC)</td></tr>
<tr class="memdesc:ga0f2c784271356d6b64b8c0da64dbdbc2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the TIMx Input Capture 4 prescaler. <a href="#ga0f2c784271356d6b64b8c0da64dbdbc2">More...</a><br /></td></tr>
<tr class="separator:ga0f2c784271356d6b64b8c0da64dbdbc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Input Capture management functions. </p>
<pre class="fragment"> ===============================================================================
##### Input Capture management functions #####
===============================================================================
##### TIM Driver: how to use it in Input Capture Mode #####
===============================================================================
[..]
To use the Timer in Input Capture mode, the following steps are mandatory:
(#) Enable TIM clock using RCC_APBxPeriphClockCmd(RCC_APBxPeriph_TIMx, ENABLE)
function
(#) Configure the TIM pins by configuring the corresponding GPIO pins
(#) Configure the Time base unit as described in the first part of this driver,
if needed, else the Timer will run with the default configuration:
(++) Autoreload value = 0xFFFF
(++) Prescaler value = 0x0000
(++) Counter mode = Up counting
(++) Clock Division = TIM_CKD_DIV1
(#) Fill the TIM_ICInitStruct with the desired parameters including:
(++) TIM Channel: TIM_Channel
(++) TIM Input Capture polarity: TIM_ICPolarity
(++) TIM Input Capture selection: TIM_ICSelection
(++) TIM Input Capture Prescaler: TIM_ICPrescaler
(++) TIM Input CApture filter value: TIM_ICFilter
(#) Call TIM_ICInit(TIMx, &amp;TIM_ICInitStruct) to configure the desired channel
with the corresponding configuration and to measure only frequency
or duty cycle of the input signal, or, Call TIM_PWMIConfig(TIMx, &amp;TIM_ICInitStruct)
to configure the desired channels with the corresponding configuration
and to measure the frequency and the duty cycle of the input signal
(#) Enable the NVIC or the DMA to read the measured frequency.
(#) Enable the corresponding interrupt (or DMA request) to read the Captured
value, using the function TIM_ITConfig(TIMx, TIM_IT_CCx)
(or TIM_DMA_Cmd(TIMx, TIM_DMA_CCx))
(#) Call the TIM_Cmd(ENABLE) function to enable the TIM counter.
(#) Use TIM_GetCapturex(TIMx); to read the captured value.
-@- All other functions can be used separately to modify, if needed,
a specific feature of the Timer. </pre> <h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga6bd39ca543305ff0cd06fce0f678d94d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t TIM_GetCapture1 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *&#160;</td>
<td class="paramname"><em>TIMx</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the TIMx Input Capture 1 value. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">TIMx</td><td>where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">Capture</td><td>Compare 1 Register value. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga2524cb5db14e388fb7f20c99fb3d58a5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t TIM_GetCapture2 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *&#160;</td>
<td class="paramname"><em>TIMx</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the TIMx Input Capture 2 value. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">TIMx</td><td>where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral. </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">Capture</td><td>Compare 2 Register value. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga71ee9ce2c535ec0fb3fac5f9119221f7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t TIM_GetCapture3 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *&#160;</td>
<td class="paramname"><em>TIMx</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the TIMx Input Capture 3 value. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">TIMx</td><td>where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">Capture</td><td>Compare 3 Register value. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga420b022cbc71ac603b5dd4922687abb1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t TIM_GetCapture4 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *&#160;</td>
<td class="paramname"><em>TIMx</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the TIMx Input Capture 4 value. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">TIMx</td><td>where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">Capture</td><td>Compare 4 Register value. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ga9e6a153dd6552e4e1188eba227316f7f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TIM_ICInit </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *&#160;</td>
<td class="paramname"><em>TIMx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_t_i_m___i_c_init_type_def.html">TIM_ICInitTypeDef</a> *&#160;</td>
<td class="paramname"><em>TIM_ICInitStruct</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Initializes the TIM peripheral according to the specified parameters in the TIM_ICInitStruct. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">TIMx</td><td>where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. </td></tr>
<tr><td class="paramname">TIM_ICInitStruct</td><td>pointer to a <a class="el" href="struct_t_i_m___i_c_init_type_def.html" title="TIM Input Capture Init structure definition. ">TIM_ICInitTypeDef</a> structure that contains the configuration information for the specified TIM peripheral. </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">None</td><td></td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group___t_i_m___group3_ga9e6a153dd6552e4e1188eba227316f7f_cgraph.png" border="0" usemap="#group___t_i_m___group3_ga9e6a153dd6552e4e1188eba227316f7f_cgraph" alt=""/></div>
<map name="group___t_i_m___group3_ga9e6a153dd6552e4e1188eba227316f7f_cgraph" id="group___t_i_m___group3_ga9e6a153dd6552e4e1188eba227316f7f_cgraph">
<area shape="rect" id="node2" href="group___t_i_m___group3.html#gaf0f684dea88e222de9689d8ed0ca8805" title="Sets the TIMx Input Capture 1 prescaler. " alt="" coords="132,5,276,32"/><area shape="rect" id="node3" href="group___t_i_m___group3.html#ga3cc4869b5fe73271808512c89322a325" title="Sets the TIMx Input Capture 2 prescaler. " alt="" coords="132,56,276,83"/><area shape="rect" id="node4" href="group___t_i_m___group3.html#ga76f906383b8132ebe00dffadb70cf7f9" title="Sets the TIMx Input Capture 3 prescaler. " alt="" coords="132,107,276,133"/><area shape="rect" id="node5" href="group___t_i_m___group3.html#ga0f2c784271356d6b64b8c0da64dbdbc2" title="Sets the TIMx Input Capture 4 prescaler. " alt="" coords="132,157,276,184"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="ga5005dac8e4e8a4c7fc2a0ef05b77cc50"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TIM_ICStructInit </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_t_i_m___i_c_init_type_def.html">TIM_ICInitTypeDef</a> *&#160;</td>
<td class="paramname"><em>TIM_ICInitStruct</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Fills each TIM_ICInitStruct member with its default value. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">TIM_ICInitStruct</td><td>pointer to a <a class="el" href="struct_t_i_m___i_c_init_type_def.html" title="TIM Input Capture Init structure definition. ">TIM_ICInitTypeDef</a> structure which will be initialized. </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">None</td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="gaa71f9296556310f85628d6c748a06475"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TIM_PWMIConfig </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *&#160;</td>
<td class="paramname"><em>TIMx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_t_i_m___i_c_init_type_def.html">TIM_ICInitTypeDef</a> *&#160;</td>
<td class="paramname"><em>TIM_ICInitStruct</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Configures the TIM peripheral according to the specified parameters in the TIM_ICInitStruct to measure an external PWM signal. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">TIMx</td><td>where x can be 1, 2, 3, 4, 5,8, 9 or 12 to select the TIM peripheral. </td></tr>
<tr><td class="paramname">TIM_ICInitStruct</td><td>pointer to a <a class="el" href="struct_t_i_m___i_c_init_type_def.html" title="TIM Input Capture Init structure definition. ">TIM_ICInitTypeDef</a> structure that contains the configuration information for the specified TIM peripheral. </td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">None</td><td></td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group___t_i_m___group3_gaa71f9296556310f85628d6c748a06475_cgraph.png" border="0" usemap="#group___t_i_m___group3_gaa71f9296556310f85628d6c748a06475_cgraph" alt=""/></div>
<map name="group___t_i_m___group3_gaa71f9296556310f85628d6c748a06475_cgraph" id="group___t_i_m___group3_gaa71f9296556310f85628d6c748a06475_cgraph">
<area shape="rect" id="node2" href="group___t_i_m___group3.html#gaf0f684dea88e222de9689d8ed0ca8805" title="Sets the TIMx Input Capture 1 prescaler. " alt="" coords="176,5,320,32"/><area shape="rect" id="node3" href="group___t_i_m___group3.html#ga3cc4869b5fe73271808512c89322a325" title="Sets the TIMx Input Capture 2 prescaler. " alt="" coords="176,56,320,83"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="gaf0f684dea88e222de9689d8ed0ca8805"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TIM_SetIC1Prescaler </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *&#160;</td>
<td class="paramname"><em>TIMx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>TIM_ICPSC</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the TIMx Input Capture 1 prescaler. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">TIMx</td><td>where x can be 1 to 14 except 6 and 7, to select the TIM peripheral. </td></tr>
<tr><td class="paramname">TIM_ICPSC</td><td>specifies the Input Capture1 prescaler new value. This parameter can be one of the following values: <ul>
<li>TIM_ICPSC_DIV1: no prescaler </li>
<li>TIM_ICPSC_DIV2: capture is done once every 2 events </li>
<li>TIM_ICPSC_DIV4: capture is done once every 4 events </li>
<li>TIM_ICPSC_DIV8: capture is done once every 8 events </li>
</ul>
</td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">None</td><td></td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group___t_i_m___group3_gaf0f684dea88e222de9689d8ed0ca8805_icgraph.png" border="0" usemap="#group___t_i_m___group3_gaf0f684dea88e222de9689d8ed0ca8805_icgraph" alt=""/></div>
<map name="group___t_i_m___group3_gaf0f684dea88e222de9689d8ed0ca8805_icgraph" id="group___t_i_m___group3_gaf0f684dea88e222de9689d8ed0ca8805_icgraph">
<area shape="rect" id="node2" href="group___t_i_m___group3.html#ga9e6a153dd6552e4e1188eba227316f7f" title="Initializes the TIM peripheral according to the specified parameters in the TIM_ICInitStruct. " alt="" coords="219,5,298,32"/><area shape="rect" id="node3" href="group___t_i_m___group3.html#gaa71f9296556310f85628d6c748a06475" title="Configures the TIM peripheral according to the specified parameters in the TIM_ICInitStruct to measur..." alt="" coords="197,56,320,83"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="ga3cc4869b5fe73271808512c89322a325"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TIM_SetIC2Prescaler </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *&#160;</td>
<td class="paramname"><em>TIMx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>TIM_ICPSC</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the TIMx Input Capture 2 prescaler. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">TIMx</td><td>where x can be 1, 2, 3, 4, 5, 8, 9 or 12 to select the TIM peripheral. </td></tr>
<tr><td class="paramname">TIM_ICPSC</td><td>specifies the Input Capture2 prescaler new value. This parameter can be one of the following values: <ul>
<li>TIM_ICPSC_DIV1: no prescaler </li>
<li>TIM_ICPSC_DIV2: capture is done once every 2 events </li>
<li>TIM_ICPSC_DIV4: capture is done once every 4 events </li>
<li>TIM_ICPSC_DIV8: capture is done once every 8 events </li>
</ul>
</td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">None</td><td></td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group___t_i_m___group3_ga3cc4869b5fe73271808512c89322a325_icgraph.png" border="0" usemap="#group___t_i_m___group3_ga3cc4869b5fe73271808512c89322a325_icgraph" alt=""/></div>
<map name="group___t_i_m___group3_ga3cc4869b5fe73271808512c89322a325_icgraph" id="group___t_i_m___group3_ga3cc4869b5fe73271808512c89322a325_icgraph">
<area shape="rect" id="node2" href="group___t_i_m___group3.html#ga9e6a153dd6552e4e1188eba227316f7f" title="Initializes the TIM peripheral according to the specified parameters in the TIM_ICInitStruct. " alt="" coords="219,5,298,32"/><area shape="rect" id="node3" href="group___t_i_m___group3.html#gaa71f9296556310f85628d6c748a06475" title="Configures the TIM peripheral according to the specified parameters in the TIM_ICInitStruct to measur..." alt="" coords="197,56,320,83"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="ga76f906383b8132ebe00dffadb70cf7f9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TIM_SetIC3Prescaler </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *&#160;</td>
<td class="paramname"><em>TIMx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>TIM_ICPSC</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the TIMx Input Capture 3 prescaler. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">TIMx</td><td>where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. </td></tr>
<tr><td class="paramname">TIM_ICPSC</td><td>specifies the Input Capture3 prescaler new value. This parameter can be one of the following values: <ul>
<li>TIM_ICPSC_DIV1: no prescaler </li>
<li>TIM_ICPSC_DIV2: capture is done once every 2 events </li>
<li>TIM_ICPSC_DIV4: capture is done once every 4 events </li>
<li>TIM_ICPSC_DIV8: capture is done once every 8 events </li>
</ul>
</td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">None</td><td></td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group___t_i_m___group3_ga76f906383b8132ebe00dffadb70cf7f9_icgraph.png" border="0" usemap="#group___t_i_m___group3_ga76f906383b8132ebe00dffadb70cf7f9_icgraph" alt=""/></div>
<map name="group___t_i_m___group3_ga76f906383b8132ebe00dffadb70cf7f9_icgraph" id="group___t_i_m___group3_ga76f906383b8132ebe00dffadb70cf7f9_icgraph">
<area shape="rect" id="node2" href="group___t_i_m___group3.html#ga9e6a153dd6552e4e1188eba227316f7f" title="Initializes the TIM peripheral according to the specified parameters in the TIM_ICInitStruct. " alt="" coords="197,5,276,32"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="ga0f2c784271356d6b64b8c0da64dbdbc2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TIM_SetIC4Prescaler </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_t_i_m___type_def.html">TIM_TypeDef</a> *&#160;</td>
<td class="paramname"><em>TIMx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint16_t&#160;</td>
<td class="paramname"><em>TIM_ICPSC</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the TIMx Input Capture 4 prescaler. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">TIMx</td><td>where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral. </td></tr>
<tr><td class="paramname">TIM_ICPSC</td><td>specifies the Input Capture4 prescaler new value. This parameter can be one of the following values: <ul>
<li>TIM_ICPSC_DIV1: no prescaler </li>
<li>TIM_ICPSC_DIV2: capture is done once every 2 events </li>
<li>TIM_ICPSC_DIV4: capture is done once every 4 events </li>
<li>TIM_ICPSC_DIV8: capture is done once every 8 events </li>
</ul>
</td></tr>
</table>
</dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
<table class="retval">
<tr><td class="paramname">None</td><td></td></tr>
</table>
</dd>
</dl>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group___t_i_m___group3_ga0f2c784271356d6b64b8c0da64dbdbc2_icgraph.png" border="0" usemap="#group___t_i_m___group3_ga0f2c784271356d6b64b8c0da64dbdbc2_icgraph" alt=""/></div>
<map name="group___t_i_m___group3_ga0f2c784271356d6b64b8c0da64dbdbc2_icgraph" id="group___t_i_m___group3_ga0f2c784271356d6b64b8c0da64dbdbc2_icgraph">
<area shape="rect" id="node2" href="group___t_i_m___group3.html#ga9e6a153dd6552e4e1188eba227316f7f" title="Initializes the TIM peripheral according to the specified parameters in the TIM_ICInitStruct. " alt="" coords="197,5,276,32"/></map>
</div>
</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun May 10 2015 15:15:20 for discoverpixy by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>