Sector cache.  
 More...
#include <FatPartition.h>
◆ buffer()
- Returns
- Cache sector address. 
 
 
◆ dirty()
Set current sector dirty. 
 
 
◆ init()
Initialize the cache. 
- Parameters
- 
  
  
 
 
◆ invalidate()
  
  | 
        
          | void FatCache::invalidate | ( |  | ) |  |  | inline | 
 
Invalidate current cache sector. 
 
 
◆ isDirty()
  
  | 
        
          | bool FatCache::isDirty | ( |  | ) |  |  | inline | 
 
 
◆ read()
      
        
          | cache_t * FatCache::read | ( | uint32_t | sector, | 
        
          |  |  | uint8_t | option | 
        
          |  | ) |  |  | 
      
 
Read a sector into the cache. 
- Parameters
- 
  
    | [in] | sector | Sector to read. |  | [in] | option | mode for cached sector. |  
 
- Returns
- Address of cached sector. 
 
 
◆ sector()
  
  | 
        
          | uint32_t FatCache::sector | ( |  | ) |  |  | inline | 
 
- Returns
- Logical sector number for cached sector. 
 
 
◆ sync()
Write current sector if dirty. 
- Returns
- true for success or false for failure. 
 
 
◆ CACHE_FOR_READ
  
  | 
        
          | const uint8_t FatCache::CACHE_FOR_READ = 0 |  | static | 
 
 
◆ CACHE_FOR_WRITE
◆ CACHE_OPTION_NO_READ
  
  | 
        
          | const uint8_t FatCache::CACHE_OPTION_NO_READ = 4 |  | static | 
 
Sync existing sector but do not read new sector. 
 
 
◆ CACHE_RESERVE_FOR_WRITE
Reserve cache sector for write - do not read from sector device. 
 
 
◆ CACHE_STATUS_DIRTY
  
  | 
        
          | const uint8_t FatCache::CACHE_STATUS_DIRTY = 1 |  | static | 
 
 
◆ CACHE_STATUS_MASK
◆ CACHE_STATUS_MIRROR_FAT
  
  | 
        
          | const uint8_t FatCache::CACHE_STATUS_MIRROR_FAT = 2 |  | static | 
 
Cashed sector 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/FatPartition.h
- Arduino/libraries/SdFat/src/FatLib/FatPartition.cpp