mikroC

mikroC - C Compiler for Microchip PIC microcontrollers

making it simple...

Cf_Write_Byte

Prototype

void Cf_Write_Byte(char data);

Description Writes one byte (data) to CF. All 512 bytes are transferred to a buffer.

Requires CF must be initialized for write operation. See Cf_Write_Init.

Example Cf_Write_Byte(100);

Cf_Write_Word

Prototype

void Cf_Write_Word(int data);

Description Writes one word (data) to CF. All 512 bytes are transferred to a buffer.

Requires CF must be initialized for write operation. See Cf_Write_Init.

Example Cf_Write_Word(1000);

Cf_Find_File

Prototype

void Cf_Find_File(char find_first, char *file_name);

Description Routine looks for files on CF card. Parameter find_first can be non-zero or zero; if non-zero, routine looks for the first file on card, in order of physical writing. Otherwise, routine “moves forward” to the next file from the current position, again in physical order. If file is found, routine writes its name and extension in the string file_name. If no file is found, the string will be filled with zeroes.

 

 

Requires

Ports must be initialized. See Cf_Init.

 

 

 

 

 

 

 

Example

Cf_Find_File(1, file);

 

 

 

if (file[0] <> 0) { ... // if first file found, handle it

 

 

 

 

 

 

 

 

page

 

 

 

 

 

 

 

166

MikroElektronika: Development tools - Books - Compilers