Jump to main content

##

# 1.2.7.4.61 SYS_FS_MEDIA_MANAGER_CommandStatusGet Function

## C

    SYS_FS_MEDIA_COMMAND_STATUS SYS_FS_MEDIA_MANAGER_CommandStatusGet
    (
        uint16_t diskNo,
        SYS_FS_MEDIA_BLOCK_COMMAND_HANDLE bufferHandle
    )

## Summary

Gets the command status.

## Description

This function gets the command status. The sector read and sector write are non-blocking functions. Therefore, this interface is provided where the code should periodically poll for the buffer status. If status is completed, the read/write operation is considered to be complete.

## Precondition

None.

## Parameters

Param | Description
--- | ---
diskNo | media number
bufferHandle | the command handle which was obtained during sector read/ write

## Returns

Command status of type SYS_FS_MEDIA_COMMAND_STATUS.