NHS31xx storage - Maximizing storage for equisized samples
Macros
storage_dft.h File Reference
Go to the source code of this file.
Macros
#define
STORAGE_IDIVUP
(n, d) (((n)+(d)-1)/(d))
#define
STORAGE_FIRST_ALON_REGISTER
4
#define
STORAGE_EEPROM_FIRST_ROW
(EEPROM_NR_OF_RW_ROWS - (2048 / EEPROM_ROW_SIZE))
#define
STORAGE_EEPROM_LAST_ROW
(EEPROM_NR_OF_RW_ROWS - 1)
#define
STORAGE_EEPROM_ROW_COUNT
(
STORAGE_EEPROM_LAST_ROW
-
STORAGE_EEPROM_FIRST_ROW
+ 1)
#define
STORAGE_EEPROM_SIZE
(
STORAGE_EEPROM_ROW_COUNT
* EEPROM_ROW_SIZE)
#define
STORAGE_FLASH_FIRST_PAGE
0
#define
STORAGE_FLASH_LAST_PAGE
(FLASH_NR_OF_RW_SECTORS * FLASH_PAGES_PER_SECTOR - 1)
#define
STORAGE_TYPE
uint8_t
#define
STORAGE_BITSIZE
8
#define
STORAGE_MAX_SAMPLE_ALON_CACHE_COUNT
((141 -
STORAGE_FIRST_ALON_REGISTER
* 32) /
STORAGE_BITSIZE
)
#define
STORAGE_SAMPLE_ALON_CACHE_COUNT
STORAGE_MAX_SAMPLE_ALON_CACHE_COUNT
#define
STORAGE_SIGNED
0
#define
STORAGE_WRITE_RECOVERY_EVERY_X_SAMPLES
(1 +
STORAGE_SAMPLE_ALON_CACHE_COUNT
)
#define
STORAGE_REDUCE_RECOVERY_WRITES
0
#define
STORAGE_MAX_LOSS_AFTER_CORRUPTION
#define
STORAGE_MAX_BLOCK_SIZE_IN_SAMPLES
#define
STORAGE_MAX_UNCOMPRESSED_BLOCK_SIZE_IN_BITS
(
STORAGE_MAX_BLOCK_SIZE_IN_SAMPLES
*
STORAGE_BITSIZE
)
#define
STORAGE_BLOCK_HEADER_SIZE
2
#define
STORAGE_BLOCK_SIZE_IN_SAMPLES
(((1024 -
STORAGE_BLOCK_HEADER_SIZE
) * 8) /
STORAGE_BITSIZE
)
#define
STORAGE_BLOCK_SIZE_IN_SAMPLES
STORAGE_MAX_BLOCK_SIZE_IN_SAMPLES
#define
STORAGE_UNCOMPRESSED_BLOCK_SIZE_IN_BITS
(
STORAGE_BLOCK_SIZE_IN_SAMPLES
*
STORAGE_BITSIZE
)
#define
STORAGE_UNCOMPRESSED_BLOCK_SIZE_IN_BYTES
STORAGE_IDIVUP
(
STORAGE_UNCOMPRESSED_BLOCK_SIZE_IN_BITS
, 8)
#define
STORAGE_WORKAREA_SIZE
((FLASH_PAGE_SIZE * 2) +
STORAGE_UNCOMPRESSED_BLOCK_SIZE_IN_BYTES
)
#define
STORAGE_WORKAREA_SELF_DEFINED
1
#define
STORAGE_WORKAREA
sStorage_Workarea
#define
STORAGE_COMPRESS_CB
#define
STORAGE_DECOMPRESS_CB
sw
nss
mods
storage
storage_dft.h
Generated on Tue Oct 20 2020 08:17:15 for NHS31xx storage - Maximizing storage for equisized samples by
1.8.14