Files
templates/c/rtc-service/rtc_service.h

28 lines
1.0 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* Единое представление календарного времени и логика 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 */