ABL electronic PIC16 Personal Computer User Manual


 
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
16 8
MikroElektronika:
Development
tools
-
Books
-
Compilers
page
Prototype
void Cf_File_Write_Complete(char filename[8], char *extension);
Description Finalizes writing to file. Upon all data has be written to file, use this function to close
the file and make it readable. Parameter filename must be 8 chars long in uppercase.
Requires CF must be initialized for file write operation. See Cf_File_Write_Init.
Example
Cf_File_Write_Complete("MY_FILE1","txt");
Cf_File_Write_Complete
Prototype
void Cf_Write_Sector(int sector_number, unsigned short *buffer);
Description Writes value from buffer to CF sector at sector_number.
Requires CF must be initialized for file write operation. See Cf_Init.
Example
Cf_Write_Sector(22, data);
Cf_Write_Sector
Prototype
void Cf_Set_File_Date(int year, char month,day,hours,min,sec);
Description Writes system timestamp to a file. Use this routine before finalizing a file; otherwise,
file will be appended a random timestamp.
Requires CF must be initialized for file write operation. See Cf_File_Write_Init.
Example
// April 1st 2005, 18:07:00
Cf_Set_File_Date(2005,4,1,18,7,0);
Cf_Set_File_Date