| Electronic Components Datasheet Search |
|
UM0097 Datasheet(PDF) 90 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0097 Datasheet(HTML) 90 Page - STMicroelectronics |
|
90 / 229 page ![]() Peripheral firmware overview UM0097 90/229 RTC_AlarmConfig Example: This example illustrates how to configure a new alarm time. { u32 wAlarm_Time; ... wAlarm_Time = 0x007FFFFF; ... RTC_AlarmConfig (wAlarm_Time); ... } RTC_FlagStatus Example: This example illustrates how to check the RTC Second interrupt flag. { ... /* Test if the Second interrupt request is set */ if (RTC_FlagStatus (RTC_SIR)) { ... } } Function Name RTC_AlarmConfig Function Prototype void RTC_AlarmConfig (u32 Xalarm); Behavior Description This routine sets the alarm time value. It updates AHI & ALO register values. Input Parameter Xalarm: specifies the new RTC alarm time value. Output Parameter None Return Value None Required preconditions None Called Functions RTC_WaitForLastTask, RTC_EnterCfgMode and RTC_ExitCfgMode. Function Name RTC_FlagStatus Function Prototype FlagStatus RTC_FlagStatus (RTC_FLAGS Xflag); Behavior Description This routine is used to check if the specified RTC flag is set or not. Input Parameter Xflag: Designates an RTC flag. Refer to RTC flags on page 85 for more details on the allowed values of this parameter. Output Parameter None Return Value The specified flag status: – SET: The corresponding flag is SET – RESET: The corresponding flag is RESET Required preconditions None Called Functions None |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |