Instructions
333 C-Control Pro IDE
© 2013 Conrad Electronic
Return Parameter
Success of the called SDC function. See SDC Return Values.
5.21.10 SDC_FTruncate
SDCard Functions
Syntax
byte SDC_FTruncate(byte fil_ramaddr[]);
Sub SDC_FTruncate(ByRef fil_ramaddr As Byte) As Byte
Description
Delete the rest of the file from the current cursor position.
Parameter
fil_ramaddr address of the FILE buffer
Return Parameter
Success of the called SDC function. See SDC Return Values.
5.21.11 SDC_FWrite
SDCard Functions
Syntax
byte SDC_FWrite(byte fil_ramaddr[], byte buf[], word btr, word br[]);
Sub SDC_FWrite(ByRef fil_ramaddr As Byte, ByRef buf As Byte, btr As Word,
ByRef br As Word) As Byte
Description
Writes data to an open file. The data from the buffer buf is written to the file at current file position. The
parameter btr determines number of bytes to write. The number of bytes actual written is copied into the
first element of br. The write position can be determined with SDC_FSeek.
Parameter
fil_ramaddr address of the FILE buffer
buf RAM address from where the bytes a written to the SD card
btr number of bytes to write
br actual number of bytes written