Datasheet
Mmc_Fat_Write
267
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure Mmc_Fat_Write(dim byref fdata as byte[512], dim
data_len as word)
Returns Nothing.
Description
Writes requested number of bytes to the currently assigned file opened for writing.
Parameters:
-
fdata: data to be written.
- data_len: number of bytes to be written.
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.
The file must be opened for writing. See Mmc_Fat_Rewrite or
Mmc_Fat_Append.
Example
dim file_contents as char[42]
...
main:
...
Mmc_Fat_Write(file_contents, 42) ' write data to the assigned
file
...
end.