Interface: EEPROMWrite
Write interface for the non-volatile EEPROM
Write lines to the EEPROM.
Each line is 16 bytes.
Writes must be surrounded by a startWrite
,
endWrite
pair. Writes
are only final when endWrite
is called.
If endWrite
is not called,
writes written since the last startWrite
have
undefined contents.
- Components providing this interface:
-
tos.platform.mica.EEPROM
tos.platform.mica.eepromM
- Components requiring this interface:
-
apps.TestEEPROM.EEPROM.TestEEPROMM
tos.system.LoggerM
-
result_t startWrite(void)
-
result_t write(uint16_t line, uint8_t *buffer)
-
result_t endWrite(void)
Tells the EEPROM that we're done writing
Returns: |
SUCCESS if the end command is accepted
|
-
result_t writeDone(uint8_t *buffer)
Notification that the write has been completed
Parameters: |
buffer - buffer written to the EEPROM
|
Returns: |
SUCCESS always
|
-
result_t endWriteDone(result_t success)
Notification that the EEPROM has completed writing and ended
write mode
Parameters: |
success - SUCCESS if the end command was successful
|
Returns: |
SUCCESS always
|