RtcInterface/Inc/RtcIO.h

23 lines
452 B
C

//
// Created by cfif on 17.11.22.
//
#ifndef MODULE_RTCIO_H
#define MODULE_RTCIO_H
#include "stdint.h"
#include <time.h>
typedef uint16_t (*RtcIOTransaction )(void *env, time_t *timestamp);
typedef uint16_t (*RtcIOTransactionTM )(void *env, struct tm *timestampTM);
typedef struct {
void *env;
RtcIOTransaction set;
RtcIOTransaction get;
RtcIOTransactionTM setTM;
RtcIOTransactionTM getTM;
} tRtcIO;
#endif //MODULE_RTCIO_H