Datasheet
Mmc_Fat_Read
Mmc_Fat_Delete
Mmc_Fat_Write
331
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Prototype
void Mmc_Fat_Read(unsigned short * bdata);
Returns Nothing.
Description
Procedure reads the byte at which the file pointer points to and stores data into
parameter data. The file pointer automatically increments with each call of
Mmc_Fat_Read.
Requires
The file must be assigned, see Mmc_Fat_Assign. Also, file pointer must be ini-
tialized; see Mmc_Fat_Reset.
Example
Mmc_Fat_Read(mydata);
Prototype
void Mmc_Fat_Delete();
Returns Nothing.
Description Deletes currently assigned file from MMC/SD card.
Requires
MMC/SD card and MMC library must be initialized for file operations. See
Mmc_Fat_Init.
The file must be previously assigned. See Mmc_Fat_Assign.
Example
// delete current file
Mmc_Fat_Delete();
Prototype
void Mmc_Fat_Write(char * fdata, unsigned data_len);
Returns Nothing.
Description
Procedure writes a chunk of bytes (fdata) to the currently assigned file, at the
position of the file pointer.
Requires
The file must be assigned, see Mmc_Fat_Assign. Also, file pointer must be ini-
tialized; see Mmc_Fat_Append or Mmc_Fat_Rewrite.
Example
Mmc_Fat_Write(txt,255);
Mmc_Fat_Write('Hello world',255);