28 lines
678 B
C
28 lines
678 B
C
//
|
|
// Created by cfif on 14.02.23.
|
|
//
|
|
|
|
#ifndef GONEC_GSM_FILE_LOGGER_H
|
|
#define GONEC_GSM_FILE_LOGGER_H
|
|
#include "fs_interface.h"
|
|
#include "file_logger.h"
|
|
#include <DeviceStorageIni.h>
|
|
|
|
typedef struct {
|
|
tFs *fs;
|
|
tDeviceStorageIni *store;
|
|
char dirlog[64];
|
|
char filename[64];
|
|
char filename2[64];
|
|
osMutexId_t access;
|
|
tRtcIO *rtcIo;
|
|
time_t timestampWriteFileLogger;
|
|
} tFileLogger;
|
|
|
|
void FileLogger_Init(tFileLogger *env, tDeviceStorageIni *store, tFs *fs, tRtcIO *rtc, osMutexId_t access_log, char *dirlog);
|
|
tSerialPortIO FileLogger_GetSerialIo(tFileLogger *env);
|
|
|
|
uint32_t getStateWriteFileLogger(tFileLogger *env);
|
|
|
|
#endif //GONEC_GSM_FILE_LOGGER_H
|