28 lines
657 B
C
28 lines
657 B
C
/*
|
|
* @file mmc_card.h
|
|
*
|
|
*
|
|
* @date Dec 30, 2013
|
|
* @author Kot_dnz
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "tunerstudio_io.h"
|
|
|
|
#define DOT_MLG ".mlg"
|
|
|
|
bool isLogFile(const char *fileName);
|
|
void initMmcCard(void);
|
|
bool isSdCardAlive(void);
|
|
void appendToLog(const char *line, size_t length);
|
|
|
|
void readLogFileContent(char *buffer, short fileId, short offset, short length);
|
|
|
|
void handleTsR(ts_channel_s *tsChannel, char *input);
|
|
void handleTsW(ts_channel_s *tsChannel, char *input);
|
|
|
|
#define LOCK_SD_SPI lockSpi(engineConfiguration->sdCardSpiDevice)
|
|
#define UNLOCK_SD_SPI unlockSpi(engineConfiguration->sdCardSpiDevice)
|