1.2.7.4.64 SYS_FS_MEDIA_MANAGER_Read Function
C
SYS_FS_MEDIA_BLOCK_COMMAND_HANDLE SYS_FS_MEDIA_MANAGER_Read ( uint16_t diskNo, uint8_t* destination, uint8_t * source, const unsigned int nBytes );
Summary
Gets data from a specific media address.
Description
This function gets data from a specific address of media. This function is intended to work with NVM media only, which can have byte level addressing. For other media, such as a SD card, byte addressing is not possible and this function will not work. Also, this function is intended to work with the MPFS2 file system only, which uses byte addressing.
Precondition
None.
Parameters
Param | Description |
---|---|
diskNo | media number |
destination | pointer to buffer where data to be placed after read |
source | pointer from where data to be read |
nBytes | Number of bytes to be read |
Returns
Buffer handle of type SYS_FS_MEDIA_BLOCK_COMMAND_HANDLE