101 #if defined(__cplusplus)
188 uint32_t tmp = base->
TSR;
190 return (uint32_t) (tmp);
221 uint32_t tmp = base->
TPR;
223 return (uint16_t) (tmp);
255 uint32_t tmp = base->
TAR;
257 return (uint32_t) (tmp);
296 int8_t * compensationValue,
297 uint8_t * compensationInterval)
299 uint32_t tmp = base->
TCR;
333 int8_t compensationValue,
334 uint8_t compensationInterval)
336 uint32_t tmp = base->
TCR;
360 int8_t * compensationValue,
361 uint8_t * compensationInterval)
363 uint32_t tmp = base->
TCR;
386 uint32_t tmp = base->
CR;
406 uint32_t tmp = base->
CR;
422 uint32_t tmp = base->
CR;
424 tmp |=
RTC_CR_UM((updateEnable ? 1UL : 0UL));
439 uint32_t tmp = base->
CR;
441 return ((tmp == 1U) ?
true :
false);
456 uint32_t tmp = base->
CR;
473 uint32_t tmp = base->
CR;
475 return ((tmp == 1U) ?
true :
false);
486 uint32_t tmp = base->
CR;
500 uint32_t tmp = base->
CR;
525 uint32_t tmp = base->
SR;
542 uint32_t tmp = base->
SR;
544 return ((tmp == 1U) ?
true :
false);
560 uint32_t tmp = base->
SR;
562 return ((tmp == 1U) ?
true :
false);
579 uint32_t tmp = base->
SR;
581 return ((tmp == 1U) ?
true :
false);
600 uint32_t tmp = base->
SR;
602 return ((tmp == 1U) ?
true :
false);
620 uint32_t tmp = base->
LR;
636 uint32_t tmp = base->
LR;
638 return ((tmp == 1U) ?
false :
true);
652 uint32_t tmp = base->
LR;
668 uint32_t tmp = base->
LR;
670 return ((tmp == 1U) ?
false :
true);
684 uint32_t tmp = base->
LR;
686 return ((tmp == 1U) ?
false :
true);
700 uint32_t tmp = base->
LR;
716 uint32_t tmp = base->
LR;
718 return ((tmp == 1U) ?
false :
true);
733 uint32_t tmp = base->
LR;
752 uint32_t tmp = base->
IER;
768 uint32_t tmp = base->
IER;
816 uint32_t tmp = base->
IER;
833 uint32_t tmp = base->
IER;
835 return ((tmp == 1U) ?
true :
false);
849 uint32_t tmp = base->
IER;
866 uint32_t tmp = base->
IER;
868 return ((tmp == 1U) ?
true :
false);
882 uint32_t tmp = base->
IER;
899 uint32_t tmp = base->
IER;
901 return ((tmp == 1U) ?
true :
false);
915 uint32_t tmp = base->
IER;
932 uint32_t tmp = base->
IER;
934 return ((tmp == 1U) ?
true :
false);
939 #if defined(__cplusplus)
status_t RTC_HAL_ConfigureClockOut(RTC_Type *const base, rtc_clk_out_config_t config)
This function configures the Clock Out pin source.
#define RTC_IER_TAIE_MASK
static rtc_second_int_cfg_t RTC_HAL_GetTimeSecondsIntConf(const RTC_Type *const base)
Get Time Seconds interrupt configuration.
static bool RTC_HAL_GetNonSupervisorAccess(const RTC_Type *const base)
Get Non-Supervisor access mode.
static void RTC_HAL_LockRegisterLock(RTC_Type *const base)
Lock the Lock Register.
status_t RTC_HAL_Disable(RTC_Type *const base)
Disable RTC instance counter.
#define RTC_TPR_TPR_SHIFT
#define RTC_TCR_TCR_SHIFT
rtc_clk_out_config_t
RTC CLKOUT pin configuration Implements : rtc_clk_out_config_t_Class.
static void RTC_HAL_SetTimeSecondsIntConf(RTC_Type *const base, rtc_second_int_cfg_t intCfg)
Configure Time Seconds interrupt.
#define RTC_IER_TSIC_SHIFT
rtc_second_int_cfg_t
RTC Seconds interrupt configuration Implements : rtc_second_int_cfg_t_Class.
static bool RTC_HAL_GetLockRegisterLock(const RTC_Type *const base)
Get the Lock Register Lock state.
#define RTC_IER_TOIE_MASK
#define RTC_TCR_CIC_SHIFT
static void RTC_HAL_SetUpdateMode(RTC_Type *const base, bool updateEnable)
Set Update Mode of the registers when locked.
static void RTC_HAL_ControlRegisterLock(RTC_Type *const base)
Lock the Control Register.
static bool RTC_HAL_GetTimeInvalidFlag(const RTC_Type *const base)
Get Time Invalid flag.
static void RTC_HAL_SetTimeCompensation(RTC_Type *const base, int8_t compensationValue, uint8_t compensationInterval)
Set Time Compensation.
#define RTC_IER_TSIE_MASK
static void RTC_HAL_SetTimeSecondsIntEnable(RTC_Type *const base, bool enable)
Enable TimeSeconds interrupt.
static void RTC_HAL_StatusRegisterLock(RTC_Type *const base)
Lock the Status Register.
static void RTC_HAL_SetTimeCounterEnable(RTC_Type *const base, bool enable)
Enable or disable the Time counter.
static rtc_clk_select_t RTC_HAL_GetLPOSelect(const RTC_Type *const base)
Get the selected clock source for RTC prescaler.
static void RTC_HAL_SetTimeOverflowIntEnable(RTC_Type *const base, bool enable)
Enable TimeOverflow interrupt.
static uint16_t RTC_HAL_GetTimePrescalerRegister(const RTC_Type *const base)
Get Time Prescaler Register.
static bool RTC_HAL_GetTimeOverflowIntEnable(const RTC_Type *const base)
Get the TimeAlarm interrupt enable status.
rtc_clk_select_t
RTC clock select Implements : rtc_clk_select_t_Class.
status_t RTC_HAL_ConfigureRegisterLock(RTC_Type *const base, rtc_lock_register_select_t registerToConfig)
This function configures register lock status.
#define RTC_IER_TSIE_SHIFT
static void RTC_HAL_GetCurrentTimeCompensation(const RTC_Type *const base, int8_t *compensationValue, uint8_t *compensationInterval)
Get TimeCompensation Value and Interval.
static uint32_t RTC_HAL_GetTimeSecondsRegister(const RTC_Type *const base)
Get Time Seconds Register Value.
static void RTC_HAL_SetLPOSelect(RTC_Type *const base, rtc_clk_select_t clk_select)
Select clock source for RTC prescaler.
static void RTC_HAL_SetTimeAlarmRegister(RTC_Type *const base, uint32_t seconds)
Set Time Alarm Register.
status_t RTC_HAL_Enable(RTC_Type *const base)
Enable RTC instance counter.
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
static bool RTC_HAL_GetTimeAlarmFlag(const RTC_Type *const base)
Get the Time alarm flag.
#define RTC_IER_TIIE_SHIFT
static uint32_t RTC_HAL_GetTimeAlarmRegister(const RTC_Type *const base)
Get Time Alarm Register.
#define RTC_TCR_TCV_SHIFT
#define RTC_TAR_TAR_SHIFT
static bool RTC_HAL_GetTimeSecondsIntEnable(const RTC_Type *const base)
Get the TimeSeconds interrupt enable status.
#define RTC_CR_LPOS_SHIFT
static bool RTC_HAL_GetTimeInvalidIntEnable(const RTC_Type *const base)
Get the TimeInvalid interrupt enable status.
bool RTC_HAL_IsRegisterLocked(const RTC_Type *const base, rtc_lock_register_select_t reg)
This function gets register lock status.
#define RTC_TSR_TSR_SHIFT
static void RTC_HAL_SetNonSupervisorAccess(RTC_Type *const base, bool enable)
Set Non-Supervisor access mode.
static bool RTC_HAL_GetControlRegisterLock(const RTC_Type *const base)
Get the Control Register Lock state.
status_t RTC_HAL_SetTimeSecondsRegister(RTC_Type *const base, uint32_t seconds)
Set Time Seconds Register.
static void RTC_HAL_ClearSoftwareReset(RTC_Type *const base)
Clear Software reset flag.
static bool RTC_HAL_GetTimeCounterEnable(const RTC_Type *const base)
Get the Time Counter Enable value.
static void RTC_HAL_GetTimeCompensation(const RTC_Type *const base, int8_t *compensationValue, uint8_t *compensationInterval)
Get Time Compensation Value and Interval.
static bool RTC_HAL_GetUpdateMode(const RTC_Type *const base)
Get the Update Mode of the registers when locked.
static void RTC_HAL_SetTimeInvalidIntEnable(RTC_Type *const base, bool enable)
Enable TimeInvalid interrupt.
static bool RTC_HAL_GetTimeCompensationLock(const RTC_Type *const base)
Get the TimeCompensation Register Lock state.
static bool RTC_HAL_GetTimeAlarmIntEnable(const RTC_Type *const base)
Get the TimeAlarm interrupt enable status.
status_t RTC_HAL_Init(RTC_Type *const base)
Initialize RTC instance.
static bool RTC_HAL_GetStatusRegisterLock(const RTC_Type *const base)
Get the Status Register Lock state.
static void RTC_HAL_TimeCompensationLock(RTC_Type *const base)
Lock the TimeCompensation Register.
#define RTC_IER_TOIE_SHIFT
static bool RTC_HAL_GetTimeOverflowFlag(const RTC_Type *const base)
Get Time Overflow Flag.
#define RTC_IER_TIIE_MASK
static void RTC_HAL_SetSoftwareReset(RTC_Type *const base)
Trigger a software reset.
#define RTC_IER_TSIC_MASK
static void RTC_HAL_SetTimeAlarmIntEnable(RTC_Type *const base, bool enable)
Enable TimeAlarm interrupt.
rtc_lock_register_select_t
RTC register lock Implements : rtc_lock_register_select_t_Class.
#define RTC_TCR_CIR_SHIFT
status_t RTC_HAL_SetTimePrescalerRegister(RTC_Type *const base, uint16_t value)
Set Time Prescaler Register.
#define RTC_IER_TAIE_SHIFT