Instructions

334Libraries
© 2013 Conrad Electronic
Return Parameter
Success of the called SDC function. See SDC Return Values.
5.21.12 SDC_GetFree
SDCard Functions
Syntax
byte SDC_GetFree(char path[], dword kbfree[]);
Sub SDC_GetFree(ByRef path As Char, ByRef kbfree As ULong) As Byte
Description
Returns the number of free clusters on the SD Card. The number of free clusters is copied to the first
element of the array kbfree.
Parameter
path path to the root of the disk.
kbfree return array
Return Parameter
Success of the called SDC function. See SDC Return Values.
5.21.13 SDC_Init
SDCard Functions
Syntax
void SDC_Init(byte fat_ramaddr[]);
Sub SDC_Init(ByRef fat_ramaddr As Byte)
Description
Initializes the SD card library. For this operation a FAT buffer must be created. Therefore an array of size
562 is declared.
The user-provided RAM buffer must be reserved during the access to the SD Card. Since local vari-
ables will be released after leaving the function, it usually makes sense to declare the buffer as a global
variable.
Parameter
fat_ramaddr address of the FAT buffer