1.2.7.4.65 SYS_FS_MEDIA_MANAGER_SectorRead Function
C
SYS_FS_MEDIA_BLOCK_COMMAND_HANDLE SYS_FS_MEDIA_MANAGER_SectorRead ( uint16_t diskNo, uint8_t * dataBuffer, uint32_t sector, uint32_t noSectors );
Summary
Reads a specified media sector.
Description
This function reads a specified media (disk) sector. This is the function in the media manager layer. This function in turn calls the specific sector read function from the list of function pointers of the media driver.
Precondition
None.
Parameters
Param | Description |
---|---|
diskNo | Media number |
dataBuffer | Pointer to buffer where data to be placed after read |
sector | Sector numer to be read |
noSectors | Number of sectors to read |
Returns
Buffer handle of type SYS_FS_MEDIA_BLOCK_COMMAND_HANDLE.