This commit is contained in:
2022-11-13 22:53:56 +01:00
commit 0598c09364
1324 changed files with 4446777 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#ifndef SDCARD_SIM_H
#define SDCARD_SIM_H
#include "base.h"
class sdcardSimulation : public simBaseComponent
{
private:
const char* basePath;
public:
sdcardSimulation(const char* basePath, int errorRate=0);
virtual ~sdcardSimulation();
void ISP_SPDR_callback(uint8_t oldValue, uint8_t& newValue);
void read_sd_block(int nr);
int sd_state;
uint8_t sd_buffer[1024];
int sd_buffer_pos;
int sd_read_block_nr;
int errorRate;
};
#endif//SDCARD_SIM_H