flushData Function

Microchip MDD File System Interface

MDDFS Interface Library Help
flushData Function
C
BYTE flushData();
Description

The flushData function is called when it is necessary to read new data into the global data buffer and the gNeedDataWrite variable indicates that there is data in the buffer that hasn't been written to the device. The flushData function will write the data from the buffer into the current cluster of the FSFILE object that is stored in the gBufferOwner global variable.

Preconditions

File opened in a write mode, data needs to be written

Return Values
Return Values 
Description 
CE_GOOD 
Data was updated successfully 
CE_WRITE_ERROR 
Data could not be updated 
Side Effects

None

Remarks

None

Microchip MDD File System Interface 1.2.0 - [Aug 18, 2008]
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.