1.2.7.4.66 SYS_FS_MEDIA_MANAGER_SectorWrite Function

C

SYS_FS_MEDIA_BLOCK_COMMAND_HANDLE SYS_FS_MEDIA_MANAGER_SectorWrite
(
    uint16_t diskNo,
    uint32_t sector,
    uint8_t * dataBuffer,
    uint32_t noSectors
);

Summary

Writes a sector to the specified media.

Description

This function writes to a sector of the specified media (disk). This is the function in the media manager layer. This function in turn calls the specific sector write function from the list of function pointers of the media driver.

Precondition

None.

Parameters

ParamDescription
diskNomedia number
sectorSector # to which data to be written
dataBufferpointer to buffer which holds the data to be written
noSectorsNumber of sectors to be written

Returns

Buffer handle of type SYS_FS_MEDIA_BLOCK_COMMAND_HANDLE.