User manual

mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
395
Mmc_Fat_Reset
Mmc_Fat_Read
Prototype
procedure Mmc_Fat_Reset(var size: dword);
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
var size : dword;
...
Mmc_Fat_Reset(size);
Notes None.
Prototype
procedure Mmc_Fat_Read(var bdata_: 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
var character : byte;
...
Mmc_Fat_Read(character);
Notes None.