Prusa3d Marlin fork
Public Attributes | List of all members
directoryVFATEntry Struct Reference

VFAT long filename directory entry. More...

#include <SdFatStructs.h>

Public Attributes

uint8_t sequenceNumber
 
uint16_t name1 [5]
 
uint8_t attributes
 
uint8_t reservedNT
 
uint8_t checksum
 
uint16_t name2 [6]
 
uint16_t firstClusterLow
 
uint16_t name3 [2]
 

Detailed Description

directoryVFATEntries are found in the same list as normal directoryEntry. But have the attribute field set to DIR_ATT_LONG_NAME.

Long filenames are saved in multiple directoryVFATEntries. Each entry containing 13 UTF-16 characters.

Member Data Documentation

◆ attributes

uint8_t directoryVFATEntry::attributes

attributes (at the same location as in directoryEntry), always 0x0F

◆ checksum

uint8_t directoryVFATEntry::checksum

Checksum of the short 8.3 filename, can be used to checked if the file system as modified by a not-long-filename aware implementation.

◆ firstClusterLow

uint16_t directoryVFATEntry::firstClusterLow

firstClusterLow is always zero for longFilenames

◆ name1

uint16_t directoryVFATEntry::name1[5]

First set of UTF-16 characters

◆ name2

uint16_t directoryVFATEntry::name2[6]

Second set of UTF-16 characters

◆ name3

uint16_t directoryVFATEntry::name3[2]

Third set of UTF-16 characters

◆ reservedNT

uint8_t directoryVFATEntry::reservedNT

Reserved for use by Windows NT. Always 0.

◆ sequenceNumber

uint8_t directoryVFATEntry::sequenceNumber

Sequence number. Consists of 2 parts: bit 6: indicates first long filename block for the next file bit 0-4: the position of this long filename block (first block is 1)


The documentation for this struct was generated from the following file: