diff Discovery/Inc/externLogbookFlash.h @ 466:538eb1c976e9 Improve_Logtansfer

Removed invalidate header function because it is no lonnger needed Added new function allowing to read the profile length from sample data Added function which validates the wrap around detection In older versions a corruption of the sample index could occure reseting the sample index to its start. For some code sections this looks like a wrap around of the sample ring. To avoid problems a function to check this by reading the last bytes of the sample ring (should be != 0xff if used) has been added
author ideenmodellierer
date Tue, 14 Apr 2020 19:27:04 +0200
parents e4f6afd9c96b
children eb2060caca7d
line wrap: on
line diff
--- a/Discovery/Inc/externLogbookFlash.h	Tue Apr 14 19:22:56 2020 +0200
+++ b/Discovery/Inc/externLogbookFlash.h	Tue Apr 14 19:27:04 2020 +0200
@@ -168,6 +168,9 @@
 
 uint32_t ext_flash_AnalyseSampleBuffer(char *pstrResult);
 void ext_flash_CloseSector(void);
-void ext_flash_invalidate_sample_index(uint32_t sectorStart);
+
+uint32_t ext_flash_read_profilelength_small_header(uint32_t smallHeaderAddr);
+uint8_t ext_flash_SampleOverrunValid(void);
+
 
 #endif /* EXTERN_LOGBOOK_FLASH_H */