Mikroelektronika MIKROE-742 데이터 시트
Mmc_Fat_Reset
Mmc_Fat_Read
279
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure Mmc_Fat_Reset(var size: dword);
Returns
Nothing.
Description
Opens currently assigned file for reading.
Parameters:
-
size
: buffer to store file size to. After file has been open for reading, its size is
returned through this parameter.
Requires
MMC/SD card and MMC library must be initialized for file operations. See
Mmc_Fat_Init.
Mmc_Fat_Init.
The file must be previously assigned. See Mmc_Fat_Assign.
Example
var size : dword;
...
...
Mmc_Fat_Reset(size);
Prototype
procedure Mmc_Fat_Read(var bdata: byte);
Returns
Nothing.
Description
Reads a byte from the currently assigned file opened for reading. Upon function
execution, file pointers will be set to the next character in the file.
execution, file pointers will be set to the next character in the file.
Parameters:
-
bdata
: buffer to store read byte to. Upon this function execution read byte is
returned through this parameter.
Requires
MMC/SD card and MMC library must be initialized for file operations. See
Mmc_Fat_Init.
Mmc_Fat_Init.
The file must be previously assigned. See Mmc_Fat_Assign.
The file must be opened for reading. See Mmc_Fat_Reset.
Example
var character : byte;
...
Mmc_Fat_Read(character);
...
Mmc_Fat_Read(character);