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

227 lines
25 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: discovery/libs/StmCoreNPheriph/src/stm32f4xx_dcmi.c File Reference</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 class="current"><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 id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<!-- 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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_84db96586f7d962b526d6d9627d831c2.html">discovery</a></li><li class="navelem"><a class="el" href="dir_07523c13f04fd35d8848cb17a371cb5b.html">libs</a></li><li class="navelem"><a class="el" href="dir_1d60ba7d807ff336a2be2f2de640bf2b.html">StmCoreNPheriph</a></li><li class="navelem"><a class="el" href="dir_12f7a99b9d2a0e5955a2ac990af20021.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">stm32f4xx_dcmi.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>This file provides firmware functions to manage the following functionalities of the DCMI peripheral:
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="stm32f4xx__dcmi_8h_source.html">stm32f4xx_dcmi.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="stm32f4xx__rcc_8h_source.html">stm32f4xx_rcc.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for stm32f4xx_dcmi.c:</div>
<div class="dyncontent">
<div class="center"><img src="stm32f4xx__dcmi_8c__incl.png" border="0" usemap="#discovery_2libs_2_stm_core_n_pheriph_2src_2stm32f4xx__dcmi_8c" alt=""/></div>
<map name="discovery_2libs_2_stm_core_n_pheriph_2src_2stm32f4xx__dcmi_8c" id="discovery_2libs_2_stm_core_n_pheriph_2src_2stm32f4xx__dcmi_8c">
<area shape="rect" id="node2" href="stm32f4xx__dcmi_8h.html" title="This file contains all the functions prototypes for the DCMI firmware library. " alt="" coords="2285,95,2413,121"/><area shape="rect" id="node21" href="stm32f4xx__rcc_8h.html" title="This file contains all the functions prototypes for the RCC firmware library. " alt="" coords="4019,319,4137,345"/><area shape="rect" id="node3" href="stm32f4xx_8h.html" title="CMSIS Cortex&#45;M4 Device Peripheral Access Layer Header File. This file contains all the peripheral reg..." alt="" coords="2177,169,2270,196"/><area shape="rect" id="node4" href="core__cm4_8h.html" title="CMSIS Cortex&#45;M4 Core Peripheral Access Layer Header File. " alt="" coords="350,244,441,271"/><area shape="rect" id="node9" href="system__stm32f4xx_8h.html" title="CMSIS Cortex&#45;M4 Device System Source File for STM32F4xx devices. " alt="" coords="183,244,325,271"/><area shape="rect" id="node10" href="stm32f4xx__conf_8h_source.html" title="stm32f4xx_conf.h" alt="" coords="2287,244,2411,271"/><area shape="rect" id="node6" href="core__cm_instr_8h.html" title="CMSIS Cortex&#45;M Core Instruction Access Header File. " alt="" coords="245,319,351,345"/><area shape="rect" id="node7" href="core__cm_func_8h.html" title="CMSIS Cortex&#45;M Core Function Access Header File. " alt="" coords="375,319,487,345"/><area shape="rect" id="node8" href="core__cm4__simd_8h.html" title="CMSIS Cortex&#45;M4 SIMD Header File. " alt="" coords="95,319,221,345"/><area shape="rect" id="node11" href="stm32f4xx__adc_8h.html" title="This file contains all the functions prototypes for the ADC firmware library. " alt="" coords="512,319,633,345"/><area shape="rect" id="node12" href="stm32f4xx__crc_8h.html" title="This file contains all the functions prototypes for the CRC firmware library. " alt="" coords="657,319,776,345"/><area shape="rect" id="node13" href="stm32f4xx__dbgmcu_8h.html" title="This file contains all the functions prototypes for the DBGMCU firmware library. " alt="" coords="801,319,947,345"/><area shape="rect" id="node14" href="stm32f4xx__dma_8h.html" title="This file contains all the functions prototypes for the DMA firmware library. " alt="" coords="971,319,1097,345"/><area shape="rect" id="node15" href="stm32f4xx__exti_8h.html" title="This file contains all the functions prototypes for the EXTI firmware library. " alt="" coords="1121,319,1243,345"/><area shape="rect" id="node16" href="stm32f4xx__flash_8h.html" title="This file contains all the functions prototypes for the FLASH firmware library. " alt="" coords="1267,319,1393,345"/><area shape="rect" id="node17" href="stm32f4xx__gpio_8h.html" title="This file contains all the functions prototypes for the GPIO firmware library. " alt="" coords="1417,319,1541,345"/><area shape="rect" id="node18" href="stm32f4xx__i2c_8h.html" title="This file contains all the functions prototypes for the I2C firmware library. " alt="" coords="1565,319,1682,345"/><area shape="rect" id="node19" href="stm32f4xx__iwdg_8h.html" title="This file contains all the functions prototypes for the IWDG firmware library. " alt="" coords="1707,319,1833,345"/><area shape="rect" id="node20" href="stm32f4xx__pwr_8h.html" title="This file contains all the functions prototypes for the PWR firmware library. " alt="" coords="1857,319,1976,345"/><area shape="rect" id="node22" href="stm32f4xx__rtc_8h.html" title="This file contains all the functions prototypes for the RTC firmware library. " alt="" coords="2001,319,2115,345"/><area shape="rect" id="node23" href="stm32f4xx__sdio_8h.html" title="This file contains all the functions prototypes for the SDIO firmware library. " alt="" coords="2140,319,2264,345"/><area shape="rect" id="node24" href="stm32f4xx__spi_8h.html" title="This file contains all the functions prototypes for the SPI firmware library. " alt="" coords="2287,319,2405,345"/><area shape="rect" id="node25" href="stm32f4xx__syscfg_8h.html" title="This file contains all the functions prototypes for the SYSCFG firmware library. " alt="" coords="2429,319,2567,345"/><area shape="rect" id="node26" href="stm32f4xx__tim_8h.html" title="This file contains all the functions prototypes for the TIM firmware library. " alt="" coords="2592,319,2711,345"/><area shape="rect" id="node27" href="stm32f4xx__usart_8h.html" title="This file contains all the functions prototypes for the USART firmware library. " alt="" coords="2735,319,2864,345"/><area shape="rect" id="node28" href="stm32f4xx__wwdg_8h.html" title="This file contains all the functions prototypes for the WWDG firmware library. " alt="" coords="2888,319,3020,345"/><area shape="rect" id="node29" href="misc_8h.html" title="This file contains all the functions prototypes for the miscellaneous firmware library functions (add..." alt="" coords="3045,319,3106,345"/><area shape="rect" id="node30" href="stm32f4xx__cryp_8h.html" title="This file contains all the functions prototypes for the Cryptographic processor(CRYP) firmware librar..." alt="" coords="3130,319,3255,345"/><area shape="rect" id="node31" href="stm32f4xx__hash_8h.html" title="This file contains all the functions prototypes for the HASH firmware library. " alt="" coords="3279,319,3407,345"/><area shape="rect" id="node32" href="stm32f4xx__rng_8h.html" title="This file contains all the functions prototypes for the Random Number Generator(RNG) firmware library..." alt="" coords="3432,319,3551,345"/><area shape="rect" id="node33" href="stm32f4xx__can_8h.html" title="This file contains all the functions prototypes for the CAN firmware library. " alt="" coords="3575,319,3696,345"/><area shape="rect" id="node34" href="stm32f4xx__dac_8h.html" title="This file contains all the functions prototypes for the DAC firmware library. " alt="" coords="3720,319,3841,345"/><area shape="rect" id="node35" href="stm32f4xx__fsmc_8h.html" title="This file contains all the functions prototypes for the FSMC firmware library. " alt="" coords="3866,319,3994,345"/></map>
</div>
</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:gab8f501f117d5695017e1dc5a611a5015"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_c_m_i___group1.html#gab8f501f117d5695017e1dc5a611a5015">DCMI_DeInit</a> (void)</td></tr>
<tr class="memdesc:gab8f501f117d5695017e1dc5a611a5015"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deinitializes the DCMI registers to their default reset values. <a href="group___d_c_m_i___group1.html#gab8f501f117d5695017e1dc5a611a5015">More...</a><br /></td></tr>
<tr class="separator:gab8f501f117d5695017e1dc5a611a5015"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1299076f1459525053ba4f2fa408ed2a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_c_m_i___group1.html#ga1299076f1459525053ba4f2fa408ed2a">DCMI_Init</a> (<a class="el" href="struct_d_c_m_i___init_type_def.html">DCMI_InitTypeDef</a> *DCMI_InitStruct)</td></tr>
<tr class="memdesc:ga1299076f1459525053ba4f2fa408ed2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the DCMI according to the specified parameters in the DCMI_InitStruct. <a href="group___d_c_m_i___group1.html#ga1299076f1459525053ba4f2fa408ed2a">More...</a><br /></td></tr>
<tr class="separator:ga1299076f1459525053ba4f2fa408ed2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga268eb4266fe7f294ee748e86f7b8add2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_c_m_i___group1.html#ga268eb4266fe7f294ee748e86f7b8add2">DCMI_StructInit</a> (<a class="el" href="struct_d_c_m_i___init_type_def.html">DCMI_InitTypeDef</a> *DCMI_InitStruct)</td></tr>
<tr class="memdesc:ga268eb4266fe7f294ee748e86f7b8add2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills each DCMI_InitStruct member with its default value. <a href="group___d_c_m_i___group1.html#ga268eb4266fe7f294ee748e86f7b8add2">More...</a><br /></td></tr>
<tr class="separator:ga268eb4266fe7f294ee748e86f7b8add2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3bd4eb06314ed06dcb71ee91391b7ec4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_c_m_i___group1.html#ga3bd4eb06314ed06dcb71ee91391b7ec4">DCMI_CROPConfig</a> (<a class="el" href="struct_d_c_m_i___c_r_o_p_init_type_def.html">DCMI_CROPInitTypeDef</a> *DCMI_CROPInitStruct)</td></tr>
<tr class="memdesc:ga3bd4eb06314ed06dcb71ee91391b7ec4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the DCMI peripheral CROP mode according to the specified parameters in the DCMI_CROPInitStruct. <a href="group___d_c_m_i___group1.html#ga3bd4eb06314ed06dcb71ee91391b7ec4">More...</a><br /></td></tr>
<tr class="separator:ga3bd4eb06314ed06dcb71ee91391b7ec4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7139eecdc0f7975b42cd2f9c5644d0a5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_c_m_i___group1.html#ga7139eecdc0f7975b42cd2f9c5644d0a5">DCMI_CROPCmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga7139eecdc0f7975b42cd2f9c5644d0a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the DCMI Crop feature. <a href="group___d_c_m_i___group1.html#ga7139eecdc0f7975b42cd2f9c5644d0a5">More...</a><br /></td></tr>
<tr class="separator:ga7139eecdc0f7975b42cd2f9c5644d0a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8888b27bd5aca62d250642468ea6cd6d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_c_m_i___group1.html#ga8888b27bd5aca62d250642468ea6cd6d">DCMI_SetEmbeddedSynchroCodes</a> (<a class="el" href="struct_d_c_m_i___codes_init_type_def.html">DCMI_CodesInitTypeDef</a> *DCMI_CodesInitStruct)</td></tr>
<tr class="memdesc:ga8888b27bd5aca62d250642468ea6cd6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the embedded synchronization codes. <a href="group___d_c_m_i___group1.html#ga8888b27bd5aca62d250642468ea6cd6d">More...</a><br /></td></tr>
<tr class="separator:ga8888b27bd5aca62d250642468ea6cd6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga30a38a4858273c05e8f1b4677d744c13"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_c_m_i___group1.html#ga30a38a4858273c05e8f1b4677d744c13">DCMI_JPEGCmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga30a38a4858273c05e8f1b4677d744c13"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the DCMI JPEG format. <a href="group___d_c_m_i___group1.html#ga30a38a4858273c05e8f1b4677d744c13">More...</a><br /></td></tr>
<tr class="separator:ga30a38a4858273c05e8f1b4677d744c13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga36bba54c40637b8071aea8ffea71fb84"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_c_m_i___group2.html#ga36bba54c40637b8071aea8ffea71fb84">DCMI_Cmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga36bba54c40637b8071aea8ffea71fb84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the DCMI interface. <a href="group___d_c_m_i___group2.html#ga36bba54c40637b8071aea8ffea71fb84">More...</a><br /></td></tr>
<tr class="separator:ga36bba54c40637b8071aea8ffea71fb84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad00fb33497ffa337a5b2b77fc6aa8d74"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_c_m_i___group2.html#gad00fb33497ffa337a5b2b77fc6aa8d74">DCMI_CaptureCmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:gad00fb33497ffa337a5b2b77fc6aa8d74"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the DCMI Capture. <a href="group___d_c_m_i___group2.html#gad00fb33497ffa337a5b2b77fc6aa8d74">More...</a><br /></td></tr>
<tr class="separator:gad00fb33497ffa337a5b2b77fc6aa8d74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga475305bd8694e4cebefcb263c0a5b979"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_c_m_i___group2.html#ga475305bd8694e4cebefcb263c0a5b979">DCMI_ReadData</a> (void)</td></tr>
<tr class="memdesc:ga475305bd8694e4cebefcb263c0a5b979"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the data stored in the DR register. <a href="group___d_c_m_i___group2.html#ga475305bd8694e4cebefcb263c0a5b979">More...</a><br /></td></tr>
<tr class="separator:ga475305bd8694e4cebefcb263c0a5b979"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3d89fb10384dff1dfd9197fbb6c6b2eb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_c_m_i___group3.html#ga3d89fb10384dff1dfd9197fbb6c6b2eb">DCMI_ITConfig</a> (uint16_t DCMI_IT, FunctionalState NewState)</td></tr>
<tr class="memdesc:ga3d89fb10384dff1dfd9197fbb6c6b2eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the DCMI interface interrupts. <a href="group___d_c_m_i___group3.html#ga3d89fb10384dff1dfd9197fbb6c6b2eb">More...</a><br /></td></tr>
<tr class="separator:ga3d89fb10384dff1dfd9197fbb6c6b2eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1b66e1966fbea902a8e7015c56db7587"><td class="memItemLeft" align="right" valign="top">FlagStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_c_m_i___group3.html#ga1b66e1966fbea902a8e7015c56db7587">DCMI_GetFlagStatus</a> (uint16_t DCMI_FLAG)</td></tr>
<tr class="memdesc:ga1b66e1966fbea902a8e7015c56db7587"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the DCMI interface flag is set or not. <a href="group___d_c_m_i___group3.html#ga1b66e1966fbea902a8e7015c56db7587">More...</a><br /></td></tr>
<tr class="separator:ga1b66e1966fbea902a8e7015c56db7587"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1c93caf3ccfecf07cec8e1e0f844ddaa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_c_m_i___group3.html#ga1c93caf3ccfecf07cec8e1e0f844ddaa">DCMI_ClearFlag</a> (uint16_t DCMI_FLAG)</td></tr>
<tr class="memdesc:ga1c93caf3ccfecf07cec8e1e0f844ddaa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the DCMI's pending flags. <a href="group___d_c_m_i___group3.html#ga1c93caf3ccfecf07cec8e1e0f844ddaa">More...</a><br /></td></tr>
<tr class="separator:ga1c93caf3ccfecf07cec8e1e0f844ddaa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac0b27821aab3ee6b73ae8a6c6339fed5"><td class="memItemLeft" align="right" valign="top">ITStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_c_m_i___group3.html#gac0b27821aab3ee6b73ae8a6c6339fed5">DCMI_GetITStatus</a> (uint16_t DCMI_IT)</td></tr>
<tr class="memdesc:gac0b27821aab3ee6b73ae8a6c6339fed5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the DCMI interrupt has occurred or not. <a href="group___d_c_m_i___group3.html#gac0b27821aab3ee6b73ae8a6c6339fed5">More...</a><br /></td></tr>
<tr class="separator:gac0b27821aab3ee6b73ae8a6c6339fed5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga908e6dad7bc5f4f4bbc512f679222c55"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___d_c_m_i___group3.html#ga908e6dad7bc5f4f4bbc512f679222c55">DCMI_ClearITPendingBit</a> (uint16_t DCMI_IT)</td></tr>
<tr class="memdesc:ga908e6dad7bc5f4f4bbc512f679222c55"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the DCMI's interrupt pending bits. <a href="group___d_c_m_i___group3.html#ga908e6dad7bc5f4f4bbc512f679222c55">More...</a><br /></td></tr>
<tr class="separator:ga908e6dad7bc5f4f4bbc512f679222c55"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This file provides firmware functions to manage the following functionalities of the DCMI peripheral: </p>
<dl class="section author"><dt>Author</dt><dd>MCD Application Team </dd></dl>
<dl class="section version"><dt>Version</dt><dd>V1.4.0 </dd></dl>
<dl class="section date"><dt>Date</dt><dd>04-August-2014<ul>
<li>Initialization and Configuration</li>
<li>Image capture functions</li>
<li>Interrupts and flags management</li>
</ul>
</dd></dl>
<pre class="fragment">===============================================================================
##### How to use this driver #####
===============================================================================
[..]
The sequence below describes how to use this driver to capture image
from a camera module connected to the DCMI Interface.
This sequence does not take into account the configuration of the
camera module, which should be made before to configure and enable
the DCMI to capture images.
(#) Enable the clock for the DCMI and associated GPIOs using the following
functions:
RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_DCMI, ENABLE);
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOx, ENABLE);
(#) DCMI pins configuration
(++) Connect the involved DCMI pins to AF13 using the following function
GPIO_PinAFConfig(GPIOx, GPIO_PinSourcex, GPIO_AF_DCMI);
(++) Configure these DCMI pins in alternate function mode by calling
the function GPIO_Init();
(#) Declare a DCMI_InitTypeDef structure, for example:
DCMI_InitTypeDef DCMI_InitStructure;
and fill the DCMI_InitStructure variable with the allowed values
of the structure member.
(#) Initialize the DCMI interface by calling the function
DCMI_Init(&amp;DCMI_InitStructure);
(#) Configure the DMA2_Stream1 channel1 to transfer Data from DCMI DR
register to the destination memory buffer.
(#) Enable DCMI interface using the function
DCMI_Cmd(ENABLE);
(#) Start the image capture using the function
DCMI_CaptureCmd(ENABLE);
(#) At this stage the DCMI interface waits for the first start of frame,
then a DMA request is generated continuously/once (depending on the
mode used, Continuous/Snapshot) to transfer the received data into
the destination memory.
-@- If you need to capture only a rectangular window from the received
image, you have to use the DCMI_CROPConfig() function to configure
the coordinates and size of the window to be captured, then enable
the Crop feature using DCMI_CROPCmd(ENABLE);
In this case, the Crop configuration should be made before to enable
and start the DCMI interface. </pre><dl class="section attention"><dt>Attention</dt><dd></dd></dl>
<h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
<p>Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at: </p><pre class="fragment"> http://www.st.com/software_license_agreement_liberty_v2
</pre><p>Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun May 10 2015 15:15:18 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>