Download FreeRTOS
 

Quality RTOS & Embedded Software

LIBRARIES
WHAT'S NEW
FreeRTOS-Plus-TCP now has unified IPv4 and IPv6 functionalities and multi-interface support.
Achieving Unbrickable MCU FOTA for your FreeRTOS-powered Firmware:
FreeRTOS 202012 LTS end of support announced.
FreeRTOS website now available in Simplified Chinese
New FreeRTOS Long Term Support version now available.

F_GETPHY()

[FreeRTOS File System Media Driver API]

header_file.h
typedef int ( *F_GETPHY )( F_DRIVER * pxDriver, F_PHY * pxPhy );
		

The implementation must populate an F_PHY structure with information about the physical properties of the disk.

Parameters:

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

pxPhy   A pointer to an F_PHY structure to be populated by the implementation of the F_PHY() function with information on the physical properties of the disk.

Returns:
0   The F_PHY structure pointed to by the pxPhy parameter was populated.

Any other value   An error code for the device, for example device not present.

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.