Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
Mmc_Fat_Write
281
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure Mmc_Fat_Write(var fdata: array[512] of byte; data_len:
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
var file_contents : array[42] of byte;
...
Mmc_Fat_Write(file_contents, 42); // write data to the assigned file