Public functions.
More...
Public functions.
◆ HAL_GetTick()
uint32_t HAL_GetTick |
( |
void |
| ) |
|
HAL_GetTick RTC-based replacement.
- Return values
-
◆ ketCube_RTC_AlarmAEventExec()
void ketCube_RTC_AlarmAEventExec |
( |
void |
| ) |
|
Alarm A callback.
- Parameters
-
- Return values
-
◆ ketCube_RTC_BKUPRead()
void ketCube_RTC_BKUPRead |
( |
uint32_t * |
Data0, |
|
|
uint32_t * |
Data1 |
|
) |
| |
◆ ketCube_RTC_BKUPWrite()
void ketCube_RTC_BKUPWrite |
( |
uint32_t |
Data0, |
|
|
uint32_t |
Data1 |
|
) |
| |
◆ ketCube_RTC_DelayMs()
void ketCube_RTC_DelayMs |
( |
uint32_t |
delay | ) |
|
a delay of delay ms by polling RTC
- Parameters
-
- Return values
-
◆ ketCube_RTC_GetCalendarTime()
uint32_t ketCube_RTC_GetCalendarTime |
( |
uint16_t * |
mSeconds | ) |
|
Get system time.
- Parameters
-
- Returns
- uint32_t seconds
◆ ketCube_RTC_getMcuWakeUpTime()
int16_t ketCube_RTC_getMcuWakeUpTime |
( |
void |
| ) |
|
◆ ketCube_RTC_GetMinimumTimeout()
uint32_t ketCube_RTC_GetMinimumTimeout |
( |
void |
| ) |
|
returns the wake up time in ticks
- Parameters
-
- Return values
-
◆ ketCube_RTC_GetSysTime()
uint32_t ketCube_RTC_GetSysTime |
( |
void |
| ) |
|
Get system time.
- Returns
- uint32_t seconds
◆ ketCube_RTC_GetTimerContext()
uint32_t ketCube_RTC_GetTimerContext |
( |
void |
| ) |
|
Get the RTC timer Reference.
- Parameters
-
- Return values
-
◆ ketCube_RTC_GetTimerElapsedTime()
uint32_t ketCube_RTC_GetTimerElapsedTime |
( |
void |
| ) |
|
Get the RTC timer elapsed time since the last Alarm was set.
- Parameters
-
- Return values
-
◆ ketCube_RTC_GetTimerValue()
uint32_t ketCube_RTC_GetTimerValue |
( |
void |
| ) |
|
Get the RTC timer value.
- Parameters
-
- Return values
-
◆ ketCube_RTC_Init()
Initializes the RTC timer.
- Note
- The timer is based on the RTC
- Parameters
-
- Return values
-
◆ ketCube_RTC_IrqHandler()
void ketCube_RTC_IrqHandler |
( |
void |
| ) |
|
RTC IRQ Handler on the RTC Alarm.
- Parameters
-
- Return values
-
◆ ketCube_RTC_ms2Tick()
uint32_t ketCube_RTC_ms2Tick |
( |
TimerTime_t |
timeMicroSec | ) |
|
converts time in ms to time in ticks
- Parameters
-
- Return values
-
returns | time in timer ticks |
◆ ketCube_RTC_SetAlarm()
void ketCube_RTC_SetAlarm |
( |
uint32_t |
timeout | ) |
|
Set the alarm.
- Note
- The alarm is set at now (read in this funtion) + timeout
- Parameters
-
timeout | Duration of the Timer ticks |
◆ ketCube_RTC_setMcuWakeUpTime()
void ketCube_RTC_setMcuWakeUpTime |
( |
void |
| ) |
|
calculates the wake up time between wake up and mcu start
- Note
- resulotion in RTC_ALARM_TIME_BASE in timer ticks
- Parameters
-
- Return values
-
◆ ketCube_RTC_SetTimerContext()
uint32_t ketCube_RTC_SetTimerContext |
( |
void |
| ) |
|
set Time Reference set also the RTC_DateStruct and RTC_TimeStruct
- Parameters
-
- Return values
-
◆ ketCube_RTC_StopAlarm()
void ketCube_RTC_StopAlarm |
( |
void |
| ) |
|
Stop the Alarm.
- Parameters
-
- Return values
-
◆ ketCube_RTC_Tick2ms()
TimerTime_t ketCube_RTC_Tick2ms |
( |
uint32_t |
tick | ) |
|
converts time in ticks to time in ms
- Parameters
-
- Return values
-
returns | time in milliseconds |