Datasheet
Mmc_Fat_Reset
Mmc_Fat_Rewrite
Mmc_Fat_Append
330
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Requires
MMC/SD card and MMC library must be initialized for file operations. See
Mmc_Fat_Init.
Example
//Create file with archive attribut if it does not already exists
Mmc_Fat_Assign('MIKROELE.TXT',0xA0);
Prototype
void Mmc_Fat_Reset(unsigned long * size);
Returns Nothing.
Description
Procedure resets the file pointer (moves it to the start of the file) of the assigned
file, so that the file can be read.
Parameter size stores the size of the assigned file, in bytes.
Requires The file must be assigned, see Mmc_Fat_Assign.
Example
Mmc_Fat_Reset(size);
Prototype
void Mmc_Fat_Rewrite();
Returns Nothing.
Description
Procedure resets the file pointer and clears the assigned file, so that new data
can be written into the file.
Requires The file must be assigned, see Mmc_Fat_Assign.
Example
Mmc_Fat_Rewrite;
Prototype
void Mmc_Fat_Append();
Returns Nothing.
Description
The procedure moves the file pointer to the end of the assigned file, so that data
can be appended to the file.
Requires The file must be assigned, see Mmc_Fat_Assign.
Example
Mmc_Fat_Append;