STM8L15x Standard Peripherals Drivers: RTC_Registers_Bits_Definition

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

RTC_Registers_Bits_Definition

Defines

#define RTC_ALRMAR1_MSK1   ((uint8_t)0x80)
#define RTC_ALRMAR1_ST   ((uint8_t)0x70)
#define RTC_ALRMAR1_SU   ((uint8_t)0x0F)
#define RTC_ALRMAR2_MNT   ((uint8_t)0x70)
#define RTC_ALRMAR2_MNU   ((uint8_t)0x0F)
#define RTC_ALRMAR2_MSK2   ((uint8_t)0x80)
#define RTC_ALRMAR3_HT   ((uint8_t)0x30)
#define RTC_ALRMAR3_HU   ((uint8_t)0x0F)
#define RTC_ALRMAR3_MSK3   ((uint8_t)0x80)
#define RTC_ALRMAR3_PM   ((uint8_t)0x40)
#define RTC_ALRMAR4_DT   ((uint8_t)0x30)
#define RTC_ALRMAR4_DU   ((uint8_t)0x0F)
#define RTC_ALRMAR4_MSK4   ((uint8_t)0x80)
#define RTC_ALRMAR4_WDSEL   ((uint8_t)0x40)
#define RTC_ALRMASSMSKR_MASKSS   ((uint8_t)0x1F)
#define RTC_ALRMASSRH_ALSS   ((uint8_t)0x7F)
#define RTC_ALRMASSRL_ALSS   ((uint8_t)0xFF)
#define RTC_CALRH_CALM   ((uint8_t)0x01)
#define RTC_CALRH_CALP   ((uint8_t)0x80)
#define RTC_CALRH_CALW16   ((uint8_t)0x20)
#define RTC_CALRH_CALW8   ((uint8_t)0x40)
#define RTC_CALRH_CALWx   ((uint8_t)0x60)
#define RTC_CALRL_CALM   ((uint8_t)0xFF)
#define RTC_CR1_BYPSHAD   ((uint8_t)0x10)
#define RTC_CR1_FMT   ((uint8_t)0x40)
#define RTC_CR1_RATIO   ((uint8_t)0x20)
#define RTC_CR1_WUCKSEL   ((uint8_t)0x07)
#define RTC_CR2_ALRAE   ((uint8_t)0x01)
#define RTC_CR2_ALRAIE   ((uint8_t)0x10)
#define RTC_CR2_ALRIE   ((uint8_t)0x20)
#define RTC_CR2_WUTE   ((uint8_t)0x04)
#define RTC_CR2_WUTIE   ((uint8_t)0x40)
#define RTC_CR3_ADD1H   ((uint8_t)0x01)
#define RTC_CR3_BCK   ((uint8_t)0x04)
#define RTC_CR3_COE   ((uint8_t)0x80)
#define RTC_CR3_COSEL   ((uint8_t)0x08)
#define RTC_CR3_OSEL   ((uint8_t)0x60)
#define RTC_CR3_POL   ((uint8_t)0x10)
#define RTC_CR3_SUB1H   ((uint8_t)0x02)
#define RTC_DR1_DT   ((uint8_t)0x30)
#define RTC_DR1_DU   ((uint8_t)0x0F)
#define RTC_DR2_MT   ((uint8_t)0x10)
#define RTC_DR2_MU   ((uint8_t)0x0F)
#define RTC_DR2_WDU   ((uint8_t)0xE0)
#define RTC_DR3_YT   ((uint8_t)0xF0)
#define RTC_DR3_YU   ((uint8_t)0x0F)
#define RTC_ISR1_ALRAWF   ((uint8_t)0x01)
#define RTC_ISR1_INIT   ((uint8_t)0x80)
#define RTC_ISR1_INITF   ((uint8_t)0x40)
#define RTC_ISR1_INITS   ((uint8_t)0x10)
#define RTC_ISR1_RECALPF   ((uint8_t)0x02)
#define RTC_ISR1_RSF   ((uint8_t)0x20)
#define RTC_ISR1_SHPF   ((uint8_t)0x08)
#define RTC_ISR1_WUTWF   ((uint8_t)0x04)
#define RTC_ISR2_ALRAF   ((uint8_t)0x01)
#define RTC_ISR2_TAMP1F   ((uint8_t)0x20)
#define RTC_ISR2_TAMP2F   ((uint8_t)0x40)
#define RTC_ISR2_TAMP3F   ((uint8_t)0x80)
#define RTC_ISR2_WUTF   ((uint8_t)0x04)
#define RTC_SHIFTRH_ADD1S   ((uint8_t)0x80)
#define RTC_SHIFTRH_SUBFS   ((uint8_t)0x7F)
#define RTC_SHIFTRL_SUBFS   ((uint8_t)0xFF)
#define RTC_TCR1_TAMP1E   ((uint8_t)0x02)
#define RTC_TCR1_TAMP1LEVEL   ((uint8_t)0x04)
#define RTC_TCR1_TAMP2E   ((uint8_t)0x08)
#define RTC_TCR1_TAMP2LEVEL   ((uint8_t)0x10)
#define RTC_TCR1_TAMP3E   ((uint8_t)0x20)
#define RTC_TCR1_TAMP3LEVEL   ((uint8_t)0x40)
#define RTC_TCR1_TAMPIE   ((uint8_t)0x01)
#define RTC_TCR2_TAMPFLT   ((uint8_t)0x18)
#define RTC_TCR2_TAMPFREQ   ((uint8_t)0x07)
#define RTC_TCR2_TAMPPRCH   ((uint8_t)0x60)
#define RTC_TCR2_TAMPPUDIS   ((uint8_t)0x80)
#define RTC_TR1_ST   ((uint8_t)0x70)
#define RTC_TR1_SU   ((uint8_t)0x0F)
#define RTC_TR2_MNT   ((uint8_t)0x70)
#define RTC_TR2_MNU   ((uint8_t)0x0F)
#define RTC_TR3_HT   ((uint8_t)0x30)
#define RTC_TR3_HU   ((uint8_t)0x0F)
#define RTC_TR3_PM   ((uint8_t)0x40)
#define RTC_WPR_DisableKey1   ((uint8_t)0xCA)
#define RTC_WPR_DisableKey2   ((uint8_t)0x53)
#define RTC_WPR_EnableKey   ((uint8_t)0xFF)

