nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ NRF_COMPRESS_IMPLEMENTATION_DEFINE

#define NRF_COMPRESS_IMPLEMENTATION_DEFINE ( name,
_id,
_init,
_deinit,
_reset,
_compress,
_decompress_bytes_needed,
_decompress )

#include <include/nrf_compress/implementation.h>

Value:
STRUCT_SECTION_ITERABLE(nrf_compress_implementation, name) = { \
.id = _id, \
.init = _init, \
.deinit = _deinit, \
.reset = _reset, \
COND_CODE_1(CONFIG_NRF_COMPRESS_COMPRESSION, ( \
.compress = _compress, \
), ()) \
COND_CODE_1(CONFIG_NRF_COMPRESS_DECOMPRESSION, ( \
.decompress_bytes_needed = _decompress_bytes_needed, \
.decompress = _decompress, \
), ()) \
}
Definition implementation.h:132

Define a compression implementation. This adds a new entry to the iterable section linker list of compression implementations.

Parameters
nameName of the compression type.
_idID of the compression type nrf_compress_types.
_initInitialization function nrf_compress_init_func_t.
_deinitDeinitialization function nrf_compress_deinit_func_t.
_resetReset function nrf_compress_reset_func_t.
_compressCompress function or NULL if no compression support nrf_compress_compress_func_t.
_decompress_bytes_neededDecompression bytes needed function or NULL if no decompression support nrf_compress_decompress_bytes_needed_t.
_decompressDecompression function or NULL if no decompression support nrf_compress_decompress_func_t.