MCPcopy Create free account
hub / github.com/andysworkshop/stm32plus / clusterToSector

Method clusterToSector

lib/src/filesystem/fat/FatFileSystem.cpp:713–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

711 */
712
713 uint32_t FatFileSystem::clusterToSector(uint32_t clusterNumber) const {
714 return _firstDataSector + ((clusterNumber - 2) * _bootSector.BPB_SecPerClus);
715 }
716
717 /**
718 * Get the first sector of the root directory.

Callers 2

currentSectorNumberMethod · 0.80
allocateBlocksMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected