FreeHIL
Loading...
Searching...
No Matches
FH_AI_Init_S.c
Go to the documentation of this file.
1/**
2 * @file
3 * @brief
4 * <b>File Map:</b>\n
5 * <b>FH_Root</b>, Section <b>FH_Perif</b>, <b>FH_AI</b> (Analog Input), <b>Cmd</b> (Command), <b>Init</b>, <b>Init_S</b> (Init Set Address)\n
6 * Functions in this file, set the address of the defined <b>FH_Functions</b>, Section <b>FH_AI</b> (Analog Input), <b>FH_AI_Init_AI01-...</b> to an array of function pointers
7 *
8 * @attention <b>FH</b> user could left this file intact
9 *
10 *******************************************************************************
11 * SPDX-License-Identifier: Apache-2.0
12 *
13 * Copyright 2026 Vahid Hasirchi
14 *
15 * Licensed under the Apache License, Version 2.0 (the "License");
16 * you may not use this file except in compliance with the License.
17 * You may obtain a copy of the License at
18 *
19 * http://www.apache.org/licenses/LICENSE-2.0
20 *
21 * Unless required by applicable law or agreed to in writing, software
22 * distributed under the License is distributed on an "AS IS" BASIS,
23 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24 * See the License for the specific language governing permissions and
25 * limitations under the License.
26 ********************************************************************************
27
28 *
29 * <b>For more information refer to FreeHIL.com</b>
30 *
31*/
32
33/* Includes ------------------------------------------------------------------*/
35
36#include "../../../../../../../FH_Embedded/FH_Root/FH_General/FH_GeneralFunctions/FH_GeneralFunctions.h"
37
38#ifdef FH_AI01
40#endif
41#ifdef FH_AI02
43#endif
44#ifdef FH_AI03
46#endif
47#ifdef FH_AI04
49#endif
50#ifdef FH_AI05
52#endif
53#ifdef FH_AI06
55#endif
56#ifdef FH_AI07
58#endif
59#ifdef FH_AI08
61#endif
62#ifdef FH_AI09
64#endif
65#ifdef FH_AI10
67#endif
68#ifdef FH_AI11
70#endif
71#ifdef FH_AI12
73#endif
74#ifdef FH_AI13
76#endif
77#ifdef FH_AI14
79#endif
80#ifdef FH_AI15
82#endif
83#ifdef FH_AI16
85#endif
86#ifdef FH_AI17
88#endif
89#ifdef FH_AI18
91#endif
92#ifdef FH_AI19
94#endif
95#ifdef FH_AI20
97#endif
98#ifdef FH_AI21
100#endif
101#ifdef FH_AI22
103#endif
104#ifdef FH_AI23
106#endif
107#ifdef FH_AI24
109#endif
110#ifdef FH_AI25
112#endif
113#ifdef FH_AI26
115#endif
116#ifdef FH_AI27
118#endif
119#ifdef FH_AI28
121#endif
122#ifdef FH_AI29
124#endif
125#ifdef FH_AI30
127#endif
128#ifdef FH_AI31
130#endif
131#ifdef FH_AI32
133#endif
134#ifdef FH_AI33
136#endif
137#ifdef FH_AI34
139#endif
140#ifdef FH_AI35
142#endif
143#ifdef FH_AI36
145#endif
146#ifdef FH_AI37
148#endif
149#ifdef FH_AI38
151#endif
152#ifdef FH_AI39
154#endif
155#ifdef FH_AI40
157#endif
158#ifdef FH_AI41
160#endif
161#ifdef FH_AI42
163#endif
164#ifdef FH_AI43
166#endif
167#ifdef FH_AI44
169#endif
170#ifdef FH_AI45
172#endif
173#ifdef FH_AI46
175#endif
176#ifdef FH_AI47
178#endif
179#ifdef FH_AI48
181#endif
182#ifdef FH_AI49
184#endif
185#ifdef FH_AI50
187#endif
188#ifdef FH_AI51
190#endif
191#ifdef FH_AI52
193#endif
194#ifdef FH_AI53
196#endif
197#ifdef FH_AI54
199#endif
200#ifdef FH_AI55
202#endif
203#ifdef FH_AI56
205#endif
206#ifdef FH_AI57
208#endif
209#ifdef FH_AI58
211#endif
212#ifdef FH_AI59
214#endif
215#ifdef FH_AI60
217#endif
218#ifdef FH_AI61
220#endif
221#ifdef FH_AI62
223#endif
224#ifdef FH_AI63
226#endif
227#ifdef FH_AI64
229#endif
230
231#if FH_AI_MaxPeripheralNumber > 0 // It is configurable in FH_DevicePeripherals.h
232
233/**
234 * @brief This function sets the address of the defined <b>FH_Functions</b>, Section <b>FH_AI</b> (Analog Input), <b>FH_AI_Init_AI01-...</b> to an array of function pointers
235 *
236 * @param FH_AI_Init_FuncPtr
237 * An array of function pointers with FH_AI_Init_FuncPtrModel model
238 *
239 * @return None
240 *
241
242*/
243void FH_AI_Init_S(FH_AI_Init_FuncPtrModel *FH_AI_Init_FuncPtr)
244{
245 for (uint8_t i = 0; i < FH_AI_MaxPeripheralNumber; i++) // if FH_AI_MaxPeripheralNumber > 0
246 {
247 FH_AI_Init_FuncPtr[i] = NULL_PTR; // Initialization of the function pointers with null pointer to prevent pointing to undefined addresses
248 }
249
250 #ifdef FH_AI01
251 FH_AI_Init_FuncPtr[0] = FH_AI_Init_AI01; // Set the function pointer address with the related function address
252 #endif
253 #ifdef FH_AI02
254 FH_AI_Init_FuncPtr[1] = FH_AI_Init_AI02; // Set the function pointer address with the related function address
255 #endif
256 #ifdef FH_AI03
257 FH_AI_Init_FuncPtr[2] = FH_AI_Init_AI03; // Set the function pointer address with the related function address
258 #endif
259 #ifdef FH_AI04
260 FH_AI_Init_FuncPtr[3] = FH_AI_Init_AI04; // Set the function pointer address with the related function address
261 #endif
262 #ifdef FH_AI05
263 FH_AI_Init_FuncPtr[4] = FH_AI_Init_AI05; // Set the function pointer address with the related function address
264 #endif
265 #ifdef FH_AI06
266 FH_AI_Init_FuncPtr[5] = FH_AI_Init_AI06; // Set the function pointer address with the related function address
267 #endif
268 #ifdef FH_AI07
269 FH_AI_Init_FuncPtr[6] = FH_AI_Init_AI07; // Set the function pointer address with the related function address
270 #endif
271 #ifdef FH_AI08
272 FH_AI_Init_FuncPtr[7] = FH_AI_Init_AI08; // Set the function pointer address with the related function address
273 #endif
274 #ifdef FH_AI09
275 FH_AI_Init_FuncPtr[8] = FH_AI_Init_AI09; // Set the function pointer address with the related function address
276 #endif
277 #ifdef FH_AI10
278 FH_AI_Init_FuncPtr[9] = FH_AI_Init_AI10; // Set the function pointer address with the related function address
279 #endif
280 #ifdef FH_AI11
281 FH_AI_Init_FuncPtr[10] = FH_AI_Init_AI11; // Set the function pointer address with the related function address
282 #endif
283 #ifdef FH_AI12
284 FH_AI_Init_FuncPtr[11] = FH_AI_Init_AI12; // Set the function pointer address with the related function address
285 #endif
286 #ifdef FH_AI13
287 FH_AI_Init_FuncPtr[12] = FH_AI_Init_AI13; // Set the function pointer address with the related function address
288 #endif
289 #ifdef FH_AI14
290 FH_AI_Init_FuncPtr[13] = FH_AI_Init_AI14; // Set the function pointer address with the related function address
291 #endif
292 #ifdef FH_AI15
293 FH_AI_Init_FuncPtr[14] = FH_AI_Init_AI15; // Set the function pointer address with the related function address
294 #endif
295 #ifdef FH_AI16
296 FH_AI_Init_FuncPtr[15] = FH_AI_Init_AI16; // Set the function pointer address with the related function address
297 #endif
298 #ifdef FH_AI17
299 FH_AI_Init_FuncPtr[16] = FH_AI_Init_AI17; // Set the function pointer address with the related function address
300 #endif
301 #ifdef FH_AI18
302 FH_AI_Init_FuncPtr[17] = FH_AI_Init_AI18; // Set the function pointer address with the related function address
303 #endif
304 #ifdef FH_AI19
305 FH_AI_Init_FuncPtr[18] = FH_AI_Init_AI19; // Set the function pointer address with the related function address
306 #endif
307 #ifdef FH_AI20
308 FH_AI_Init_FuncPtr[19] = FH_AI_Init_AI20; // Set the function pointer address with the related function address
309 #endif
310 #ifdef FH_AI21
311 FH_AI_Init_FuncPtr[20] = FH_AI_Init_AI21; // Set the function pointer address with the related function address
312 #endif
313 #ifdef FH_AI22
314 FH_AI_Init_FuncPtr[21] = FH_AI_Init_AI22; // Set the function pointer address with the related function address
315 #endif
316 #ifdef FH_AI23
317 FH_AI_Init_FuncPtr[22] = FH_AI_Init_AI23; // Set the function pointer address with the related function address
318 #endif
319 #ifdef FH_AI24
320 FH_AI_Init_FuncPtr[23] = FH_AI_Init_AI24; // Set the function pointer address with the related function address
321 #endif
322 #ifdef FH_AI25
323 FH_AI_Init_FuncPtr[24] = FH_AI_Init_AI25; // Set the function pointer address with the related function address
324 #endif
325 #ifdef FH_AI26
326 FH_AI_Init_FuncPtr[25] = FH_AI_Init_AI26; // Set the function pointer address with the related function address
327 #endif
328 #ifdef FH_AI27
329 FH_AI_Init_FuncPtr[26] = FH_AI_Init_AI27; // Set the function pointer address with the related function address
330 #endif
331 #ifdef FH_AI28
332 FH_AI_Init_FuncPtr[27] = FH_AI_Init_AI28; // Set the function pointer address with the related function address
333 #endif
334 #ifdef FH_AI29
335 FH_AI_Init_FuncPtr[28] = FH_AI_Init_AI29; // Set the function pointer address with the related function address
336 #endif
337 #ifdef FH_AI30
338 FH_AI_Init_FuncPtr[29] = FH_AI_Init_AI30; // Set the function pointer address with the related function address
339 #endif
340 #ifdef FH_AI31
341 FH_AI_Init_FuncPtr[30] = FH_AI_Init_AI31; // Set the function pointer address with the related function address
342 #endif
343 #ifdef FH_AI32
344 FH_AI_Init_FuncPtr[31] = FH_AI_Init_AI32; // Set the function pointer address with the related function address
345 #endif
346 #ifdef FH_AI33
347 FH_AI_Init_FuncPtr[32] = FH_AI_Init_AI33; // Set the function pointer address with the related function address
348 #endif
349 #ifdef FH_AI34
350 FH_AI_Init_FuncPtr[33] = FH_AI_Init_AI34; // Set the function pointer address with the related function address
351 #endif
352 #ifdef FH_AI35
353 FH_AI_Init_FuncPtr[34] = FH_AI_Init_AI35; // Set the function pointer address with the related function address
354 #endif
355 #ifdef FH_AI36
356 FH_AI_Init_FuncPtr[35] = FH_AI_Init_AI36; // Set the function pointer address with the related function address
357 #endif
358 #ifdef FH_AI37
359 FH_AI_Init_FuncPtr[36] = FH_AI_Init_AI37; // Set the function pointer address with the related function address
360 #endif
361 #ifdef FH_AI38
362 FH_AI_Init_FuncPtr[37] = FH_AI_Init_AI38; // Set the function pointer address with the related function address
363 #endif
364 #ifdef FH_AI39
365 FH_AI_Init_FuncPtr[38] = FH_AI_Init_AI39; // Set the function pointer address with the related function address
366 #endif
367 #ifdef FH_AI40
368 FH_AI_Init_FuncPtr[39] = FH_AI_Init_AI40; // Set the function pointer address with the related function address
369 #endif
370 #ifdef FH_AI41
371 FH_AI_Init_FuncPtr[40] = FH_AI_Init_AI41; // Set the function pointer address with the related function address
372 #endif
373 #ifdef FH_AI42
374 FH_AI_Init_FuncPtr[41] = FH_AI_Init_AI42; // Set the function pointer address with the related function address
375 #endif
376 #ifdef FH_AI43
377 FH_AI_Init_FuncPtr[42] = FH_AI_Init_AI43; // Set the function pointer address with the related function address
378 #endif
379 #ifdef FH_AI44
380 FH_AI_Init_FuncPtr[43] = FH_AI_Init_AI44; // Set the function pointer address with the related function address
381 #endif
382 #ifdef FH_AI45
383 FH_AI_Init_FuncPtr[44] = FH_AI_Init_AI45; // Set the function pointer address with the related function address
384 #endif
385 #ifdef FH_AI46
386 FH_AI_Init_FuncPtr[45] = FH_AI_Init_AI46; // Set the function pointer address with the related function address
387 #endif
388 #ifdef FH_AI47
389 FH_AI_Init_FuncPtr[46] = FH_AI_Init_AI47; // Set the function pointer address with the related function address
390 #endif
391 #ifdef FH_AI48
392 FH_AI_Init_FuncPtr[47] = FH_AI_Init_AI48; // Set the function pointer address with the related function address
393 #endif
394 #ifdef FH_AI49
395 FH_AI_Init_FuncPtr[48] = FH_AI_Init_AI49; // Set the function pointer address with the related function address
396 #endif
397 #ifdef FH_AI50
398 FH_AI_Init_FuncPtr[49] = FH_AI_Init_AI50; // Set the function pointer address with the related function address
399 #endif
400 #ifdef FH_AI51
401 FH_AI_Init_FuncPtr[50] = FH_AI_Init_AI51; // Set the function pointer address with the related function address
402 #endif
403 #ifdef FH_AI52
404 FH_AI_Init_FuncPtr[51] = FH_AI_Init_AI52; // Set the function pointer address with the related function address
405 #endif
406 #ifdef FH_AI53
407 FH_AI_Init_FuncPtr[52] = FH_AI_Init_AI53; // Set the function pointer address with the related function address
408 #endif
409 #ifdef FH_AI54
410 FH_AI_Init_FuncPtr[53] = FH_AI_Init_AI54; // Set the function pointer address with the related function address
411 #endif
412 #ifdef FH_AI55
413 FH_AI_Init_FuncPtr[54] = FH_AI_Init_AI55; // Set the function pointer address with the related function address
414 #endif
415 #ifdef FH_AI56
416 FH_AI_Init_FuncPtr[55] = FH_AI_Init_AI56; // Set the function pointer address with the related function address
417 #endif
418 #ifdef FH_AI57
419 FH_AI_Init_FuncPtr[56] = FH_AI_Init_AI57; // Set the function pointer address with the related function address
420 #endif
421 #ifdef FH_AI58
422 FH_AI_Init_FuncPtr[57] = FH_AI_Init_AI58; // Set the function pointer address with the related function address
423 #endif
424 #ifdef FH_AI59
425 FH_AI_Init_FuncPtr[58] = FH_AI_Init_AI59; // Set the function pointer address with the related function address
426 #endif
427 #ifdef FH_AI60
428 FH_AI_Init_FuncPtr[59] = FH_AI_Init_AI60; // Set the function pointer address with the related function address
429 #endif
430 #ifdef FH_AI61
431 FH_AI_Init_FuncPtr[60] = FH_AI_Init_AI61; // Set the function pointer address with the related function address
432 #endif
433 #ifdef FH_AI62
434 FH_AI_Init_FuncPtr[61] = FH_AI_Init_AI62; // Set the function pointer address with the related function address
435 #endif
436 #ifdef FH_AI63
437 FH_AI_Init_FuncPtr[62] = FH_AI_Init_AI63; // Set the function pointer address with the related function address
438 #endif
439 #ifdef FH_AI64
440 FH_AI_Init_FuncPtr[63] = FH_AI_Init_AI64; // Set the function pointer address with the related function address
441 #endif
442}
443
444#endif