Instructions

332Libraries
© 2013 Conrad Electronic
Read attributes of a file to a dword (ULong) array with 4 elements.
Parameter
path file path
filinfo return array
Return Parameter
Success of the called SDC function. See SDC Return Values.
Rückgabe Array:
fileinfo[0]
file length
fileinfo[1]
date
fileinfo[2]
time
fileinfo[3]
file attribute
Coding date:
Bits 0:4 - day: 1...31
Bits 5:8 - month: 1...12
Bits 9:15 - year begin with 1980: 0...127
Coding time:
Bits 0:4 - seconds/2: 0...29
Bits 5:10 - minute: 0...59
Bits 11:15 - hour: 0...23
Coding file attribute:
Bit 1: Read Only
Bit 2: Hidden
Bit 3: Volume label
Bit 4: Directory
Bit 5: Archive
5.21.9 SDC_FSync
SDCard Functions
Syntax
byte SDC_FSync(byte fil_ramaddr[]);
Sub SDC_FSync(ByRef fil_ramaddr As Byte) As Byte
Description
Waits for all data to be written from the buffer into the file on the SD card.
Parameter
fil_ramaddr address of the FILE buffer