Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
Mmc_Fat_Rewrite
Mmc_Fat_Append
Mmc_Fat_Delete
280
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure Mmc_Fat_Rewrite();
Returns
Nothing.
Description
Opens the currently assigned file for writing. If the file is not empty its content
will be erased.
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
// open file for writing
Mmc_Fat_Rewrite();
Prototype
procedure Mmc_Fat_Append();
Returns
Nothing.
Description
Opens the currently assigned file for appending. Upon this function execution
file pointers will be positioned after the last byte in the file, so any subsequent
file writing operation will start from there.
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
// open file for appending
Mmc_Fat_Append();
Prototype
procedure 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();