Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler

Ads

Discussion Groups

Discussion Groups | LPC2000 | SD card file time and date - LPC2148

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

SD card file time and date - LPC2148 - Sutton Mehaffey - Jul 2 21:30:05 2008

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 )


RE: Re: SD card file time and date - LPC2148 - Michael Anton - Jul 7 20:03:19 2008



> -----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 )