MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClBuffer.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/* Copyright 2022-2024 NXP */
3/* */
4/* SPDX-License-Identifier: BSD-3-Clause */
5/* */
6/* Redistribution and use in source and binary forms, with or without */
7/* modification, are permitted provided that the following conditions are */
8/* met: */
9/* */
10/* 1. Redistributions of source code must retain the above copyright */
11/* notice, this list of conditions and the following disclaimer. */
12/* */
13/* 2. Redistributions in binary form must reproduce the above copyright */
14/* notice, this list of conditions and the following disclaimer in the */
15/* documentation and/or other materials provided with the distribution. */
16/* */
17/* 3. Neither the name of the copyright holder nor the names of its */
18/* contributors may be used to endorse or promote products derived from */
19/* this software without specific prior written permission. */
20/* */
21/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS */
22/* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED */
23/* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A */
24/* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
25/* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
26/* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */
27/* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR */
28/* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */
29/* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */
30/* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS */
31/* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
32/*--------------------------------------------------------------------------*/
33
43
44#ifndef MCUXCLBUFFER_H_
45#define MCUXCLBUFFER_H_
46
47#include <mcuxClCore_Platform.h>
48
50
51/* Include the actual implementation of the flow protection mechanism. */
52#include <mcuxClBuffer_Impl.h>
53
71
87#define MCUXCLBUFFER_INIT(name, info, ptr, size) \
88 MCUXCLBUFFER_INIT_RW(name, info, ptr, size)
89
104#define MCUXCLBUFFER_INIT_RO(name, info, ptr, size) \
105 MCUXCLBUFFER_INIT_PLAIN_RO_IMPL(name, info, ptr, size)
106
121#define MCUXCLBUFFER_INIT_RW(name, info, ptr, size) \
122 MCUXCLBUFFER_INIT_PLAIN_RW_IMPL(name, info, ptr, size)
123
140#define MCUXCLBUFFER_INIT_DMA_RO(name, info, ptr, size) \
141 MCUXCLBUFFER_INIT_DMA_RO_IMPL(name, info, ptr, size)
142
159#define MCUXCLBUFFER_INIT_DMA_RW(name, info, ptr, size) \
160 MCUXCLBUFFER_INIT_DMA_RW_IMPL(name, info, ptr, size)
161
177#define MCUXCLBUFFER_INIT_DMA(name, info, ptr, size) \
178 MCUXCLBUFFER_INIT_DMA_RW(name, info, ptr, size)
179
199#define MCUXCLBUFFER_INIT_CUSTOM(name, handler, info, spec, ptr, size) \
200 MCUXCLBUFFER_INIT_CUSTOM_IMPL(name, handler, info, spec, ptr, size)
201
207
221#define MCUXCLBUFFER_UPDATE(name, offset) \
222 MCUXCLBUFFER_UPDATE_IMPL(name, offset)
223
234#define MCUXCLBUFFER_DERIVE_RO(name, original, offset) \
235 MCUXCLBUFFER_DERIVE_RO_IMPL(name, original, offset)
236
247#define MCUXCLBUFFER_DERIVE_RW(name, original, offset) \
248 MCUXCLBUFFER_DERIVE_RW_IMPL(name, original, offset)
249
260#define MCUXCLBUFFER_SET(name, ptr, size) \
261 MCUXCLBUFFER_SET_IMPL(name, ptr, size)
262
271#define MCUXCLBUFFER_GET(name) \
272 MCUXCLBUFFER_GET_IMPL(name)
273
282#define MCUXCLBUFFER_IS_NULL(name) \
283 MCUXCLBUFFER_IS_NULL_IMPL(name)
284
285
286#endif /* MCUXCLBUFFER_H_ */
Constants for use with the mcuxClBuffer component.
Selection of the implementation for the buffer types.