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

F_WRITESECTOR()

[FreeRTOS File System Media Driver API]

header_file.h
typedef int ( *F_WRITESECTOR )( F_DRIVER * pxDriver, void * pvBuffer, unsigned long ulSector );
		

The implementation must write a complete sector to the physical media.

Parameters:

pxDriver   A pointer to the F_DRIVER structure returned by the call to F_DRIVERINIT() originally used to initialise the drive to which the sector is to be written.

pvBuffer   A pointer to the data to be written to the sector.

ulSector   The number of the sector to be written.

Returns:
0   The sector was written to the physical media.

Any other value   The sector number was out of range.

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) Amazon Web Services, Inc. or its affiliates. All rights reserved.