KETCube
Macros | Functions
ketCube_rtc.h File Reference
#include "utilities.h"

Go to the source code of this file.

Macros

#define RTC_TEMP_COEFFICIENT   ( -0.035 )
 Temperature coefficient of the clock source. More...
 
#define RTC_TEMP_DEV_COEFFICIENT   ( 0.0035 )
 Temperature coefficient deviation of the clock source. More...
 
#define RTC_TEMP_TURNOVER   ( 25.0 )
 Turnover temperature of the clock source. More...
 
#define RTC_TEMP_DEV_TURNOVER   ( 5.0 )
 Turnover temperature deviation of the clock source. More...
 

Functions

ketCube_cfg_DrvError_t ketCube_RTC_Init (void)
 Initializes the RTC timer. More...
 
void ketCube_RTC_StopAlarm ()
 Stop the Alarm. More...
 
uint32_t ketCube_RTC_GetMinimumTimeout ()
 returns the wake up time in ticks More...
 
void ketCube_RTC_SetAlarm (uint32_t timeout)
 Set the alarm. More...
 
uint32_t ketCube_RTC_GetTimerElapsedTime (void)
 Get the RTC timer elapsed time since the last Alarm was set. More...
 
uint32_t ketCube_RTC_GetTimerValue (void)
 Get the RTC timer value. More...
 
uint32_t ketCube_RTC_SetTimerContext (void)
 set Time Reference set also the RTC_DateStruct and RTC_TimeStruct More...
 
uint32_t ketCube_RTC_GetTimerContext (void)
 Get the RTC timer Reference. More...
 
void ketCube_RTC_DelayMs (uint32_t delay)
 a delay of delay ms by polling RTC More...
 
void ketCube_RTC_setMcuWakeUpTime ()
 calculates the wake up time between wake up and mcu start More...
 
int16_t ketCube_RTC_getMcuWakeUpTime (void)
 
uint32_t ketCube_RTC_ms2Tick (TimerTime_t timeMicroSec)
 converts time in ms to time in ticks More...
 
TimerTime_t ketCube_RTC_Tick2ms (uint32_t tick)
 converts time in ticks to time in ms More...
 
uint32_t ketCube_RTC_GetCalendarTime (uint16_t *subSeconds)
 Get system time. More...
 
uint32_t ketCube_RTC_GetSysTime (void)
 Get system time. More...
 
void ketCube_RTC_BKUPWrite (uint32_t Data0, uint32_t Data1)
 
void ketCube_RTC_BKUPRead (uint32_t *Data0, uint32_t *Data1)
 
uint32_t HAL_GetTick (void)
 HAL_GetTick RTC-based replacement. More...
 
void ketCube_RTC_IrqHandler (void)
 RTC IRQ Handler on the RTC Alarm. More...
 
void ketCube_RTC_AlarmAEventExec (void)
 Alarm A callback. More...