Reference Library SD 8:3 format

General questions about Firewing...

Reference Library SD 8:3 format

Postby bitfogav » Wed Jun 19, 2013 9:24 am

I notice that in the SD Card library it is mentioned that the string will be padded to 8:3 format, Can someone please explain what exactly this means?.. This might explain why when I read a byte from the SD Card, I get some extra bytes than I expect?.
User avatar
bitfogav
 
Posts: 75
Joined: Sat Nov 17, 2012 11:46 am
Location: UK

Re: Reference Library SD 8:3 format

Postby Jerry Messina » Wed Jun 19, 2013 10:29 pm

The 8.3 comments apply to filenames... the lib supports old DOS-style names with an 8 char name and a 3 char extension (ie "FILENAME.TXT").

In SDLib.bas filenames are defined as
Code: Select all
' name structure...
Structure TName
   Dim Name As String(9)
   Dim Extension As String(4)
End Structure
Public Type TSDName = TName


and the padding is done in
Code: Select all
Sub ModifyFileName(ByRef pFileName As TSDName)
Jerry Messina
 
Posts: 280
Joined: Thu Feb 14, 2013 10:16 am

Re: Reference Library SD 8:3 format

Postby bitfogav » Wed Jun 19, 2013 11:11 pm

Thank you Jerry for taking the time to explain this, it is much appreciated..

>This might explain why when I read a byte from the SD Card, I get some extra bytes than I expect?.
In this case this wasn't the issue I thought and I found out that the few bits after each byte read from the SD Card was the new line command.. :oops: I think this has caught me out before..
User avatar
bitfogav
 
Posts: 75
Joined: Sat Nov 17, 2012 11:46 am
Location: UK


Return to Questions

Who is online

Users browsing this forum: No registered users and 0 guests

x