Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Homepage FreeRTOS+ Products FreeRTOS Labs Integration Services Contact / Enquiries


[FreeRTOS File System Media Driver API]

typedef long ( *F_GETSTATUS )( F_DRIVER * pxDriver );

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


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

0   The drive can be used.

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

Status Code
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.

[ Back to the top ]    [ About FreeRTOS ]    [ FreeRTOS+ Sitemap ]    [ Main FreeRTOS Sitemap ]    [ ]

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.