Define Documentation

#define RTC_ALRMAR1_MSK1   ((uint8_t)0x80)

Definition at line 469 of file stm8l15x.h.

Referenced by RTC_GetAlarm(), and RTC_SetAlarm().

#define RTC_ALRMAR1_ST   ((uint8_t)0x70)

Definition at line 470 of file stm8l15x.h.

Referenced by RTC_GetAlarm().

#define RTC_ALRMAR1_SU   ((uint8_t)0x0F)

Definition at line 471 of file stm8l15x.h.

Referenced by RTC_GetAlarm().

#define RTC_ALRMAR2_MNT   ((uint8_t)0x70)

Definition at line 475 of file stm8l15x.h.

Referenced by RTC_GetAlarm().

#define RTC_ALRMAR2_MNU   ((uint8_t)0x0F)

Definition at line 476 of file stm8l15x.h.

Referenced by RTC_GetAlarm().

#define RTC_ALRMAR2_MSK2   ((uint8_t)0x80)

Definition at line 474 of file stm8l15x.h.

Referenced by RTC_GetAlarm(), and RTC_SetAlarm().

#define RTC_ALRMAR3_HT   ((uint8_t)0x30)

Definition at line 481 of file stm8l15x.h.

Referenced by RTC_GetAlarm().

#define RTC_ALRMAR3_HU   ((uint8_t)0x0F)

Definition at line 482 of file stm8l15x.h.

Referenced by RTC_GetAlarm().

#define RTC_ALRMAR3_MSK3   ((uint8_t)0x80)

Definition at line 479 of file stm8l15x.h.

Referenced by RTC_GetAlarm(), and RTC_SetAlarm().

#define RTC_ALRMAR3_PM   ((uint8_t)0x40)

Definition at line 480 of file stm8l15x.h.

Referenced by RTC_GetAlarm().

#define RTC_ALRMAR4_DT   ((uint8_t)0x30)

Definition at line 487 of file stm8l15x.h.

Referenced by RTC_GetAlarm().

#define RTC_ALRMAR4_DU   ((uint8_t)0x0F)

Definition at line 488 of file stm8l15x.h.

Referenced by RTC_GetAlarm().

#define RTC_ALRMAR4_MSK4   ((uint8_t)0x80)

Definition at line 485 of file stm8l15x.h.

Referenced by RTC_GetAlarm(), and RTC_SetAlarm().

#define RTC_ALRMAR4_WDSEL   ((uint8_t)0x40)

Definition at line 486 of file stm8l15x.h.

Referenced by RTC_GetAlarm().

#define RTC_ALRMASSMSKR_MASKSS   ((uint8_t)0x1F)

Definition at line 497 of file stm8l15x.h.

#define RTC_ALRMASSRH_ALSS   ((uint8_t)0x7F)

Definition at line 491 of file stm8l15x.h.

#define RTC_ALRMASSRL_ALSS   ((uint8_t)0xFF)

Definition at line 494 of file stm8l15x.h.

#define RTC_CALRH_CALM   ((uint8_t)0x01)

Definition at line 505 of file stm8l15x.h.

#define RTC_CALRH_CALP   ((uint8_t)0x80)

Definition at line 501 of file stm8l15x.h.

