Block cache.
More...
#include <FatVolume.h>
- Returns
- Cache block address.
Initialize the cache.
- Parameters
-
void FatCache::invalidate |
( |
| ) |
|
|
inline |
Invalidate current cache block.
uint32_t FatCache::lbn |
( |
| ) |
|
|
inline |
- Returns
- Logical block number for cached block.
cache_t * FatCache::read |
( |
uint32_t |
lbn, |
|
|
uint8_t |
option |
|
) |
| |
Read a block into the cache.
- Parameters
-
[in] | lbn | Block to read. |
[in] | option | mode for cached block. |
- Returns
- Address of cached block.
Write current block if dirty.
- Returns
- true for success else false.
uint8_t const FatCache::CACHE_FOR_READ = 0 |
|
static |
const uint8_t FatCache::CACHE_OPTION_NO_READ = 4 |
|
static |
Sync existing block but do not read new block.
Reserve cache block for write - do not read from block device.
const uint8_t FatCache::CACHE_STATUS_DIRTY = 1 |
|
static |
const uint8_t FatCache::CACHE_STATUS_MIRROR_FAT = 2 |
|
static |
Cashed block is FAT entry and must be mirrored in second FAT.
The documentation for this class was generated from the following files:
- Arduino/libraries/SdFat/src/FatLib/FatVolume.h
- Arduino/libraries/SdFat/src/FatLib/FatVolume.cpp