comparison 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
comparison
equal deleted inserted replaced
465:2c2df051e554 466:538eb1c976e9
166 166
167 uint16_t ext_flash_repair_SPECIAL_dive_numbers_starting_count_with(uint16_t startCount); 167 uint16_t ext_flash_repair_SPECIAL_dive_numbers_starting_count_with(uint16_t startCount);
168 168
169 uint32_t ext_flash_AnalyseSampleBuffer(char *pstrResult); 169 uint32_t ext_flash_AnalyseSampleBuffer(char *pstrResult);
170 void ext_flash_CloseSector(void); 170 void ext_flash_CloseSector(void);
171 void ext_flash_invalidate_sample_index(uint32_t sectorStart); 171
172 uint32_t ext_flash_read_profilelength_small_header(uint32_t smallHeaderAddr);
173 uint8_t ext_flash_SampleOverrunValid(void);
174
172 175
173 #endif /* EXTERN_LOGBOOK_FLASH_H */ 176 #endif /* EXTERN_LOGBOOK_FLASH_H */