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

ParamDescription
diskNoMedia number
dataBufferPointer to buffer where data to be placed after read
sectorSector numer to be read
noSectorsNumber of sectors to read

Returns

Buffer handle of type SYS_FS_MEDIA_BLOCK_COMMAND_HANDLE.