2015-07-10 06:01:56 -07:00
|
|
|
/*
|
|
|
|
* @file mmc_card.h
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @date Dec 30, 2013
|
|
|
|
* @author Kot_dnz
|
2020-01-13 18:57:43 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
2020-04-01 16:00:56 -07:00
|
|
|
#pragma once
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2020-08-05 22:15:41 -07:00
|
|
|
#include "tunerstudio_io.h"
|
|
|
|
|
2020-08-06 19:05:26 -07:00
|
|
|
#define DOT_MLG ".mlg"
|
|
|
|
|
|
|
|
bool isLogFile(const char *fileName);
|
2015-07-10 06:01:56 -07:00
|
|
|
void initMmcCard(void);
|
|
|
|
bool isSdCardAlive(void);
|
|
|
|
|
2016-05-06 21:01:23 -07:00
|
|
|
void readLogFileContent(char *buffer, short fileId, short offset, short length);
|
|
|
|
|
2020-08-05 22:15:41 -07:00
|
|
|
void handleTsR(ts_channel_s *tsChannel, char *input);
|
|
|
|
void handleTsW(ts_channel_s *tsChannel, char *input);
|
2020-08-07 12:53:11 -07:00
|
|
|
|
|
|
|
#define LOCK_SD_SPI lockSpi(engineConfiguration->sdCardSpiDevice)
|
|
|
|
#define UNLOCK_SD_SPI unlockSpi(engineConfiguration->sdCardSpiDevice)
|