Apps Components Interfaces All Files Source Tree | source: tos.interfaces.LogData.nc |
This interface is used to provide efficient, byte level logging to a region of memory/flash/etc (the actual region is specified through some other mechanism, e.g., in ByteEEPROM by providing a parameterised LogData interface). Unlike the WriteData interface, the data written via append is only guaranteed to be present in the region once sync has completed. Note: this interface is purposefully restrictive to allow logging to be as fast as possible. Calls to LogData must not be interspersed with calls to WriteData on the same area of memory/flash/etc (ReadData is fine). WriteData can be called after syncDone returns. This interface is currently used by ByteEEPROM
Author: | David Gay |
Commands |
Events |
Commands - Details |
Events - Details |
Parameters: |
data - Address of data written numBytesWrite - Number of bytes written success - SUCCESS if write was successful, FAIL otherwise |
Returns: | Ignored. |
Parameters: |
success - FAIL if sync failed, SUCCESS otherwise. |
Returns: | Ignored. |