User manual

mikroC PRO for dsPIC
MikroElektronika
421
Mmc_Fat_Reset
Mmc_Fat_Read
Prototype
void Mmc_Fat_Reset(unsigned long *size);
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
unsigned long size;
...
Mmc_Fat_Reset(size);
Notes None.
Prototype
void Mmc_Fat_Read(unsigned short *bdata);
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
char character;
...
Mmc_Fat_Read(&character);
Notes None.