582 lines
68 KiB
HTML
582 lines
68 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_rtc.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 Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related 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 List</span></a></li>
|
|
<li><a href="globals.html"><span>File 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="#define-members">Macros</a> |
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">stm32f4xx_rtc.c File Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>This file provides firmware functions to manage the following functionalities of the Real-Time Clock (RTC) peripheral:
|
|
<a href="#details">More...</a></p>
|
|
<div class="textblock"><code>#include "<a class="el" href="stm32f4xx__rtc_8h_source.html">stm32f4xx_rtc.h</a>"</code><br />
|
|
</div><div class="textblock"><div class="dynheader">
|
|
Include dependency graph for stm32f4xx_rtc.c:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="stm32f4xx__rtc_8c__incl.png" border="0" usemap="#discovery_2libs_2_stm_core_n_pheriph_2src_2stm32f4xx__rtc_8c" alt=""/></div>
|
|
<map name="discovery_2libs_2_stm_core_n_pheriph_2src_2stm32f4xx__rtc_8c" id="discovery_2libs_2_stm_core_n_pheriph_2src_2stm32f4xx__rtc_8c">
|
|
<area shape="rect" id="node2" href="stm32f4xx__rtc_8h.html" title="This file contains all the functions prototypes for the RTC firmware library. " alt="" coords="2215,95,2329,121"/><area shape="rect" id="node3" href="stm32f4xx_8h.html" title="CMSIS Cortex-M4 Device Peripheral Access Layer Header File. This file contains all the peripheral reg..." alt="" coords="2167,169,2260,196"/><area shape="rect" id="node4" href="core__cm4_8h.html" title="CMSIS Cortex-M4 Core Peripheral Access Layer Header File. " alt="" coords="349,244,440,271"/><area shape="rect" id="node9" href="system__stm32f4xx_8h.html" title="CMSIS Cortex-M4 Device System Source File for STM32F4xx devices. " alt="" coords="182,244,325,271"/><area shape="rect" id="node10" href="stm32f4xx__conf_8h_source.html" title="stm32f4xx_conf.h" alt="" coords="2286,244,2410,271"/><area shape="rect" id="node6" href="core__cm_instr_8h.html" title="CMSIS Cortex-M Core Instruction Access Header File. " alt="" coords="5,319,112,345"/><area shape="rect" id="node7" href="core__cm_func_8h.html" title="CMSIS Cortex-M Core Function Access Header File. " alt="" coords="136,319,248,345"/><area shape="rect" id="node8" href="core__cm4__simd_8h.html" title="CMSIS Cortex-M4 SIMD Header File. " alt="" coords="272,319,397,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="511,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,775,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="800,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,1096,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,1242,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="1266,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="1564,319,1681,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="1706,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,1975,345"/><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="1999,319,2118,345"/><area shape="rect" id="node22" href="stm32f4xx__sdio_8h.html" title="This file contains all the functions prototypes for the SDIO firmware library. " alt="" coords="2142,319,2266,345"/><area shape="rect" id="node23" href="stm32f4xx__spi_8h.html" title="This file contains all the functions prototypes for the SPI firmware library. " alt="" coords="2289,319,2407,345"/><area shape="rect" id="node24" href="stm32f4xx__syscfg_8h.html" title="This file contains all the functions prototypes for the SYSCFG firmware library. " alt="" coords="2431,319,2569,345"/><area shape="rect" id="node25" href="stm32f4xx__tim_8h.html" title="This file contains all the functions prototypes for the TIM firmware library. " alt="" coords="2594,319,2713,345"/><area shape="rect" id="node26" href="stm32f4xx__usart_8h.html" title="This file contains all the functions prototypes for the USART firmware library. " alt="" coords="2737,319,2866,345"/><area shape="rect" id="node27" href="stm32f4xx__wwdg_8h.html" title="This file contains all the functions prototypes for the WWDG firmware library. " alt="" coords="2890,319,3022,345"/><area shape="rect" id="node28" href="misc_8h.html" title="This file contains all the functions prototypes for the miscellaneous firmware library functions (add..." alt="" coords="3047,319,3108,345"/><area shape="rect" id="node29" href="stm32f4xx__cryp_8h.html" title="This file contains all the functions prototypes for the Cryptographic processor(CRYP) firmware librar..." alt="" coords="3132,319,3257,345"/><area shape="rect" id="node30" href="stm32f4xx__hash_8h.html" title="This file contains all the functions prototypes for the HASH firmware library. " alt="" coords="3281,319,3409,345"/><area shape="rect" id="node31" href="stm32f4xx__rng_8h.html" title="This file contains all the functions prototypes for the Random Number Generator(RNG) firmware library..." alt="" coords="3434,319,3553,345"/><area shape="rect" id="node32" href="stm32f4xx__can_8h.html" title="This file contains all the functions prototypes for the CAN firmware library. " alt="" coords="3577,319,3698,345"/><area shape="rect" id="node33" href="stm32f4xx__dac_8h.html" title="This file contains all the functions prototypes for the DAC firmware library. " alt="" coords="3722,319,3843,345"/><area shape="rect" id="node34" href="stm32f4xx__dcmi_8h.html" title="This file contains all the functions prototypes for the DCMI firmware library. " alt="" coords="3868,319,3996,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="4020,319,4148,345"/></map>
|
|
</div>
|
|
</div><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
|
|
Macros</h2></td></tr>
|
|
<tr class="memitem:gacc08d7d212e235f4b04bb88f5567fa54"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gacc08d7d212e235f4b04bb88f5567fa54"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>RTC_TR_RESERVED_MASK</b>   ((uint32_t)0x007F7F7F)</td></tr>
|
|
<tr class="separator:gacc08d7d212e235f4b04bb88f5567fa54"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga16855eaae542f992c93170492822d058"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga16855eaae542f992c93170492822d058"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>RTC_DR_RESERVED_MASK</b>   ((uint32_t)0x00FFFF3F)</td></tr>
|
|
<tr class="separator:ga16855eaae542f992c93170492822d058"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0dbaf639bc171f2055c9055d538f13df"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga0dbaf639bc171f2055c9055d538f13df"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>RTC_INIT_MASK</b>   ((uint32_t)0xFFFFFFFF)</td></tr>
|
|
<tr class="separator:ga0dbaf639bc171f2055c9055d538f13df"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga3a1033490aaf8304e1522d551bd1a7b9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga3a1033490aaf8304e1522d551bd1a7b9"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>RTC_RSF_MASK</b>   ((uint32_t)0xFFFFFF5F)</td></tr>
|
|
<tr class="separator:ga3a1033490aaf8304e1522d551bd1a7b9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0c7513e50528d7b5a52e88340a4e7b25"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><b>RTC_FLAGS_MASK</b></td></tr>
|
|
<tr class="separator:ga0c7513e50528d7b5a52e88340a4e7b25"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab89243e1f23e45fedc6357396b26827d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gab89243e1f23e45fedc6357396b26827d"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>INITMODE_TIMEOUT</b>   ((uint32_t) 0x00010000)</td></tr>
|
|
<tr class="separator:gab89243e1f23e45fedc6357396b26827d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga017f8fc40e791545ae1dfebf84567ed8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga017f8fc40e791545ae1dfebf84567ed8"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>SYNCHRO_TIMEOUT</b>   ((uint32_t) 0x00020000)</td></tr>
|
|
<tr class="separator:ga017f8fc40e791545ae1dfebf84567ed8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gae578d94ca54a697f9d26b20944f036bc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae578d94ca54a697f9d26b20944f036bc"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>RECALPF_TIMEOUT</b>   ((uint32_t) 0x00020000)</td></tr>
|
|
<tr class="separator:gae578d94ca54a697f9d26b20944f036bc"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga911218ae83f22129a4df0087d98db3cd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga911218ae83f22129a4df0087d98db3cd"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>SHPF_TIMEOUT</b>   ((uint32_t) 0x00001000)</td></tr>
|
|
<tr class="separator:ga911218ae83f22129a4df0087d98db3cd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:ga9777c6cc4a99c339ebc527a791b2ebe7"><td class="memItemLeft" align="right" valign="top">ErrorStatus </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group1.html#ga9777c6cc4a99c339ebc527a791b2ebe7">RTC_DeInit</a> (void)</td></tr>
|
|
<tr class="memdesc:ga9777c6cc4a99c339ebc527a791b2ebe7"><td class="mdescLeft"> </td><td class="mdescRight">Deinitializes the RTC registers to their default reset values. <a href="group___r_t_c___group1.html#ga9777c6cc4a99c339ebc527a791b2ebe7">More...</a><br /></td></tr>
|
|
<tr class="separator:ga9777c6cc4a99c339ebc527a791b2ebe7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga8eb747bf9698b2482ba6ef4d811de8e0"><td class="memItemLeft" align="right" valign="top">ErrorStatus </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group1.html#ga8eb747bf9698b2482ba6ef4d811de8e0">RTC_Init</a> (<a class="el" href="struct_r_t_c___init_type_def.html">RTC_InitTypeDef</a> *RTC_InitStruct)</td></tr>
|
|
<tr class="memdesc:ga8eb747bf9698b2482ba6ef4d811de8e0"><td class="mdescLeft"> </td><td class="mdescRight">Initializes the RTC registers according to the specified parameters in RTC_InitStruct. <a href="group___r_t_c___group1.html#ga8eb747bf9698b2482ba6ef4d811de8e0">More...</a><br /></td></tr>
|
|
<tr class="separator:ga8eb747bf9698b2482ba6ef4d811de8e0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab466f3348de3236976e9aec7d6025dff"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group1.html#gab466f3348de3236976e9aec7d6025dff">RTC_StructInit</a> (<a class="el" href="struct_r_t_c___init_type_def.html">RTC_InitTypeDef</a> *RTC_InitStruct)</td></tr>
|
|
<tr class="memdesc:gab466f3348de3236976e9aec7d6025dff"><td class="mdescLeft"> </td><td class="mdescRight">Fills each RTC_InitStruct member with its default value. <a href="group___r_t_c___group1.html#gab466f3348de3236976e9aec7d6025dff">More...</a><br /></td></tr>
|
|
<tr class="separator:gab466f3348de3236976e9aec7d6025dff"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga9d4bdfd3ae6957630d15d2497573b7c7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group1.html#ga9d4bdfd3ae6957630d15d2497573b7c7">RTC_WriteProtectionCmd</a> (FunctionalState NewState)</td></tr>
|
|
<tr class="memdesc:ga9d4bdfd3ae6957630d15d2497573b7c7"><td class="mdescLeft"> </td><td class="mdescRight">Enables or disables the RTC registers write protection. <a href="group___r_t_c___group1.html#ga9d4bdfd3ae6957630d15d2497573b7c7">More...</a><br /></td></tr>
|
|
<tr class="separator:ga9d4bdfd3ae6957630d15d2497573b7c7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga679f8883cbfb267a53ffb1ab4cc5c8c5"><td class="memItemLeft" align="right" valign="top">ErrorStatus </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group1.html#ga679f8883cbfb267a53ffb1ab4cc5c8c5">RTC_EnterInitMode</a> (void)</td></tr>
|
|
<tr class="memdesc:ga679f8883cbfb267a53ffb1ab4cc5c8c5"><td class="mdescLeft"> </td><td class="mdescRight">Enters the RTC Initialization mode. <a href="group___r_t_c___group1.html#ga679f8883cbfb267a53ffb1ab4cc5c8c5">More...</a><br /></td></tr>
|
|
<tr class="separator:ga679f8883cbfb267a53ffb1ab4cc5c8c5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga87f86f3b794205f09a1eac51738d900f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group1.html#ga87f86f3b794205f09a1eac51738d900f">RTC_ExitInitMode</a> (void)</td></tr>
|
|
<tr class="memdesc:ga87f86f3b794205f09a1eac51738d900f"><td class="mdescLeft"> </td><td class="mdescRight">Exits the RTC Initialization mode. <a href="group___r_t_c___group1.html#ga87f86f3b794205f09a1eac51738d900f">More...</a><br /></td></tr>
|
|
<tr class="separator:ga87f86f3b794205f09a1eac51738d900f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2938febeef6baf0d91cc066ca5caf095"><td class="memItemLeft" align="right" valign="top">ErrorStatus </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group1.html#ga2938febeef6baf0d91cc066ca5caf095">RTC_WaitForSynchro</a> (void)</td></tr>
|
|
<tr class="memdesc:ga2938febeef6baf0d91cc066ca5caf095"><td class="mdescLeft"> </td><td class="mdescRight">Waits until the RTC Time and Date registers (RTC_TR and RTC_DR) are synchronized with RTC APB clock. <a href="group___r_t_c___group1.html#ga2938febeef6baf0d91cc066ca5caf095">More...</a><br /></td></tr>
|
|
<tr class="separator:ga2938febeef6baf0d91cc066ca5caf095"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa60079ec257fb3a277d058ca8305533d"><td class="memItemLeft" align="right" valign="top">ErrorStatus </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group1.html#gaa60079ec257fb3a277d058ca8305533d">RTC_RefClockCmd</a> (FunctionalState NewState)</td></tr>
|
|
<tr class="memdesc:gaa60079ec257fb3a277d058ca8305533d"><td class="mdescLeft"> </td><td class="mdescRight">Enables or disables the RTC reference clock detection. <a href="group___r_t_c___group1.html#gaa60079ec257fb3a277d058ca8305533d">More...</a><br /></td></tr>
|
|
<tr class="separator:gaa60079ec257fb3a277d058ca8305533d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gae5e7c682f15b8ae9ddd3b2a85a9df7db"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group1.html#gae5e7c682f15b8ae9ddd3b2a85a9df7db">RTC_BypassShadowCmd</a> (FunctionalState NewState)</td></tr>
|
|
<tr class="memdesc:gae5e7c682f15b8ae9ddd3b2a85a9df7db"><td class="mdescLeft"> </td><td class="mdescRight">Enables or Disables the Bypass Shadow feature. <a href="group___r_t_c___group1.html#gae5e7c682f15b8ae9ddd3b2a85a9df7db">More...</a><br /></td></tr>
|
|
<tr class="separator:gae5e7c682f15b8ae9ddd3b2a85a9df7db"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga9f9df80cfa82f7a4dd9f4d0cf2ffb3a6"><td class="memItemLeft" align="right" valign="top">ErrorStatus </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group2.html#ga9f9df80cfa82f7a4dd9f4d0cf2ffb3a6">RTC_SetTime</a> (uint32_t RTC_Format, <a class="el" href="struct_r_t_c___time_type_def.html">RTC_TimeTypeDef</a> *RTC_TimeStruct)</td></tr>
|
|
<tr class="memdesc:ga9f9df80cfa82f7a4dd9f4d0cf2ffb3a6"><td class="mdescLeft"> </td><td class="mdescRight">Set the RTC current time. <a href="group___r_t_c___group2.html#ga9f9df80cfa82f7a4dd9f4d0cf2ffb3a6">More...</a><br /></td></tr>
|
|
<tr class="separator:ga9f9df80cfa82f7a4dd9f4d0cf2ffb3a6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0404db6e0c70e5a6bbbe4fa58a577365"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group2.html#ga0404db6e0c70e5a6bbbe4fa58a577365">RTC_TimeStructInit</a> (<a class="el" href="struct_r_t_c___time_type_def.html">RTC_TimeTypeDef</a> *RTC_TimeStruct)</td></tr>
|
|
<tr class="memdesc:ga0404db6e0c70e5a6bbbe4fa58a577365"><td class="mdescLeft"> </td><td class="mdescRight">Fills each RTC_TimeStruct member with its default value (Time = 00h:00min:00sec). <a href="group___r_t_c___group2.html#ga0404db6e0c70e5a6bbbe4fa58a577365">More...</a><br /></td></tr>
|
|
<tr class="separator:ga0404db6e0c70e5a6bbbe4fa58a577365"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga1fcc101339c77aebd25ec3621fd1b61a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group2.html#ga1fcc101339c77aebd25ec3621fd1b61a">RTC_GetTime</a> (uint32_t RTC_Format, <a class="el" href="struct_r_t_c___time_type_def.html">RTC_TimeTypeDef</a> *RTC_TimeStruct)</td></tr>
|
|
<tr class="memdesc:ga1fcc101339c77aebd25ec3621fd1b61a"><td class="mdescLeft"> </td><td class="mdescRight">Get the RTC current Time. <a href="group___r_t_c___group2.html#ga1fcc101339c77aebd25ec3621fd1b61a">More...</a><br /></td></tr>
|
|
<tr class="separator:ga1fcc101339c77aebd25ec3621fd1b61a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gae59c33fb19e36b6abab0bad58072c01a"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group2.html#gae59c33fb19e36b6abab0bad58072c01a">RTC_GetSubSecond</a> (void)</td></tr>
|
|
<tr class="memdesc:gae59c33fb19e36b6abab0bad58072c01a"><td class="mdescLeft"> </td><td class="mdescRight">Gets the RTC current Calendar Sub seconds value. <a href="group___r_t_c___group2.html#gae59c33fb19e36b6abab0bad58072c01a">More...</a><br /></td></tr>
|
|
<tr class="separator:gae59c33fb19e36b6abab0bad58072c01a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga69d08538147f3d89c818dcfabf50e362"><td class="memItemLeft" align="right" valign="top">ErrorStatus </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group2.html#ga69d08538147f3d89c818dcfabf50e362">RTC_SetDate</a> (uint32_t RTC_Format, <a class="el" href="struct_r_t_c___date_type_def.html">RTC_DateTypeDef</a> *RTC_DateStruct)</td></tr>
|
|
<tr class="memdesc:ga69d08538147f3d89c818dcfabf50e362"><td class="mdescLeft"> </td><td class="mdescRight">Set the RTC current date. <a href="group___r_t_c___group2.html#ga69d08538147f3d89c818dcfabf50e362">More...</a><br /></td></tr>
|
|
<tr class="separator:ga69d08538147f3d89c818dcfabf50e362"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga6e4e99be910d7759f8910056a2985056"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group2.html#ga6e4e99be910d7759f8910056a2985056">RTC_DateStructInit</a> (<a class="el" href="struct_r_t_c___date_type_def.html">RTC_DateTypeDef</a> *RTC_DateStruct)</td></tr>
|
|
<tr class="memdesc:ga6e4e99be910d7759f8910056a2985056"><td class="mdescLeft"> </td><td class="mdescRight">Fills each RTC_DateStruct member with its default value (Monday, January 01 xx00). <a href="group___r_t_c___group2.html#ga6e4e99be910d7759f8910056a2985056">More...</a><br /></td></tr>
|
|
<tr class="separator:ga6e4e99be910d7759f8910056a2985056"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga582645d554cdd4a316213e90f0b4c8ae"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group2.html#ga582645d554cdd4a316213e90f0b4c8ae">RTC_GetDate</a> (uint32_t RTC_Format, <a class="el" href="struct_r_t_c___date_type_def.html">RTC_DateTypeDef</a> *RTC_DateStruct)</td></tr>
|
|
<tr class="memdesc:ga582645d554cdd4a316213e90f0b4c8ae"><td class="mdescLeft"> </td><td class="mdescRight">Get the RTC current date. <a href="group___r_t_c___group2.html#ga582645d554cdd4a316213e90f0b4c8ae">More...</a><br /></td></tr>
|
|
<tr class="separator:ga582645d554cdd4a316213e90f0b4c8ae"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga44e3334f8e882df9b8a59b47f0857395"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group3.html#ga44e3334f8e882df9b8a59b47f0857395">RTC_SetAlarm</a> (uint32_t RTC_Format, uint32_t RTC_Alarm, <a class="el" href="struct_r_t_c___alarm_type_def.html">RTC_AlarmTypeDef</a> *RTC_AlarmStruct)</td></tr>
|
|
<tr class="memdesc:ga44e3334f8e882df9b8a59b47f0857395"><td class="mdescLeft"> </td><td class="mdescRight">Set the specified RTC Alarm. <a href="group___r_t_c___group3.html#ga44e3334f8e882df9b8a59b47f0857395">More...</a><br /></td></tr>
|
|
<tr class="separator:ga44e3334f8e882df9b8a59b47f0857395"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga36ab6199e21fb415ab1ec4d7aa48ba45"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group3.html#ga36ab6199e21fb415ab1ec4d7aa48ba45">RTC_AlarmStructInit</a> (<a class="el" href="struct_r_t_c___alarm_type_def.html">RTC_AlarmTypeDef</a> *RTC_AlarmStruct)</td></tr>
|
|
<tr class="memdesc:ga36ab6199e21fb415ab1ec4d7aa48ba45"><td class="mdescLeft"> </td><td class="mdescRight">Fills each RTC_AlarmStruct member with its default value (Time = 00h:00mn:00sec / Date = 1st day of the month/Mask = all fields are masked). <a href="group___r_t_c___group3.html#ga36ab6199e21fb415ab1ec4d7aa48ba45">More...</a><br /></td></tr>
|
|
<tr class="separator:ga36ab6199e21fb415ab1ec4d7aa48ba45"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga6e2888d2fd2e3ecb4ec50f5c955b362b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group3.html#ga6e2888d2fd2e3ecb4ec50f5c955b362b">RTC_GetAlarm</a> (uint32_t RTC_Format, uint32_t RTC_Alarm, <a class="el" href="struct_r_t_c___alarm_type_def.html">RTC_AlarmTypeDef</a> *RTC_AlarmStruct)</td></tr>
|
|
<tr class="memdesc:ga6e2888d2fd2e3ecb4ec50f5c955b362b"><td class="mdescLeft"> </td><td class="mdescRight">Get the RTC Alarm value and masks. <a href="group___r_t_c___group3.html#ga6e2888d2fd2e3ecb4ec50f5c955b362b">More...</a><br /></td></tr>
|
|
<tr class="separator:ga6e2888d2fd2e3ecb4ec50f5c955b362b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gac2c08f1aeeb664d3d245cb5aca1b8ca8"><td class="memItemLeft" align="right" valign="top">ErrorStatus </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group3.html#gac2c08f1aeeb664d3d245cb5aca1b8ca8">RTC_AlarmCmd</a> (uint32_t RTC_Alarm, FunctionalState NewState)</td></tr>
|
|
<tr class="memdesc:gac2c08f1aeeb664d3d245cb5aca1b8ca8"><td class="mdescLeft"> </td><td class="mdescRight">Enables or disables the specified RTC Alarm. <a href="group___r_t_c___group3.html#gac2c08f1aeeb664d3d245cb5aca1b8ca8">More...</a><br /></td></tr>
|
|
<tr class="separator:gac2c08f1aeeb664d3d245cb5aca1b8ca8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga7b3e4e9e39262e9b0d1aadd895394e46"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group3.html#ga7b3e4e9e39262e9b0d1aadd895394e46">RTC_AlarmSubSecondConfig</a> (uint32_t RTC_Alarm, uint32_t RTC_AlarmSubSecondValue, uint32_t RTC_AlarmSubSecondMask)</td></tr>
|
|
<tr class="memdesc:ga7b3e4e9e39262e9b0d1aadd895394e46"><td class="mdescLeft"> </td><td class="mdescRight">Configure the RTC AlarmA/B Sub seconds value and mask.*. <a href="group___r_t_c___group3.html#ga7b3e4e9e39262e9b0d1aadd895394e46">More...</a><br /></td></tr>
|
|
<tr class="separator:ga7b3e4e9e39262e9b0d1aadd895394e46"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gae7b5e7146be2710d619c8ed3cca464ad"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group3.html#gae7b5e7146be2710d619c8ed3cca464ad">RTC_GetAlarmSubSecond</a> (uint32_t RTC_Alarm)</td></tr>
|
|
<tr class="memdesc:gae7b5e7146be2710d619c8ed3cca464ad"><td class="mdescLeft"> </td><td class="mdescRight">Gets the RTC Alarm Sub seconds value. <a href="group___r_t_c___group3.html#gae7b5e7146be2710d619c8ed3cca464ad">More...</a><br /></td></tr>
|
|
<tr class="separator:gae7b5e7146be2710d619c8ed3cca464ad"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2557b02b318211112731a91a190c4b26"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group4.html#ga2557b02b318211112731a91a190c4b26">RTC_WakeUpClockConfig</a> (uint32_t RTC_WakeUpClock)</td></tr>
|
|
<tr class="memdesc:ga2557b02b318211112731a91a190c4b26"><td class="mdescLeft"> </td><td class="mdescRight">Configures the RTC Wakeup clock source. <a href="group___r_t_c___group4.html#ga2557b02b318211112731a91a190c4b26">More...</a><br /></td></tr>
|
|
<tr class="separator:ga2557b02b318211112731a91a190c4b26"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga1412044eb756a166c1cf341f3d46ed6b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group4.html#ga1412044eb756a166c1cf341f3d46ed6b">RTC_SetWakeUpCounter</a> (uint32_t RTC_WakeUpCounter)</td></tr>
|
|
<tr class="memdesc:ga1412044eb756a166c1cf341f3d46ed6b"><td class="mdescLeft"> </td><td class="mdescRight">Configures the RTC Wakeup counter. <a href="group___r_t_c___group4.html#ga1412044eb756a166c1cf341f3d46ed6b">More...</a><br /></td></tr>
|
|
<tr class="separator:ga1412044eb756a166c1cf341f3d46ed6b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gae63aab672e917cc48e298162c3dec049"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group4.html#gae63aab672e917cc48e298162c3dec049">RTC_GetWakeUpCounter</a> (void)</td></tr>
|
|
<tr class="memdesc:gae63aab672e917cc48e298162c3dec049"><td class="mdescLeft"> </td><td class="mdescRight">Returns the RTC WakeUp timer counter value. <a href="group___r_t_c___group4.html#gae63aab672e917cc48e298162c3dec049">More...</a><br /></td></tr>
|
|
<tr class="separator:gae63aab672e917cc48e298162c3dec049"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2ce05293303e0d7879c6d755c5355b4c"><td class="memItemLeft" align="right" valign="top">ErrorStatus </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group4.html#ga2ce05293303e0d7879c6d755c5355b4c">RTC_WakeUpCmd</a> (FunctionalState NewState)</td></tr>
|
|
<tr class="memdesc:ga2ce05293303e0d7879c6d755c5355b4c"><td class="mdescLeft"> </td><td class="mdescRight">Enables or Disables the RTC WakeUp timer. <a href="group___r_t_c___group4.html#ga2ce05293303e0d7879c6d755c5355b4c">More...</a><br /></td></tr>
|
|
<tr class="separator:ga2ce05293303e0d7879c6d755c5355b4c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga812feddea77990b5dc336a4989ae61b8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group5.html#ga812feddea77990b5dc336a4989ae61b8">RTC_DayLightSavingConfig</a> (uint32_t RTC_DayLightSaving, uint32_t RTC_StoreOperation)</td></tr>
|
|
<tr class="memdesc:ga812feddea77990b5dc336a4989ae61b8"><td class="mdescLeft"> </td><td class="mdescRight">Adds or substract one hour from the current time. <a href="group___r_t_c___group5.html#ga812feddea77990b5dc336a4989ae61b8">More...</a><br /></td></tr>
|
|
<tr class="separator:ga812feddea77990b5dc336a4989ae61b8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaba0c1361790203e9dca43846f0d9bc15"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group5.html#gaba0c1361790203e9dca43846f0d9bc15">RTC_GetStoreOperation</a> (void)</td></tr>
|
|
<tr class="memdesc:gaba0c1361790203e9dca43846f0d9bc15"><td class="mdescLeft"> </td><td class="mdescRight">Returns the RTC Day Light Saving stored operation. <a href="group___r_t_c___group5.html#gaba0c1361790203e9dca43846f0d9bc15">More...</a><br /></td></tr>
|
|
<tr class="separator:gaba0c1361790203e9dca43846f0d9bc15"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gae3165ef19ef3bd63789e59130ad8d89b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group6.html#gae3165ef19ef3bd63789e59130ad8d89b">RTC_OutputConfig</a> (uint32_t RTC_Output, uint32_t RTC_OutputPolarity)</td></tr>
|
|
<tr class="memdesc:gae3165ef19ef3bd63789e59130ad8d89b"><td class="mdescLeft"> </td><td class="mdescRight">Configures the RTC output source (AFO_ALARM). <a href="group___r_t_c___group6.html#gae3165ef19ef3bd63789e59130ad8d89b">More...</a><br /></td></tr>
|
|
<tr class="separator:gae3165ef19ef3bd63789e59130ad8d89b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa3bb10170a2c70ac9ce3e41c611bdd43"><td class="memItemLeft" align="right" valign="top">ErrorStatus </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group7.html#gaa3bb10170a2c70ac9ce3e41c611bdd43">RTC_CoarseCalibConfig</a> (uint32_t RTC_CalibSign, uint32_t Value)</td></tr>
|
|
<tr class="memdesc:gaa3bb10170a2c70ac9ce3e41c611bdd43"><td class="mdescLeft"> </td><td class="mdescRight">Configures the Coarse calibration parameters. <a href="group___r_t_c___group7.html#gaa3bb10170a2c70ac9ce3e41c611bdd43">More...</a><br /></td></tr>
|
|
<tr class="separator:gaa3bb10170a2c70ac9ce3e41c611bdd43"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga008ae7173b2befe876f5e76686bc9089"><td class="memItemLeft" align="right" valign="top">ErrorStatus </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group7.html#ga008ae7173b2befe876f5e76686bc9089">RTC_CoarseCalibCmd</a> (FunctionalState NewState)</td></tr>
|
|
<tr class="memdesc:ga008ae7173b2befe876f5e76686bc9089"><td class="mdescLeft"> </td><td class="mdescRight">Enables or disables the Coarse calibration process. <a href="group___r_t_c___group7.html#ga008ae7173b2befe876f5e76686bc9089">More...</a><br /></td></tr>
|
|
<tr class="separator:ga008ae7173b2befe876f5e76686bc9089"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga25eaa2de5ee858a4572d5fb1eb146ff8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group7.html#ga25eaa2de5ee858a4572d5fb1eb146ff8">RTC_CalibOutputCmd</a> (FunctionalState NewState)</td></tr>
|
|
<tr class="memdesc:ga25eaa2de5ee858a4572d5fb1eb146ff8"><td class="mdescLeft"> </td><td class="mdescRight">Enables or disables the RTC clock to be output through the relative pin. <a href="group___r_t_c___group7.html#ga25eaa2de5ee858a4572d5fb1eb146ff8">More...</a><br /></td></tr>
|
|
<tr class="separator:ga25eaa2de5ee858a4572d5fb1eb146ff8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2139adc802bdb6882904c0b855d50b29"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group7.html#ga2139adc802bdb6882904c0b855d50b29">RTC_CalibOutputConfig</a> (uint32_t RTC_CalibOutput)</td></tr>
|
|
<tr class="memdesc:ga2139adc802bdb6882904c0b855d50b29"><td class="mdescLeft"> </td><td class="mdescRight">Configure the Calibration Pinout (RTC_CALIB) Selection (1Hz or 512Hz). <a href="group___r_t_c___group7.html#ga2139adc802bdb6882904c0b855d50b29">More...</a><br /></td></tr>
|
|
<tr class="separator:ga2139adc802bdb6882904c0b855d50b29"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga91a28dcc7d45340a469dd8b8c029f841"><td class="memItemLeft" align="right" valign="top">ErrorStatus </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group7.html#ga91a28dcc7d45340a469dd8b8c029f841">RTC_SmoothCalibConfig</a> (uint32_t RTC_SmoothCalibPeriod, uint32_t RTC_SmoothCalibPlusPulses, uint32_t RTC_SmouthCalibMinusPulsesValue)</td></tr>
|
|
<tr class="memdesc:ga91a28dcc7d45340a469dd8b8c029f841"><td class="mdescLeft"> </td><td class="mdescRight">Configures the Smooth Calibration Settings. <a href="group___r_t_c___group7.html#ga91a28dcc7d45340a469dd8b8c029f841">More...</a><br /></td></tr>
|
|
<tr class="separator:ga91a28dcc7d45340a469dd8b8c029f841"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga7d80fa4a2c87654598d8207154ac8e96"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group8.html#ga7d80fa4a2c87654598d8207154ac8e96">RTC_TimeStampCmd</a> (uint32_t RTC_TimeStampEdge, FunctionalState NewState)</td></tr>
|
|
<tr class="memdesc:ga7d80fa4a2c87654598d8207154ac8e96"><td class="mdescLeft"> </td><td class="mdescRight">Enables or Disables the RTC TimeStamp functionality with the specified time stamp pin stimulating edge. <a href="group___r_t_c___group8.html#ga7d80fa4a2c87654598d8207154ac8e96">More...</a><br /></td></tr>
|
|
<tr class="separator:ga7d80fa4a2c87654598d8207154ac8e96"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga44c38b0c74e9e960a4263b2905f44796"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group8.html#ga44c38b0c74e9e960a4263b2905f44796">RTC_GetTimeStamp</a> (uint32_t RTC_Format, <a class="el" href="struct_r_t_c___time_type_def.html">RTC_TimeTypeDef</a> *RTC_StampTimeStruct, <a class="el" href="struct_r_t_c___date_type_def.html">RTC_DateTypeDef</a> *RTC_StampDateStruct)</td></tr>
|
|
<tr class="memdesc:ga44c38b0c74e9e960a4263b2905f44796"><td class="mdescLeft"> </td><td class="mdescRight">Get the RTC TimeStamp value and masks. <a href="group___r_t_c___group8.html#ga44c38b0c74e9e960a4263b2905f44796">More...</a><br /></td></tr>
|
|
<tr class="separator:ga44c38b0c74e9e960a4263b2905f44796"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2b0ef81f4959a2f9fc6361fbda759b00"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group8.html#ga2b0ef81f4959a2f9fc6361fbda759b00">RTC_GetTimeStampSubSecond</a> (void)</td></tr>
|
|
<tr class="memdesc:ga2b0ef81f4959a2f9fc6361fbda759b00"><td class="mdescLeft"> </td><td class="mdescRight">Get the RTC timestamp Sub seconds value. <a href="group___r_t_c___group8.html#ga2b0ef81f4959a2f9fc6361fbda759b00">More...</a><br /></td></tr>
|
|
<tr class="separator:ga2b0ef81f4959a2f9fc6361fbda759b00"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gad547d636cfc4fd8d4d673325571e0ffb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group9.html#gad547d636cfc4fd8d4d673325571e0ffb">RTC_TamperTriggerConfig</a> (uint32_t RTC_Tamper, uint32_t RTC_TamperTrigger)</td></tr>
|
|
<tr class="memdesc:gad547d636cfc4fd8d4d673325571e0ffb"><td class="mdescLeft"> </td><td class="mdescRight">Configures the select Tamper pin edge. <a href="group___r_t_c___group9.html#gad547d636cfc4fd8d4d673325571e0ffb">More...</a><br /></td></tr>
|
|
<tr class="separator:gad547d636cfc4fd8d4d673325571e0ffb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaf85cc696d624da0de9fbe99779402833"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group9.html#gaf85cc696d624da0de9fbe99779402833">RTC_TamperCmd</a> (uint32_t RTC_Tamper, FunctionalState NewState)</td></tr>
|
|
<tr class="memdesc:gaf85cc696d624da0de9fbe99779402833"><td class="mdescLeft"> </td><td class="mdescRight">Enables or Disables the Tamper detection. <a href="group___r_t_c___group9.html#gaf85cc696d624da0de9fbe99779402833">More...</a><br /></td></tr>
|
|
<tr class="separator:gaf85cc696d624da0de9fbe99779402833"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga1e87b9ae757ad12d7585e4fbcbf2c4b8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group9.html#ga1e87b9ae757ad12d7585e4fbcbf2c4b8">RTC_TamperFilterConfig</a> (uint32_t RTC_TamperFilter)</td></tr>
|
|
<tr class="memdesc:ga1e87b9ae757ad12d7585e4fbcbf2c4b8"><td class="mdescLeft"> </td><td class="mdescRight">Configures the Tampers Filter. <a href="group___r_t_c___group9.html#ga1e87b9ae757ad12d7585e4fbcbf2c4b8">More...</a><br /></td></tr>
|
|
<tr class="separator:ga1e87b9ae757ad12d7585e4fbcbf2c4b8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gadc7f33a31df80b5deac313fc8af8d7f7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group9.html#gadc7f33a31df80b5deac313fc8af8d7f7">RTC_TamperSamplingFreqConfig</a> (uint32_t RTC_TamperSamplingFreq)</td></tr>
|
|
<tr class="memdesc:gadc7f33a31df80b5deac313fc8af8d7f7"><td class="mdescLeft"> </td><td class="mdescRight">Configures the Tampers Sampling Frequency. <a href="group___r_t_c___group9.html#gadc7f33a31df80b5deac313fc8af8d7f7">More...</a><br /></td></tr>
|
|
<tr class="separator:gadc7f33a31df80b5deac313fc8af8d7f7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gafc176a013076a651862dc6a957286025"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group9.html#gafc176a013076a651862dc6a957286025">RTC_TamperPinsPrechargeDuration</a> (uint32_t RTC_TamperPrechargeDuration)</td></tr>
|
|
<tr class="memdesc:gafc176a013076a651862dc6a957286025"><td class="mdescLeft"> </td><td class="mdescRight">Configures the Tampers Pins input Precharge Duration. <a href="group___r_t_c___group9.html#gafc176a013076a651862dc6a957286025">More...</a><br /></td></tr>
|
|
<tr class="separator:gafc176a013076a651862dc6a957286025"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga29c82fceefd21a78dc55ccc5bcc1ed59"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group9.html#ga29c82fceefd21a78dc55ccc5bcc1ed59">RTC_TimeStampOnTamperDetectionCmd</a> (FunctionalState NewState)</td></tr>
|
|
<tr class="memdesc:ga29c82fceefd21a78dc55ccc5bcc1ed59"><td class="mdescLeft"> </td><td class="mdescRight">Enables or Disables the TimeStamp on Tamper Detection Event. <a href="group___r_t_c___group9.html#ga29c82fceefd21a78dc55ccc5bcc1ed59">More...</a><br /></td></tr>
|
|
<tr class="separator:ga29c82fceefd21a78dc55ccc5bcc1ed59"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga981b9c654e521282a2020a81118c8c3c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group9.html#ga981b9c654e521282a2020a81118c8c3c">RTC_TamperPullUpCmd</a> (FunctionalState NewState)</td></tr>
|
|
<tr class="memdesc:ga981b9c654e521282a2020a81118c8c3c"><td class="mdescLeft"> </td><td class="mdescRight">Enables or Disables the Precharge of Tamper pin. <a href="group___r_t_c___group9.html#ga981b9c654e521282a2020a81118c8c3c">More...</a><br /></td></tr>
|
|
<tr class="separator:ga981b9c654e521282a2020a81118c8c3c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa1241e2b47d04acc116b50d7b031c3aa"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group10.html#gaa1241e2b47d04acc116b50d7b031c3aa">RTC_WriteBackupRegister</a> (uint32_t RTC_BKP_DR, uint32_t Data)</td></tr>
|
|
<tr class="memdesc:gaa1241e2b47d04acc116b50d7b031c3aa"><td class="mdescLeft"> </td><td class="mdescRight">Writes a data in a specified RTC Backup data register. <a href="group___r_t_c___group10.html#gaa1241e2b47d04acc116b50d7b031c3aa">More...</a><br /></td></tr>
|
|
<tr class="separator:gaa1241e2b47d04acc116b50d7b031c3aa"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga504489fd91a66e392beb82bb8230b37f"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group10.html#ga504489fd91a66e392beb82bb8230b37f">RTC_ReadBackupRegister</a> (uint32_t RTC_BKP_DR)</td></tr>
|
|
<tr class="memdesc:ga504489fd91a66e392beb82bb8230b37f"><td class="mdescLeft"> </td><td class="mdescRight">Reads data from the specified RTC Backup data Register. <a href="group___r_t_c___group10.html#ga504489fd91a66e392beb82bb8230b37f">More...</a><br /></td></tr>
|
|
<tr class="separator:ga504489fd91a66e392beb82bb8230b37f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga46777272ae77eb9dc38610481e12b0ed"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group11.html#ga46777272ae77eb9dc38610481e12b0ed">RTC_TamperPinSelection</a> (uint32_t RTC_TamperPin)</td></tr>
|
|
<tr class="memdesc:ga46777272ae77eb9dc38610481e12b0ed"><td class="mdescLeft"> </td><td class="mdescRight">Selects the RTC Tamper Pin. <a href="group___r_t_c___group11.html#ga46777272ae77eb9dc38610481e12b0ed">More...</a><br /></td></tr>
|
|
<tr class="separator:ga46777272ae77eb9dc38610481e12b0ed"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaedf9830bdaaaa50ea5d45d2ff7bb43a9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group11.html#gaedf9830bdaaaa50ea5d45d2ff7bb43a9">RTC_TimeStampPinSelection</a> (uint32_t RTC_TimeStampPin)</td></tr>
|
|
<tr class="memdesc:gaedf9830bdaaaa50ea5d45d2ff7bb43a9"><td class="mdescLeft"> </td><td class="mdescRight">Selects the RTC TimeStamp Pin. <a href="group___r_t_c___group11.html#gaedf9830bdaaaa50ea5d45d2ff7bb43a9">More...</a><br /></td></tr>
|
|
<tr class="separator:gaedf9830bdaaaa50ea5d45d2ff7bb43a9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga95263b7acf7168d52f66ef9121f14760"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group11.html#ga95263b7acf7168d52f66ef9121f14760">RTC_OutputTypeConfig</a> (uint32_t RTC_OutputType)</td></tr>
|
|
<tr class="memdesc:ga95263b7acf7168d52f66ef9121f14760"><td class="mdescLeft"> </td><td class="mdescRight">Configures the RTC Output Pin mode. <a href="group___r_t_c___group11.html#ga95263b7acf7168d52f66ef9121f14760">More...</a><br /></td></tr>
|
|
<tr class="separator:ga95263b7acf7168d52f66ef9121f14760"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaad434ed2a268f05662f0613e8e9717f3"><td class="memItemLeft" align="right" valign="top">ErrorStatus </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group12.html#gaad434ed2a268f05662f0613e8e9717f3">RTC_SynchroShiftConfig</a> (uint32_t RTC_ShiftAdd1S, uint32_t RTC_ShiftSubFS)</td></tr>
|
|
<tr class="memdesc:gaad434ed2a268f05662f0613e8e9717f3"><td class="mdescLeft"> </td><td class="mdescRight">Configures the Synchronization Shift Control Settings. <a href="group___r_t_c___group12.html#gaad434ed2a268f05662f0613e8e9717f3">More...</a><br /></td></tr>
|
|
<tr class="separator:gaad434ed2a268f05662f0613e8e9717f3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa8469b33b3a99025baf52f007683b925"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group13.html#gaa8469b33b3a99025baf52f007683b925">RTC_ITConfig</a> (uint32_t RTC_IT, FunctionalState NewState)</td></tr>
|
|
<tr class="memdesc:gaa8469b33b3a99025baf52f007683b925"><td class="mdescLeft"> </td><td class="mdescRight">Enables or disables the specified RTC interrupts. <a href="group___r_t_c___group13.html#gaa8469b33b3a99025baf52f007683b925">More...</a><br /></td></tr>
|
|
<tr class="separator:gaa8469b33b3a99025baf52f007683b925"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaf2a7f11aa7160e95650fd10845e7780b"><td class="memItemLeft" align="right" valign="top">FlagStatus </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group13.html#gaf2a7f11aa7160e95650fd10845e7780b">RTC_GetFlagStatus</a> (uint32_t RTC_FLAG)</td></tr>
|
|
<tr class="memdesc:gaf2a7f11aa7160e95650fd10845e7780b"><td class="mdescLeft"> </td><td class="mdescRight">Checks whether the specified RTC flag is set or not. <a href="group___r_t_c___group13.html#gaf2a7f11aa7160e95650fd10845e7780b">More...</a><br /></td></tr>
|
|
<tr class="separator:gaf2a7f11aa7160e95650fd10845e7780b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga9be3325e05418d05c8c5a5ad369c7d50"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group13.html#ga9be3325e05418d05c8c5a5ad369c7d50">RTC_ClearFlag</a> (uint32_t RTC_FLAG)</td></tr>
|
|
<tr class="memdesc:ga9be3325e05418d05c8c5a5ad369c7d50"><td class="mdescLeft"> </td><td class="mdescRight">Clears the RTC's pending flags. <a href="group___r_t_c___group13.html#ga9be3325e05418d05c8c5a5ad369c7d50">More...</a><br /></td></tr>
|
|
<tr class="separator:ga9be3325e05418d05c8c5a5ad369c7d50"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaab81adc6d2a5a5c1e37a49707c6bf640"><td class="memItemLeft" align="right" valign="top">ITStatus </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group13.html#gaab81adc6d2a5a5c1e37a49707c6bf640">RTC_GetITStatus</a> (uint32_t RTC_IT)</td></tr>
|
|
<tr class="memdesc:gaab81adc6d2a5a5c1e37a49707c6bf640"><td class="mdescLeft"> </td><td class="mdescRight">Checks whether the specified RTC interrupt has occurred or not. <a href="group___r_t_c___group13.html#gaab81adc6d2a5a5c1e37a49707c6bf640">More...</a><br /></td></tr>
|
|
<tr class="separator:gaab81adc6d2a5a5c1e37a49707c6bf640"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gacac6accc75ae54f1b799fa8e7e83ccdb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___group13.html#gacac6accc75ae54f1b799fa8e7e83ccdb">RTC_ClearITPendingBit</a> (uint32_t RTC_IT)</td></tr>
|
|
<tr class="memdesc:gacac6accc75ae54f1b799fa8e7e83ccdb"><td class="mdescLeft"> </td><td class="mdescRight">Clears the RTC's interrupt pending bits. <a href="group___r_t_c___group13.html#gacac6accc75ae54f1b799fa8e7e83ccdb">More...</a><br /></td></tr>
|
|
<tr class="separator:gacac6accc75ae54f1b799fa8e7e83ccdb"><td class="memSeparator" colspan="2"> </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 Real-Time Clock (RTC) 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</li>
|
|
<li>Calendar (Time and Date) configuration</li>
|
|
<li>Alarms (Alarm A and Alarm B) configuration</li>
|
|
<li>WakeUp Timer configuration</li>
|
|
<li>Daylight Saving configuration</li>
|
|
<li>Output pin Configuration</li>
|
|
<li>Coarse digital Calibration configuration</li>
|
|
<li>Smooth digital Calibration configuration</li>
|
|
<li>TimeStamp configuration</li>
|
|
<li>Tampers configuration</li>
|
|
<li>Backup Data Registers configuration</li>
|
|
<li>Shift control synchronisation</li>
|
|
<li>RTC Tamper and TimeStamp Pins Selection and Output Type Config configuration</li>
|
|
<li>Interrupts and flags management</li>
|
|
</ul>
|
|
</dd></dl>
|
|
<pre class="fragment"> ===================================================================
|
|
##### Backup Domain Operating Condition #####
|
|
===================================================================
|
|
[..] The real-time clock (RTC), the RTC backup registers, and the backup
|
|
SRAM (BKP SRAM) can be powered from the VBAT voltage when the main
|
|
VDD supply is powered off.
|
|
To retain the content of the RTC backup registers, backup SRAM, and supply
|
|
the RTC when VDD is turned off, VBAT pin can be connected to an optional
|
|
standby voltage supplied by a battery or by another source.
|
|
|
|
[..] To allow the RTC to operate even when the main digital supply (VDD) is turned
|
|
off, the VBAT pin powers the following blocks:
|
|
(#) The RTC
|
|
(#) The LSE oscillator
|
|
(#) The backup SRAM when the low power backup regulator is enabled
|
|
(#) PC13 to PC15 I/Os, plus PI8 I/O (when available)
|
|
|
|
[..] When the backup domain is supplied by VDD (analog switch connected to VDD),
|
|
the following functions are available:
|
|
(#) PC14 and PC15 can be used as either GPIO or LSE pins
|
|
(#) PC13 can be used as a GPIO or as the RTC_AF1 pin
|
|
(#) PI8 can be used as a GPIO or as the RTC_AF2 pin
|
|
|
|
[..] When the backup domain is supplied by VBAT (analog switch connected to VBAT
|
|
because VDD is not present), the following functions are available:
|
|
(#) PC14 and PC15 can be used as LSE pins only
|
|
(#) PC13 can be used as the RTC_AF1 pin
|
|
(#) PI8 can be used as the RTC_AF2 pin
|
|
|
|
|
|
##### Backup Domain Reset #####
|
|
===================================================================
|
|
[..] The backup domain reset sets all RTC registers and the RCC_BDCR register
|
|
to their reset values. The BKPSRAM is not affected by this reset. The only
|
|
way of resetting the BKPSRAM is through the Flash interface by requesting
|
|
a protection level change from 1 to 0.
|
|
[..] A backup domain reset is generated when one of the following events occurs:
|
|
(#) Software reset, triggered by setting the BDRST bit in the
|
|
RCC Backup domain control register (RCC_BDCR). You can use the
|
|
RCC_BackupResetCmd().
|
|
(#) VDD or VBAT power on, if both supplies have previously been powered off.
|
|
|
|
|
|
##### Backup Domain Access #####
|
|
===================================================================
|
|
[..] After reset, the backup domain (RTC registers, RTC backup data
|
|
registers and backup SRAM) is protected against possible unwanted write
|
|
accesses.
|
|
[..] To enable access to the RTC Domain and RTC registers, proceed as follows:
|
|
(+) Enable the Power Controller (PWR) APB1 interface clock using the
|
|
RCC_APB1PeriphClockCmd() function.
|
|
(+) Enable access to RTC domain using the PWR_BackupAccessCmd() function.
|
|
(+) Select the RTC clock source using the RCC_RTCCLKConfig() function.
|
|
(+) Enable RTC Clock using the RCC_RTCCLKCmd() function.
|
|
|
|
|
|
##### How to use RTC Driver #####
|
|
===================================================================
|
|
[..]
|
|
(+) Enable the RTC domain access (see description in the section above)
|
|
(+) Configure the RTC Prescaler (Asynchronous and Synchronous) and RTC hour
|
|
format using the RTC_Init() function.
|
|
|
|
*** Time and Date configuration ***
|
|
===================================
|
|
[..]
|
|
(+) To configure the RTC Calendar (Time and Date) use the RTC_SetTime()
|
|
and RTC_SetDate() functions.
|
|
(+) To read the RTC Calendar, use the RTC_GetTime() and RTC_GetDate() functions.
|
|
(+) Use the RTC_DayLightSavingConfig() function to add or sub one
|
|
hour to the RTC Calendar.
|
|
|
|
*** Alarm configuration ***
|
|
===========================
|
|
[..]
|
|
(+) To configure the RTC Alarm use the RTC_SetAlarm() function.
|
|
(+) Enable the selected RTC Alarm using the RTC_AlarmCmd() function
|
|
(+) To read the RTC Alarm, use the RTC_GetAlarm() function.
|
|
(+) To read the RTC alarm SubSecond, use the RTC_GetAlarmSubSecond() function.
|
|
|
|
*** RTC Wakeup configuration ***
|
|
================================
|
|
[..]
|
|
(+) Configure the RTC Wakeup Clock source use the RTC_WakeUpClockConfig()
|
|
function.
|
|
(+) Configure the RTC WakeUp Counter using the RTC_SetWakeUpCounter() function
|
|
(+) Enable the RTC WakeUp using the RTC_WakeUpCmd() function
|
|
(+) To read the RTC WakeUp Counter register, use the RTC_GetWakeUpCounter()
|
|
function.
|
|
|
|
*** Outputs configuration ***
|
|
=============================
|
|
[..] The RTC has 2 different outputs:
|
|
(+) AFO_ALARM: this output is used to manage the RTC Alarm A, Alarm B
|
|
and WaKeUp signals. To output the selected RTC signal on RTC_AF1 pin, use the
|
|
RTC_OutputConfig() function.
|
|
(+) AFO_CALIB: this output is 512Hz signal or 1Hz. To output the RTC Clock on
|
|
RTC_AF1 pin, use the RTC_CalibOutputCmd() function.
|
|
|
|
*** Smooth digital Calibration configuration ***
|
|
================================================
|
|
[..]
|
|
(+) Configure the RTC Original Digital Calibration Value and the corresponding
|
|
calibration cycle period (32s,16s and 8s) using the RTC_SmoothCalibConfig()
|
|
function.
|
|
|
|
*** Coarse digital Calibration configuration ***
|
|
================================================
|
|
[..]
|
|
(+) Configure the RTC Coarse Calibration Value and the corresponding
|
|
sign using the RTC_CoarseCalibConfig() function.
|
|
(+) Enable the RTC Coarse Calibration using the RTC_CoarseCalibCmd() function
|
|
|
|
*** TimeStamp configuration ***
|
|
===============================
|
|
[..]
|
|
(+) Configure the RTC_AF1 trigger and enables the RTC TimeStamp using the RTC
|
|
_TimeStampCmd() function.
|
|
(+) To read the RTC TimeStamp Time and Date register, use the RTC_GetTimeStamp()
|
|
function.
|
|
(+) To read the RTC TimeStamp SubSecond register, use the
|
|
RTC_GetTimeStampSubSecond() function.
|
|
(+) The TAMPER1 alternate function can be mapped either to RTC_AF1(PC13)
|
|
or RTC_AF2 (PI8) depending on the value of TAMP1INSEL bit in
|
|
RTC_TAFCR register. You can use the RTC_TamperPinSelection() function to
|
|
select the corresponding pin.
|
|
|
|
*** Tamper configuration ***
|
|
============================
|
|
[..]
|
|
(+) Enable the RTC Tamper using the RTC_TamperCmd() function.
|
|
(+) Configure the Tamper filter count using RTC_TamperFilterConfig()
|
|
function.
|
|
(+) Configure the RTC Tamper trigger Edge or Level according to the Tamper
|
|
filter (if equal to 0 Edge else Level) value using the RTC_TamperConfig()
|
|
function.
|
|
(+) Configure the Tamper sampling frequency using RTC_TamperSamplingFreqConfig()
|
|
function.
|
|
(+) Configure the Tamper precharge or discharge duration using
|
|
RTC_TamperPinsPrechargeDuration() function.
|
|
(+) Enable the Tamper Pull-UP using RTC_TamperPullUpDisableCmd() function.
|
|
(+) Enable the Time stamp on Tamper detection event using
|
|
TC_TSOnTamperDetecCmd() function.
|
|
(+) The TIMESTAMP alternate function can be mapped to either RTC_AF1
|
|
or RTC_AF2 depending on the value of the TSINSEL bit in the RTC_TAFCR
|
|
register. You can use the RTC_TimeStampPinSelection() function to select
|
|
the corresponding pin.
|
|
|
|
*** Backup Data Registers configuration ***
|
|
===========================================
|
|
[..]
|
|
(+) To write to the RTC Backup Data registers, use the RTC_WriteBackupRegister()
|
|
function.
|
|
(+) To read the RTC Backup Data registers, use the RTC_ReadBackupRegister()
|
|
function.
|
|
|
|
|
|
##### RTC and low power modes #####
|
|
===================================================================
|
|
[..] The MCU can be woken up from a low power mode by an RTC alternate
|
|
function.
|
|
[..] The RTC alternate functions are the RTC alarms (Alarm A and Alarm B),
|
|
RTC wakeup, RTC tamper event detection and RTC time stamp event detection.
|
|
These RTC alternate functions can wake up the system from the Stop and
|
|
Standby lowpower modes.
|
|
[..] The system can also wake up from low power modes without depending
|
|
on an external interrupt (Auto-wakeup mode), by using the RTC alarm
|
|
or the RTC wakeup events.
|
|
[..] The RTC provides a programmable time base for waking up from the
|
|
Stop or Standby mode at regular intervals.
|
|
Wakeup from STOP and Standby modes is possible only when the RTC clock source
|
|
is LSE or LSI.
|
|
|
|
|
|
##### Selection of RTC_AF1 alternate functions #####
|
|
===================================================================
|
|
[..] The RTC_AF1 pin (PC13) can be used for the following purposes:
|
|
(+) AFO_ALARM output
|
|
(+) AFO_CALIB output
|
|
(+) AFI_TAMPER
|
|
(+) AFI_TIMESTAMP
|
|
|
|
[..]
|
|
+-------------------------------------------------------------------------------------------------------------+
|
|
| Pin |AFO_ALARM |AFO_CALIB |AFI_TAMPER |AFI_TIMESTAMP | TAMP1INSEL | TSINSEL |ALARMOUTTYPE |
|
|
| configuration | ENABLED | ENABLED | ENABLED | ENABLED |TAMPER1 pin |TIMESTAMP pin | AFO_ALARM |
|
|
| and function | | | | | selection | selection |Configuration |
|
|
|-----------------|----------|----------|-----------|--------------|------------|--------------|--------------|
|
|
| Alarm out | | | | | Don't | Don't | |
|
|
| output OD | 1 |Don't care|Don't care | Don't care | care | care | 0 |
|
|
|-----------------|----------|----------|-----------|--------------|------------|--------------|--------------|
|
|
| Alarm out | | | | | Don't | Don't | |
|
|
| output PP | 1 |Don't care|Don't care | Don't care | care | care | 1 |
|
|
|-----------------|----------|----------|-----------|--------------|------------|--------------|--------------|
|
|
| Calibration out | | | | | Don't | Don't | |
|
|
| output PP | 0 | 1 |Don't care | Don't care | care | care | Don't care |
|
|
|-----------------|----------|----------|-----------|--------------|------------|--------------|--------------|
|
|
| TAMPER input | | | | | | Don't | |
|
|
| floating | 0 | 0 | 1 | 0 | 0 | care | Don't care |
|
|
|-----------------|----------|----------|-----------|--------------|------------|--------------|--------------|
|
|
| TIMESTAMP and | | | | | | | |
|
|
| TAMPER input | 0 | 0 | 1 | 1 | 0 | 0 | Don't care |
|
|
| floating | | | | | | | |
|
|
|-----------------|----------|----------|-----------|--------------|------------|--------------|--------------|
|
|
| TIMESTAMP input | | | | | Don't | | |
|
|
| floating | 0 | 0 | 0 | 1 | care | 0 | Don't care |
|
|
|-----------------|----------|----------|-----------|--------------|------------|--------------|--------------|
|
|
| Standard GPIO | 0 | 0 | 0 | 0 | Don't care | Don't care | Don't care |
|
|
+-------------------------------------------------------------------------------------------------------------+
|
|
|
|
|
|
##### Selection of RTC_AF2 alternate functions #####
|
|
===================================================================
|
|
[..] The RTC_AF2 pin (PI8) can be used for the following purposes:
|
|
(+) AFI_TAMPER
|
|
(+) AFI_TIMESTAMP
|
|
[..]
|
|
+---------------------------------------------------------------------------------------+
|
|
| Pin |AFI_TAMPER |AFI_TIMESTAMP | TAMP1INSEL | TSINSEL |ALARMOUTTYPE |
|
|
| configuration | ENABLED | ENABLED |TAMPER1 pin |TIMESTAMP pin | AFO_ALARM |
|
|
| and function | | | selection | selection |Configuration |
|
|
|-----------------|-----------|--------------|------------|--------------|--------------|
|
|
| TAMPER input | | | | Don't | |
|
|
| floating | 1 | 0 | 1 | care | Don't care |
|
|
|-----------------|-----------|--------------|------------|--------------|--------------|
|
|
| TIMESTAMP and | | | | | |
|
|
| TAMPER input | 1 | 1 | 1 | 1 | Don't care |
|
|
| floating | | | | | |
|
|
|-----------------|-----------|--------------|------------|--------------|--------------|
|
|
| TIMESTAMP input | | | Don't | | |
|
|
| floating | 0 | 1 | care | 1 | Don't care |
|
|
|-----------------|-----------|--------------|------------|--------------|--------------|
|
|
| Standard GPIO | 0 | 0 | Don't care | Don't care | Don't care |
|
|
+---------------------------------------------------------------------------------------+ </pre><pre class="fragment">@attention
|
|
|
|
<h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
|
|
|
|
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:
|
|
|
|
http://www.st.com/software_license_agreement_liberty_v2
|
|
|
|
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.</pre></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  <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>
|