Mikroelektronika MIKROE-350 Fiche De Données
Mmc_Fat_Read
Mmc_Fat_Rewrite
265
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure Mmc_Fat_Read(dim byref bdata as 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
dim character as byte
...
main:
...
main:
...
Mmc_Fat_Read(character)
...
Mmc_Fat_Read(character)
...
end.
Prototype
sub 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.
will be erased.
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
' open file for writing
Mmc_Fat_Rewrite()
Mmc_Fat_Rewrite()