VSF Documented
vsf_remapped_rng.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __VSF_REMAPPED_RNG_H__
19#define __VSF_REMAPPED_RNG_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "hal/vsf_hal_cfg.h"
24
25#if VSF_HAL_USE_RNG == ENABLED
26
27#if VSF_RNG_CFG_MULTI_CLASS == ENABLED
28
29#if defined(__VSF_REMAPPED_RNG_CLASS_IMPLEMENT)
30# undef __VSF_REMAPPED_RNG_CLASS_IMPLEMENT
31# define __VSF_CLASS_IMPLEMENT__
32#elif defined(__VSF_REMAPPED_RNG_CLASS_INHERIT__)
33# undef __VSF_REMAPPED_RNG_CLASS_INHERIT__
34# define __VSF_CLASS_INHERIT__
35#endif
36
37#include "utilities/ooc_class.h"
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43/*============================ MACROS ========================================*/
44
45#ifndef VSF_REMAPPED_RNG_CFG_MULTI_CLASS
46# define VSF_REMAPPED_RNG_CFG_MULTI_CLASS VSF_RNG_CFG_MULTI_CLASS
47#endif
48
49#if VSF_REMAPPED_RNG_CFG_MULTI_CLASS == ENABLED
50# define __describe_remapped_rng_op() .op = &vsf_remapped_rng_op,
51#else
52# define __describe_remapped_rng_op()
53#endif
54
55#define __describe_remapped_rng(__name, __rng) \
56 vsf_remapped_rng_t __name = { \
57 __describe_remapped_rng_op() \
58 .target = (vsf_rng_t *) & __rng, \
59 };
60
61#define describe_remapped_rng(__name, __rng) \
62 __describe_remapped_rng(__name, __rng)
63
64/*============================ MACROFIED FUNCTIONS ===========================*/
65/*============================ TYPES =========================================*/
66
68#if VSF_REMAPPED_RNG_CFG_MULTI_CLASS == ENABLED
69 public_member(
70 implement(vsf_rng_t)
71 )
72#endif
73 public_member(
74 vsf_rng_t *target;
75 )
76};
77
78/*============================ GLOBAL VARIABLES ==============================*/
79
80#if VSF_REMAPPED_RNG_CFG_MULTI_CLASS == ENABLED
82#endif
83
84/*============================ PROTOTYPES ====================================*/
85/*============================ INCLUDES ======================================*/
86
87
88#define VSF_RNG_CFG_DEC_PREFIX vsf_remapped
89#define VSF_RNG_CFG_DEC_UPCASE_PREFIX VSF_REMAPPED
91
92#ifdef __cplusplus
93}
94#endif
95
96#endif // VSF_RNG_CFG_MULTI_CLASS
97#endif // VSF_HAL_USE_RNG
98#endif
99/* EOF */
100
Definition vsf_remapped_rng.h:67
#define vsf_class(__name)
Definition ooc_class.h:48
Definition vsf_template_rng.h:162
Definition vsf_template_rng.h:172
const vsf_rng_op_t vsf_remapped_rng_op
Definition vsf_remapped_rng.c:37
Generated from commit: vsfteam/vsf@4a4e01c