Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
Cf_Fat_Write
215
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure Cf_Fat_Write(var fdata: array[512] of byte; data_len:
word);
Returns
Nothing.
Description
Writes requested number of bytes to currently assigned file opened for writing.
Parameters : 
fdata
: data to be written. 
data_len
: number of bytes to be written. 
Requires
CF card and CF library must be initialized for file operations. See Cf_Fat_Init.
File must be previously assigned. See Cf_Fat_Assign.
File must be open for writing. See Cf_Fat_Rewrite or Cf_Fat_Append.
Example
var file_contents : array[42] of byte;
...
Cf_Fat_Write(file_contents, 42); // write data to the assigned
file