Abl-electronic PIC Microcontrollers PIC16 Bedienungsanleitung Seite 176

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 312
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 175
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
168
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
Seitenansicht 175
1 2 ... 171 172 173 174 175 176 177 178 179 180 181 ... 311 312

Kommentare zu diesen Handbüchern

Keine Kommentare