Soldered SD Card Arduino Library
1.0.0
Easily read and write files to and form the SD card breakout! A fork of the original SDFat library by Bill Greiman.
Toggle main menu visibility
Loading...
Searching...
No Matches
BlockDeviceInterface.h
Go to the documentation of this file.
1
29
#ifndef BlockDeviceInterface_h
30
#define BlockDeviceInterface_h
31
#include "
../SdFatConfig.h
"
32
#include <stddef.h>
33
#include <stdint.h>
38
class
BlockDeviceInterface
39
{
40
public
:
41
virtual
~BlockDeviceInterface
()
42
{
43
}
44
49
virtual
bool
isBusy
() = 0;
57
virtual
bool
readSector
(uint32_t sector, uint8_t *dst) = 0;
58
67
virtual
bool
readSectors
(uint32_t sector, uint8_t *dst,
size_t
ns) = 0;
68
70
virtual
uint32_t
sectorCount
() = 0;
71
75
virtual
bool
syncDevice
() = 0;
76
84
virtual
bool
writeSector
(uint32_t sector,
const
uint8_t *src) = 0;
85
94
virtual
bool
writeSectors
(uint32_t sector,
const
uint8_t *src,
size_t
ns) = 0;
95
};
96
#endif
// BlockDeviceInterface_h
SdFatConfig.h
configuration definitions
BlockDeviceInterface
BlockDeviceInterface class.
Definition
BlockDeviceInterface.h:39
BlockDeviceInterface::sectorCount
virtual uint32_t sectorCount()=0
BlockDeviceInterface::syncDevice
virtual bool syncDevice()=0
BlockDeviceInterface::readSector
virtual bool readSector(uint32_t sector, uint8_t *dst)=0
BlockDeviceInterface::~BlockDeviceInterface
virtual ~BlockDeviceInterface()
Definition
BlockDeviceInterface.h:41
BlockDeviceInterface::writeSectors
virtual bool writeSectors(uint32_t sector, const uint8_t *src, size_t ns)=0
BlockDeviceInterface::writeSector
virtual bool writeSector(uint32_t sector, const uint8_t *src)=0
BlockDeviceInterface::isBusy
virtual bool isBusy()=0
BlockDeviceInterface::readSectors
virtual bool readSectors(uint32_t sector, uint8_t *dst, size_t ns)=0
src
common
BlockDeviceInterface.h
Generated on
for Soldered SD Card Arduino Library by
1.17.0. Dark theme by
Tilen Majerle
. All rights reserved. Copyright:
Soldered