#define RTC_CALRH_CALW16   ((uint8_t)0x20)

Definition at line 503 of file stm8l15x.h.

#define RTC_CALRH_CALW8   ((uint8_t)0x40)

Definition at line 502 of file stm8l15x.h.

#define RTC_CALRH_CALWx   ((uint8_t)0x60)

Definition at line 504 of file stm8l15x.h.

#define RTC_CALRL_CALM   ((uint8_t)0xFF)

Definition at line 508 of file stm8l15x.h.

#define RTC_CR1_BYPSHAD   ((uint8_t)0x10)

Definition at line 420 of file stm8l15x.h.

Referenced by RTC_BypassShadowCmd(), RTC_SetDate(), and RTC_SetTime().

#define RTC_CR1_FMT   ((uint8_t)0x40)

Definition at line 417 of file stm8l15x.h.

Referenced by RTC_Init(), RTC_SetAlarm(), and RTC_SetTime().

#define RTC_CR1_RATIO   ((uint8_t)0x20)

Definition at line 418 of file stm8l15x.h.

Referenced by RTC_RatioCmd().

#define RTC_CR1_WUCKSEL   ((uint8_t)0x07)

Definition at line 419 of file stm8l15x.h.

Referenced by RTC_WakeUpClockConfig().

#define RTC_CR2_ALRAE   ((uint8_t)0x01)

Definition at line 427 of file stm8l15x.h.

Referenced by RTC_AlarmCmd(), and RTC_AlarmSubSecondConfig().

#define RTC_CR2_ALRAIE   ((uint8_t)0x10)

Definition at line 425 of file stm8l15x.h.

#define RTC_CR2_ALRIE   ((uint8_t)0x20)

Definition at line 428 of file stm8l15x.h.

#define RTC_CR2_WUTE   ((uint8_t)0x04)

Definition at line 426 of file stm8l15x.h.

Referenced by RTC_WakeUpClockConfig(), and RTC_WakeUpCmd().

#define RTC_CR2_WUTIE   ((uint8_t)0x40)

Definition at line 424 of file stm8l15x.h.

#define RTC_CR3_ADD1H   ((uint8_t)0x01)

Definition at line 439 of file stm8l15x.h.

#define RTC_CR3_BCK   ((uint8_t)0x04)

Definition at line 437 of file stm8l15x.h.

Referenced by RTC_DayLightSavingConfig(), and RTC_GetStoreOperation().

#define RTC_CR3_COE   ((uint8_t)0x80)

Definition at line 433 of file stm8l15x.h.

Referenced by RTC_CalibOutputCmd().

#define RTC_CR3_COSEL   ((uint8_t)0x08)

Definition at line 436 of file stm8l15x.h.

Referenced by RTC_CalibOutputConfig().

#define RTC_CR3_OSEL   ((uint8_t)0x60)

Definition at line 434 of file stm8l15x.h.

Referenced by RTC_OutputConfig().

#define RTC_CR3_POL   ((uint8_t)0x10)

Definition at line 435 of file stm8l15x.h.

Referenced by RTC_OutputConfig().

#define RTC_CR3_SUB1H   ((uint8_t)0x02)

Definition at line 438 of file stm8l15x.h.

#define RTC_DR1_DT   ((uint8_t)0x30)

Definition at line 404 of file stm8l15x.h.

#define RTC_DR1_DU   ((uint8_t)0x0F)

Definition at line 405 of file stm8l15x.h.

#define RTC_DR2_MT   ((uint8_t)0x10)

Definition at line 409 of file stm8l15x.h.

Referenced by RTC_GetDate().

#define RTC_DR2_MU   ((uint8_t)0x0F)

Definition at line 410 of file stm8l15x.h.

Referenced by RTC_GetDate().

#define RTC_DR2_WDU   ((uint8_t)0xE0)

Definition at line 408 of file stm8l15x.h.

Referenced by RTC_GetDate().

#define RTC_DR3_YT   ((uint8_t)0xF0)

Definition at line 413 of file stm8l15x.h.

#define RTC_DR3_YU   ((uint8_t)0x0F)

Definition at line 414 of file stm8l15x.h.

#define RTC_ISR1_ALRAWF   ((uint8_t)0x01)

Definition at line 450 of file stm8l15x.h.

Referenced by RTC_AlarmCmd().

#define RTC_ISR1_INIT   ((uint8_t)0x80)
#define RTC_ISR1_INITF   ((uint8_t)0x40)

Definition at line 444 of file stm8l15x.h.

Referenced by RTC_AlarmSubSecondConfig(), and RTC_EnterInitMode().

#define RTC_ISR1_INITS   ((uint8_t)0x10)

Definition at line 446 of file stm8l15x.h.

#define RTC_ISR1_RECALPF   ((uint8_t)0x02)

Definition at line 449 of file stm8l15x.h.

