Format a FAT volume.
More...
#include <FatFormatter.h>
◆ format()
| bool FatFormatter::format |
( |
BlockDevice * |
dev, |
|
|
uint8_t * |
secBuffer, |
|
|
print_t * |
pr = nullptr |
|
) |
| |
Format a FAT volume.
- Parameters
-
| [in] | dev | Block device for volume. |
| [in] | secBuffer | buffer for writing to volume. |
| [in] | pr | Print device for progress output. |
- Returns
- true for success or false for failure.
◆ initFatDir()
| bool FatFormatter::initFatDir |
( |
uint8_t |
fatType, |
|
|
uint32_t |
sectorCount |
|
) |
| |
|
private |
◆ initPbs()
| void FatFormatter::initPbs |
( |
| ) |
|
|
private |
◆ makeFat16()
| bool FatFormatter::makeFat16 |
( |
| ) |
|
|
private |
◆ makeFat32()
| bool FatFormatter::makeFat32 |
( |
| ) |
|
|
private |
◆ writeMbr()
| bool FatFormatter::writeMbr |
( |
| ) |
|
|
private |
◆ m_capacityMB
| uint32_t FatFormatter::m_capacityMB |
|
private |
◆ m_dataStart
| uint32_t FatFormatter::m_dataStart |
|
private |
◆ m_dev
◆ m_fatSize
| uint32_t FatFormatter::m_fatSize |
|
private |
◆ m_fatStart
| uint32_t FatFormatter::m_fatStart |
|
private |
◆ m_partType
| uint8_t FatFormatter::m_partType |
|
private |
◆ m_pr
◆ m_relativeSectors
| uint32_t FatFormatter::m_relativeSectors |
|
private |
◆ m_reservedSectorCount
| uint16_t FatFormatter::m_reservedSectorCount |
|
private |
◆ m_secBuf
| uint8_t* FatFormatter::m_secBuf |
|
private |
◆ m_sectorCount
| uint32_t FatFormatter::m_sectorCount |
|
private |
◆ m_sectorsPerCluster
| uint8_t FatFormatter::m_sectorsPerCluster |
|
private |
◆ m_totalSectors
| uint32_t FatFormatter::m_totalSectors |
|
private |
The documentation for this class was generated from the following files: