FF_Read()
From FullFAT
Reads data from the specified FF_FILE object.
Contents |
Prototype
FF_T_SINT32 FF_Read(FF_FILE *pFile, FF_T_UINT32 ElementSize, FF_T_UINT32 Count, FF_T_UINT8 *buffer);
Back to API.
Parameters
pFile
FF_FILE object from the FF_Open() function.
ElementSize
Size in bytes of a single element to be read.
Count
Count of elements to be read.
buffer
Pointer to a bytewise buffer to be filled with the read data.
NOTE THIS MAY CHANGE IN 1.0.1 to a void * pointer.
Return Value
Returns the number of Elements successfully read.
Example
#include "fullfat.h" FF_T_UINT8 buffer[128]; FF_Read(pFile, 1, 128, buffer); // Read 128 bytes into the buffer.
Back to API.

