Mikroelektronika MIKROE-442 Datenbogen
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
288
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
Cf_Fat_Reset
Cf_Fat_Read
Prototype
sub procedure Cf_Fat_Reset(dim byref size as longword)
Description Opens currently assigned file for reading.
Parameters -
Parameters -
size
: buffer to store file size to. After file has been open for reading its size is returned through this
parameter.
Returns
Nothing.
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)
Notes
None.
Prototype
sub procedure Cf_Fat_Read(dim byref bdata as byte)
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.
Returns
Nothing.
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 bdata as byte
...
Cf_Fat_Read(bdata)
Notes
None.