Referenced by RTC_DeInit(), and RTC_SmoothCalibConfig().

#define RTC_ISR1_RSF   ((uint8_t)0x20)

Definition at line 445 of file stm8l15x.h.

Referenced by RTC_WaitForSynchro().

#define RTC_ISR1_SHPF   ((uint8_t)0x08)

Definition at line 447 of file stm8l15x.h.

Referenced by RTC_SynchroShiftConfig().

#define RTC_ISR1_WUTWF   ((uint8_t)0x04)

Definition at line 448 of file stm8l15x.h.

Referenced by RTC_DeInit(), and RTC_WakeUpCmd().

#define RTC_ISR2_ALRAF   ((uint8_t)0x01)

Definition at line 455 of file stm8l15x.h.

#define RTC_ISR2_TAMP1F   ((uint8_t)0x20)

Definition at line 458 of file stm8l15x.h.

#define RTC_ISR2_TAMP2F   ((uint8_t)0x40)

Definition at line 457 of file stm8l15x.h.

#define RTC_ISR2_TAMP3F   ((uint8_t)0x80)

Definition at line 456 of file stm8l15x.h.

#define RTC_ISR2_WUTF   ((uint8_t)0x04)

Definition at line 454 of file stm8l15x.h.

#define RTC_SHIFTRH_ADD1S   ((uint8_t)0x80)

Definition at line 461 of file stm8l15x.h.

#define RTC_SHIFTRH_SUBFS   ((uint8_t)0x7F)

Definition at line 462 of file stm8l15x.h.

#define RTC_SHIFTRL_SUBFS   ((uint8_t)0xFF)

Definition at line 465 of file stm8l15x.h.

#define RTC_TCR1_TAMP1E   ((uint8_t)0x02)

Definition at line 516 of file stm8l15x.h.

#define RTC_TCR1_TAMP1LEVEL   ((uint8_t)0x04)

Definition at line 515 of file stm8l15x.h.

#define RTC_TCR1_TAMP2E   ((uint8_t)0x08)

Definition at line 514 of file stm8l15x.h.

#define RTC_TCR1_TAMP2LEVEL   ((uint8_t)0x10)

Definition at line 513 of file stm8l15x.h.

#define RTC_TCR1_TAMP3E   ((uint8_t)0x20)

Definition at line 512 of file stm8l15x.h.

#define RTC_TCR1_TAMP3LEVEL   ((uint8_t)0x40)

Definition at line 511 of file stm8l15x.h.

#define RTC_TCR1_TAMPIE   ((uint8_t)0x01)

Definition at line 517 of file stm8l15x.h.

Referenced by RTC_ITConfig().

#define RTC_TCR2_TAMPFLT   ((uint8_t)0x18)

Definition at line 522 of file stm8l15x.h.

Referenced by RTC_TamperFilterConfig().

#define RTC_TCR2_TAMPFREQ   ((uint8_t)0x07)

Definition at line 523 of file stm8l15x.h.

Referenced by RTC_TamperSamplingFreqConfig().

#define RTC_TCR2_TAMPPRCH   ((uint8_t)0x60)

Definition at line 521 of file stm8l15x.h.

Referenced by RTC_TamperPinsPrechargeDuration().

#define RTC_TCR2_TAMPPUDIS   ((uint8_t)0x80)

Definition at line 520 of file stm8l15x.h.

Referenced by RTC_TamperPinsPrechargeDuration().

#define RTC_TR1_ST   ((uint8_t)0x70)

Definition at line 391 of file stm8l15x.h.

#define RTC_TR1_SU   ((uint8_t)0x0F)

Definition at line 392 of file stm8l15x.h.

#define RTC_TR2_MNT   ((uint8_t)0x70)

Definition at line 395 of file stm8l15x.h.

#define RTC_TR2_MNU   ((uint8_t)0x0F)

Definition at line 396 of file stm8l15x.h.

#define RTC_TR3_HT   ((uint8_t)0x30)

Definition at line 400 of file stm8l15x.h.

#define RTC_TR3_HU   ((uint8_t)0x0F)

Definition at line 401 of file stm8l15x.h.

#define RTC_TR3_PM   ((uint8_t)0x40)

Definition at line 399 of file stm8l15x.h.

Referenced by RTC_GetTime().

#define RTC_WPR_DisableKey1   ((uint8_t)0xCA)

Definition at line 528 of file stm8l15x.h.

Referenced by RTC_WriteProtectionCmd().

#define RTC_WPR_DisableKey2   ((uint8_t)0x53)

Definition at line 529 of file stm8l15x.h.

Referenced by RTC_WriteProtectionCmd().

#define RTC_WPR_EnableKey   ((uint8_t)0xFF)

Definition at line 527 of file stm8l15x.h.

Referenced by RTC_WriteProtectionCmd().

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com