![]() |
Kinetis Bootloader
2.0.0
Common bootloader for Kinetis devices
|
Data Structures | |
| union | fat_directory_entry_t |
| FAT filesystem directory entry. More... | |
| struct | fat_directory_entry_t.entry |
| Standard file or directory entry with a short name. More... | |
| struct | fat_directory_entry_t.longName |
| Long file name directory entry. More... | |
Enumerations | |
| enum | _fat_directory_attributes { kReadOnlyAttribute = 0x01, kHiddenAttribute = 0x02, kSystemAttribute = 0x04, kVolumeIdAttribute = 0x08, kDirectoryAttribute = 0x10, kArchiveAttribute = 0x20, kLongNameAttribute = kReadOnlyAttribute | kHiddenAttribute | kSystemAttribute | kVolumeIdAttribute, kLastLongNameEntry = 0x40, kFreeEntryMarkerByte = 0xe5, kReadOnlyAttribute = 0x01, kHiddenAttribute = 0x02, kSystemAttribute = 0x04, kVolumeIdAttribute = 0x08, kDirectoryAttribute = 0x10, kArchiveAttribute = 0x20, kLongNameAttribute = kReadOnlyAttribute | kHiddenAttribute | kSystemAttribute | kVolumeIdAttribute, kLastLongNameEntry = 0x40, kFreeEntryMarkerByte = 0xe5 } |
| FAT filesystem directory entry attributes. More... | |
| enum | _fat_directory_attributes { kReadOnlyAttribute = 0x01, kHiddenAttribute = 0x02, kSystemAttribute = 0x04, kVolumeIdAttribute = 0x08, kDirectoryAttribute = 0x10, kArchiveAttribute = 0x20, kLongNameAttribute = kReadOnlyAttribute | kHiddenAttribute | kSystemAttribute | kVolumeIdAttribute, kLastLongNameEntry = 0x40, kFreeEntryMarkerByte = 0xe5, kReadOnlyAttribute = 0x01, kHiddenAttribute = 0x02, kSystemAttribute = 0x04, kVolumeIdAttribute = 0x08, kDirectoryAttribute = 0x10, kArchiveAttribute = 0x20, kLongNameAttribute = kReadOnlyAttribute | kHiddenAttribute | kSystemAttribute | kVolumeIdAttribute, kLastLongNameEntry = 0x40, kFreeEntryMarkerByte = 0xe5 } |
| FAT filesystem directory entry attributes. More... | |
| union fat_directory_entry_t |
FAT filesystem directory entry.
This union can represent either a standard file or directory entry, or a long file name entry.
The upper 2 bits of the attribute byte are reserved and should always be set to 0 when a file is created and never modify or look at it after that.
The ntReserved field must be set to 0 when file is created and never modified or look at it after that.
The creationTimeTenths field actually contains a count of tenths of a second. The granularity of the seconds part of the creationTime is two seconds so this field is a count of tenths of a second and its valid value range is 0-199 inclusive.
Note that there is no last access time, only a date. This is the date of last read or write. In the case of a write, this should be set to the same date as DIR_WrtDate.
The firstClusterHigh field will always be 0 for a FAT12 or FAT16 volume.
Note that file creation is considered a write.
| Data Fields | ||
|---|---|---|
| struct fat_directory_entry_t | entry | Standard file or directory entry with a short name. |
| struct fat_directory_entry_t | entry | Standard file or directory entry with a short name. |
| struct fat_directory_entry_t | longName | Long file name directory entry. |
| struct fat_directory_entry_t | longName | Long file name directory entry. |
| struct fat_directory_entry_t.entry |
Standard file or directory entry with a short name.
| struct fat_directory_entry_t.longName |
Long file name directory entry.
| Data Fields | ||
|---|---|---|
| uint8_t | attributes | Must be set to kLongNameAttribute. |
| uint8_t | checksum | Checksum of the short file name. |
| uint8_t | entryType | Should be 0 for long file name directory entries. |
| uint16_t | firstClusterLow | Must be set to 0 for compatibility. |
| wchar_t | name1[5] | Characters 1-5 of the long name. |
| wchar_t | name2[6] | Characters 6-11 of the long name. |
| wchar_t | name3[2] | Character 12-13 of the long name. |
| uint8_t | order | Order of this long file name entry. May be masked with kLastLongNameEntry. |
FAT filesystem directory entry attributes.
FAT filesystem directory entry attributes.