Anyone added the date and time lookup capability to SD card files?
The EFSL code doesn't have those fields, only Name, Size, and
Attribute. The data I get back for date (EC4D), I can't figure out
how the bits correspond to the date 7/1/2008 by the spec data. When I
list the files under Windows, it works. So, maybe there is a spec
error. Is there any code out there that deciphers the date and time
bytes?
Sutton
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
> -----Original Message-----
> From: l...@yahoogroups.com
> [mailto:l...@yahoogroups.com]On Behalf
> Of Sutton Mehaffey
> Sent: Monday, July 07, 2008 7:27 AM
> To: l...@yahoogroups.com
> Subject: [lpc2000] Re: SD card file time and date - LPC2148
> FileRecord is the record that is created by adding a new file to the
> card. I can certainly reverse the date and time bit shifting, if
> that's what you mean (and that's fine - I didn't think of that).
>
> There is no time and date field in ListDirEntry in ls.h, which seems
> to be the structure when existing files are read. There is no
> provision for listing the dates and times.
>
> Sutton
>
You are correct, but couldn't you open the file which fills in the
FileRecord, and get the info you seek from that? I'll admit it
certainly would have been better if the ListDirEntry() function
had pulled in the complete directory entry, instead of just a subset.
Mike
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )