COSA
An Object-Oriented Platform for Arduino Programming
FAT16::dir_t Struct Reference

#include <FAT16.hh>

Collaboration diagram for FAT16::dir_t:
Collaboration graph

Public Attributes

uint8_t name [11]
 
uint8_t attributes
 
uint8_t reservedNT
 
uint8_t creationTimeTenths
 
uint16_t creationTime
 
uint16_t creationDate
 
uint16_t lastAccessDate
 
uint16_t firstClusterHigh
 
uint16_t lastWriteTime
 
uint16_t lastWriteDate
 
uint16_t firstClusterLow
 
uint32_t fileSize
 

Detailed Description

FAT short directory entry. Short means short 8.3 name, not the entry size.

Definition at line 338 of file FAT16.hh.

Member Data Documentation

uint8_t FAT16::dir_t::attributes

Entry attributes. The upper two bits of the attribute byte are reserved and should always be set to 0 when a file is created and never modified or looked at after that. See defines that begin with DIR_ATT_.

Definition at line 351 of file FAT16.hh.

uint16_t FAT16::dir_t::creationDate

Date file was created.

Definition at line 370 of file FAT16.hh.

uint16_t FAT16::dir_t::creationTime

Time file was created.

Definition at line 366 of file FAT16.hh.

uint8_t FAT16::dir_t::creationTimeTenths

The granularity of the seconds part of creationTime is 2 seconds so this field is a count of tenths of a second and its valid value range is 0-199 inclusive. (WHG note - seems to be hundredths)

Definition at line 362 of file FAT16.hh.

uint32_t FAT16::dir_t::fileSize

32-bit unsigned holding this file's size in bytes.

Definition at line 397 of file FAT16.hh.

uint16_t FAT16::dir_t::firstClusterHigh

High word of this entry's first cluster number (always 0 for a FAT12 or FAT16 volume).

Definition at line 381 of file FAT16.hh.

uint16_t FAT16::dir_t::firstClusterLow

Low word of this entry's first cluster number.

Definition at line 393 of file FAT16.hh.

uint16_t FAT16::dir_t::lastAccessDate

Last access date. 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 lastWriteDate.

Definition at line 376 of file FAT16.hh.

uint16_t FAT16::dir_t::lastWriteDate

Date of last write. File creation is considered a write.

Definition at line 389 of file FAT16.hh.

uint16_t FAT16::dir_t::lastWriteTime

Time of last write. File creation is considered a write.

Definition at line 385 of file FAT16.hh.

uint8_t FAT16::dir_t::name[11]

Short 8.3 name. The first eight bytes contain the file name with blank fill. The last three bytes contain the file extension with blank fill.

Definition at line 344 of file FAT16.hh.

uint8_t FAT16::dir_t::reservedNT

Reserved for use by Windows NT. Set value to 0 when a file is created and never modify or look at it after that.

Definition at line 356 of file FAT16.hh.


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