HARMcksL: ARM HAL toolbox (yet STM32 oriented) 1.6
SMFSW collection of HAL hacks for STM32
Loading...
Searching...
No Matches
RTC_ex.c File Reference

Basic RTC handling. More...

#include "sarmfsw.h"
#include "time_utils.h"
#include "RTC_ex.h"
Include dependency graph for RTC_ex.c:

Functions

FctERR RTC_SetTime (const DateTime *const time_new)
 Sends new time to RTC peripheral.
 
FctERR RTC_GetTime (DateTime *const time_now)
 Get time from RTC peripheral.
 

Detailed Description

Basic RTC handling.

Author
SMFSW

Function Documentation

◆ RTC_GetTime()

FctERR RTC_GetTime ( DateTime *const time_now)

Get time from RTC peripheral.

Parameters
[in,out]time_now- pointer to DateTime instance
Returns
FctERR - error code

◆ RTC_SetTime()

FctERR RTC_SetTime ( const DateTime *const time_new)

Sends new time to RTC peripheral.

Parameters
[in]time_new- pointer to DateTime instance
Returns
FctERR - error code
Here is the call graph for this function: