Mikroelektronika MIKROE-350 Fiche De Données

Page de 526
Cf_Fat_Reset
Cf_Fat_Read
199
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure Cf_Fat_Reset(dim byref size as longword)
Returns
Nothing.
Description
Opens currently assigned file for reading.
Parameters : 
size:
buffer to store file size to. After file has been open for reading its size is  
returned through this parameter. 
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.
Example
dim size as longword
...
Cf_Fat_Reset(size)
Prototype
sub procedure Cf_Fat_Read(dim byref bdata as byte)
Returns
Nothing.
Description
Reads a byte from currently assigned file opened for reading. Upon function
execution file pointers will be set to the next character in the file.
Parameters : 
bdata:
buffer to store read byte to. Upon this function execution read byte is  
returned through this parameter. 
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 reading. See Cf_Fat_Reset.
Example
dim character as byte
...
Cf_Fat_Read(character)