Datasheet
Cf_Fat_Write
263
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Prototype
void Cf_Fat_Write(char *fdata, unsigned data_len);
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
char file_contents[42];
...
Cf_Fat_Write(file_contents, 42); // write data to the assigned
file