mikroC
making it simple...
Cf_Read_BytemikroC - C Compiler for Microchip PIC microcontrollers
Prototype | char Cf_Read_Byte(void); |
|
|
Returns | Returns byte from CF. |
|
|
Description | Reads one byte from CF. |
|
|
Requires | CF must be initialized for read operation. See Cf_Read_Init. |
|
|
Example | PORTC = Cf_Read_Byte(); // Read byte and display it on PORTC |
|
|
Prototype | unsigned Cf_Read_Word (void); |
|
|
Returns | Returns word |
|
|
Description | Reads one word from CF. |
|
|
Requires | CF must be initialized for read operation. See Cf_Read_Init. |
|
|
Example | PORTC = Cf_Read_Word(); // Read word and display it on PORTC |
|
|
Prototype | void Cf_Write_Init(long address, char sectcnt); |
|
|
Description | Initializes CF card for writing. Parameter address specifies sector address where data |
| will be stored, and sectcnt is total number of sectors prepared for write operation. |
|
|
Requires | Ports must be initialized. See Cf_Init. |
|
|
Example | Cf_Write_Init(590, 1); |
|
|
|
| page |
|
MikroElektronika: Development tools - Books - Compilers | 165 | ||
|
|