28 lines
1.0 KiB
C
28 lines
1.0 KiB
C
/*
|
||
* Единое представление календарного времени и логика RTC с резервированием. Проверка полей
|
||
* календаря отделена от регистров часов и backup-памяти; аппаратные операции выполняются через
|
||
* контракт rtc_service_port.
|
||
*/
|
||
|
||
/**
|
||
****************************************************************************
|
||
* @file rtc_service.h
|
||
* @brief Портируемый модуль RTC Service.
|
||
****************************************************************************
|
||
*/
|
||
|
||
#ifndef __RTC_SERVICE_H
|
||
#define __RTC_SERVICE_H
|
||
|
||
#include "rtc_service_types.h"
|
||
|
||
RtcService_Result RtcService_Init(const RtcService_InitConfig* cfg, RtcService_Status* status);
|
||
|
||
RtcService_Result RtcService_GetDateTime(RtcService_DateTime* dt);
|
||
|
||
RtcService_Result RtcService_SetDateTime(const RtcService_DateTime* dt);
|
||
|
||
const char* RtcService_ResultToText(RtcService_Result res);
|
||
|
||
#endif /* __RTC_SERVICE_H */
|