NHS31xx SW API
compress_dft.h
1 /*
2  * Copyright 2016-2017,2019 NXP
3  * This software is owned or controlled by NXP and may only be used strictly
4  * in accordance with the applicable license terms. By expressly accepting
5  * such terms or by downloading, installing, activating and/or otherwise using
6  * the software, you are agreeing that you have read, and that you agree to
7  * comply with and are bound by, such license terms. If you do not agree to
8  * be bound by the applicable license terms, then you may not retain, install,
9  * activate or otherwise use the software.
10  */
11 
12 #ifndef __COMPRESS_DFT_H_
13 #define __COMPRESS_DFT_H_
14 
36 #ifndef COMPRESS_WINDOW_BITS
37  #define COMPRESS_WINDOW_BITS 10
38 #endif
39 #if (COMPRESS_WINDOW_BITS < 4) || (COMPRESS_WINDOW_BITS > 11)
40  #error COMPRESS_WINDOW_BITS must be in the range [4, 11]
41 #endif
42 
50 #ifndef COMPRESS_LOOKAHEAD_BITS
51  #define COMPRESS_LOOKAHEAD_BITS 4
52 #endif
53 #if (COMPRESS_LOOKAHEAD_BITS < 3) || (COMPRESS_LOOKAHEAD_BITS >= COMPRESS_WINDOW_BITS)
54  #error COMPRESS_LOOKAHEAD_BITS must be in the range [3, COMPRESS_WINDOW_BITS[
55 #endif
56 
62 #ifndef COMPRESS_USE_INDEX
63  #define COMPRESS_USE_INDEX 0
64 #endif
65 
66 /* Dynamic allocation is explicitly disabled for compression. This is non-configurable. */
67 #undef HEATSHRINK_DYNAMIC_ALLOC
68 
69 #endif