User manual

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 le pointer (moves it to the start of the le) of the assigned le, so that the le
can be read.
Parameters - size: buffer to store le size to. After le 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 le operations. See Mmc_Fat_Init.
The le 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 le opened for reading. Upon function execution le pointers
will be set to the next character in the le.
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 le operations. See Mmc_Fat_Init.
The le must be previously assigned. See Mmc_Fat_Assign.
The le must be opened for reading. See Mmc_Fat_Reset.
Example
dim character as byte
...
Mmc_Fat_Read(character)
Notes None.