Mikroelektronika MIKROE-724 データシート

ページ / 726
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
397
Mmc_Fat_Reset
Mmc_Fat_Read
Prototype
sub procedure Mmc_Fat_Reset(dim byref size as longword)
Description Procedure resets the file pointer (moves it to the start of the file) of the assigned file, so that the file 
can be read.
Parameters 
size
: buffer to store file size to. After file has been opened for reading, its size is returned through 
this parameter. 
Returns
Nothing.
Requires
MMC/SD card and MMC library must be initialized for file operations. See Mmc_Fat_Init.
The file must be previously assigned. See Mmc_Fat_Assign.
Example
dim size as longword
...
Mmc_Fat_Reset(size)
Notes
None.
Prototype
sub procedure Mmc_Fat_Read(dim byref bdata as byte)
Description Reads a byte from the 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
MMC/SD card and MMC library must be initialized for file operations. See Mmc_Fat_Init.
The file must be previously assigned. See Mmc_Fat_Assign.
The file must be opened for reading. See Mmc_Fat_Reset.
Example
dim character as byte
...
Mmc_Fat_Read(character)
Notes
None.