Download FreeRTOS
 

Quality RTOS & Embedded Software

LIBRARIES
WHAT'S NEW
Simplifying Authenticated Cloud Connectivity for Any Device.
Designing an energy efficient and cloud-connected IoT solution with CoAP.
Introducing FreeRTOS Kernel version 11.0.0:
FreeRTOS Roadmap and Code Contribution process.
OPC-UA over TSN with FreeRTOS.

F_GETSTATUS()

[FreeRTOS File System Media Driver API]

header_file.h
typedef long ( *F_GETSTATUS )( F_DRIVER * pxDriver );
		

This function is only required for removable media. The implementation must return the status of the media.

Parameters:

pxDriver   A pointer to the F_DRIVER structure returned by the call to F_DRIVERINIT() originally used to initialise the drive being queried.

Returns:
0   The drive can be used.

Any other value   The implementation can return one of the following status codes:

Status Code
Meaning
F_ST_MISSING The media is not present (it has been removed or was never inserted).
F_ST_CHANGED Since F_GETSTATUS() was last called the media has either been removed and re-inserted, or a different media has been inserted.
F_ST_WRPROTECT The media is write protected.

Example usage:

A worked example is provided in the RAM disk driver available from this web site.



Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.