FreeHIL
Loading...
Searching...
No Matches
FH_DO_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_DO</b> (Digital Output), <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_DO</b> (Digital Output), <b>FH_DO_Init_DO01-...</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_DO01
40#endif
41#ifdef FH_DO02
43#endif
44#ifdef FH_DO03
46#endif
47#ifdef FH_DO04
49#endif
50#ifdef FH_DO05
52#endif
53#ifdef FH_DO06
55#endif
56#ifdef FH_DO07
58#endif
59#ifdef FH_DO08
61#endif
62#ifdef FH_DO09
64#endif
65#ifdef FH_DO10
67#endif
68#ifdef FH_DO11
70#endif
71#ifdef FH_DO12
73#endif
74#ifdef FH_DO13
76#endif
77#ifdef FH_DO14
79#endif
80#ifdef FH_DO15
82#endif
83#ifdef FH_DO16
85#endif
86#ifdef FH_DO17
88#endif
89#ifdef FH_DO18
91#endif
92#ifdef FH_DO19
94#endif
95#ifdef FH_DO20
97#endif
98#ifdef FH_DO21
100#endif
101#ifdef FH_DO22
103#endif
104#ifdef FH_DO23
106#endif
107#ifdef FH_DO24
109#endif
110#ifdef FH_DO25
112#endif
113#ifdef FH_DO26
115#endif
116#ifdef FH_DO27
118#endif
119#ifdef FH_DO28
121#endif
122#ifdef FH_DO29
124#endif
125#ifdef FH_DO30
127#endif
128#ifdef FH_DO31
130#endif
131#ifdef FH_DO32
133#endif
134#ifdef FH_DO33
136#endif
137#ifdef FH_DO34
139#endif
140#ifdef FH_DO35
142#endif
143#ifdef FH_DO36
145#endif
146#ifdef FH_DO37
148#endif
149#ifdef FH_DO38
151#endif
152#ifdef FH_DO39
154#endif
155#ifdef FH_DO40
157#endif
158#ifdef FH_DO41
160#endif
161#ifdef FH_DO42
163#endif
164#ifdef FH_DO43
166#endif
167#ifdef FH_DO44
169#endif
170#ifdef FH_DO45
172#endif
173#ifdef FH_DO46
175#endif
176#ifdef FH_DO47
178#endif
179#ifdef FH_DO48
181#endif
182#ifdef FH_DO49
184#endif
185#ifdef FH_DO50
187#endif
188#ifdef FH_DO51
190#endif
191#ifdef FH_DO52
193#endif
194#ifdef FH_DO53
196#endif
197#ifdef FH_DO54
199#endif
200#ifdef FH_DO55
202#endif
203#ifdef FH_DO56
205#endif
206#ifdef FH_DO57
208#endif
209#ifdef FH_DO58
211#endif
212#ifdef FH_DO59
214#endif
215#ifdef FH_DO60
217#endif
218#ifdef FH_DO61
220#endif
221#ifdef FH_DO62
223#endif
224#ifdef FH_DO63
226#endif
227#ifdef FH_DO64
229#endif
230
231#if FH_DO_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_DO</b> (Digital Output), <b>FH_DO_Init_DO01-...</b> to an array of function pointers
235 *
236 * @param FH_DO_Init_FuncPtr
237 * An array of function pointers with FH_DO_Init_FuncPtrModel model
238 *
239 * @return None
240 *
241
242*/
243void FH_DO_Init_S(FH_DO_Init_FuncPtrModel *FH_DO_Init_FuncPtr)
244{
245 for (uint8_t i = 0; i < FH_DO_MaxPeripheralNumber; i++) // if FH_DO_MaxPeripheralNumber > 0
246 {
247 FH_DO_Init_FuncPtr[i] = NULL_PTR; // Initialization of the function pointers with null pointer to prevent pointing to undefined addresses
248 }
249
250 #ifdef FH_DO01
251 FH_DO_Init_FuncPtr[0] = FH_DO_Init_DO01; // Set the function pointer address with the related function address
252 #endif
253 #ifdef FH_DO02
254 FH_DO_Init_FuncPtr[1] = FH_DO_Init_DO02; // Set the function pointer address with the related function address
255 #endif
256 #ifdef FH_DO03
257 FH_DO_Init_FuncPtr[2] = FH_DO_Init_DO03; // Set the function pointer address with the related function address
258 #endif
259 #ifdef FH_DO04
260 FH_DO_Init_FuncPtr[3] = FH_DO_Init_DO04; // Set the function pointer address with the related function address
261 #endif
262 #ifdef FH_DO05
263 FH_DO_Init_FuncPtr[4] = FH_DO_Init_DO05; // Set the function pointer address with the related function address
264 #endif
265 #ifdef FH_DO06
266 FH_DO_Init_FuncPtr[5] = FH_DO_Init_DO06; // Set the function pointer address with the related function address
267 #endif
268 #ifdef FH_DO07
269 FH_DO_Init_FuncPtr[6] = FH_DO_Init_DO07; // Set the function pointer address with the related function address
270 #endif
271 #ifdef FH_DO08
272 FH_DO_Init_FuncPtr[7] = FH_DO_Init_DO08; // Set the function pointer address with the related function address
273 #endif
274 #ifdef FH_DO09
275 FH_DO_Init_FuncPtr[8] = FH_DO_Init_DO09; // Set the function pointer address with the related function address
276 #endif
277 #ifdef FH_DO10
278 FH_DO_Init_FuncPtr[9] = FH_DO_Init_DO10; // Set the function pointer address with the related function address
279 #endif
280 #ifdef FH_DO11
281 FH_DO_Init_FuncPtr[10] = FH_DO_Init_DO11; // Set the function pointer address with the related function address
282 #endif
283 #ifdef FH_DO12
284 FH_DO_Init_FuncPtr[11] = FH_DO_Init_DO12; // Set the function pointer address with the related function address
285 #endif
286 #ifdef FH_DO13
287 FH_DO_Init_FuncPtr[12] = FH_DO_Init_DO13; // Set the function pointer address with the related function address
288 #endif
289 #ifdef FH_DO14
290 FH_DO_Init_FuncPtr[13] = FH_DO_Init_DO14; // Set the function pointer address with the related function address
291 #endif
292 #ifdef FH_DO15
293 FH_DO_Init_FuncPtr[14] = FH_DO_Init_DO15; // Set the function pointer address with the related function address
294 #endif
295 #ifdef FH_DO16
296 FH_DO_Init_FuncPtr[15] = FH_DO_Init_DO16; // Set the function pointer address with the related function address
297 #endif
298 #ifdef FH_DO17
299 FH_DO_Init_FuncPtr[16] = FH_DO_Init_DO17; // Set the function pointer address with the related function address
300 #endif
301 #ifdef FH_DO18
302 FH_DO_Init_FuncPtr[17] = FH_DO_Init_DO18; // Set the function pointer address with the related function address
303 #endif
304 #ifdef FH_DO19
305 FH_DO_Init_FuncPtr[18] = FH_DO_Init_DO19; // Set the function pointer address with the related function address
306 #endif
307 #ifdef FH_DO20
308 FH_DO_Init_FuncPtr[19] = FH_DO_Init_DO20; // Set the function pointer address with the related function address
309 #endif
310 #ifdef FH_DO21
311 FH_DO_Init_FuncPtr[20] = FH_DO_Init_DO21; // Set the function pointer address with the related function address
312 #endif
313 #ifdef FH_DO22
314 FH_DO_Init_FuncPtr[21] = FH_DO_Init_DO22; // Set the function pointer address with the related function address
315 #endif
316 #ifdef FH_DO23
317 FH_DO_Init_FuncPtr[22] = FH_DO_Init_DO23; // Set the function pointer address with the related function address
318 #endif
319 #ifdef FH_DO24
320 FH_DO_Init_FuncPtr[23] = FH_DO_Init_DO24; // Set the function pointer address with the related function address
321 #endif
322 #ifdef FH_DO25
323 FH_DO_Init_FuncPtr[24] = FH_DO_Init_DO25; // Set the function pointer address with the related function address
324 #endif
325 #ifdef FH_DO26
326 FH_DO_Init_FuncPtr[25] = FH_DO_Init_DO26; // Set the function pointer address with the related function address
327 #endif
328 #ifdef FH_DO27
329 FH_DO_Init_FuncPtr[26] = FH_DO_Init_DO27; // Set the function pointer address with the related function address
330 #endif
331 #ifdef FH_DO28
332 FH_DO_Init_FuncPtr[27] = FH_DO_Init_DO28; // Set the function pointer address with the related function address
333 #endif
334 #ifdef FH_DO29
335 FH_DO_Init_FuncPtr[28] = FH_DO_Init_DO29; // Set the function pointer address with the related function address
336 #endif
337 #ifdef FH_DO30
338 FH_DO_Init_FuncPtr[29] = FH_DO_Init_DO30; // Set the function pointer address with the related function address
339 #endif
340 #ifdef FH_DO31
341 FH_DO_Init_FuncPtr[30] = FH_DO_Init_DO31; // Set the function pointer address with the related function address
342 #endif
343 #ifdef FH_DO32
344 FH_DO_Init_FuncPtr[31] = FH_DO_Init_DO32; // Set the function pointer address with the related function address
345 #endif
346 #ifdef FH_DO33
347 FH_DO_Init_FuncPtr[32] = FH_DO_Init_DO33; // Set the function pointer address with the related function address
348 #endif
349 #ifdef FH_DO34
350 FH_DO_Init_FuncPtr[33] = FH_DO_Init_DO34; // Set the function pointer address with the related function address
351 #endif
352 #ifdef FH_DO35
353 FH_DO_Init_FuncPtr[34] = FH_DO_Init_DO35; // Set the function pointer address with the related function address
354 #endif
355 #ifdef FH_DO36
356 FH_DO_Init_FuncPtr[35] = FH_DO_Init_DO36; // Set the function pointer address with the related function address
357 #endif
358 #ifdef FH_DO37
359 FH_DO_Init_FuncPtr[36] = FH_DO_Init_DO37; // Set the function pointer address with the related function address
360 #endif
361 #ifdef FH_DO38
362 FH_DO_Init_FuncPtr[37] = FH_DO_Init_DO38; // Set the function pointer address with the related function address
363 #endif
364 #ifdef FH_DO39
365 FH_DO_Init_FuncPtr[38] = FH_DO_Init_DO39; // Set the function pointer address with the related function address
366 #endif
367 #ifdef FH_DO40
368 FH_DO_Init_FuncPtr[39] = FH_DO_Init_DO40; // Set the function pointer address with the related function address
369 #endif
370 #ifdef FH_DO41
371 FH_DO_Init_FuncPtr[40] = FH_DO_Init_DO41; // Set the function pointer address with the related function address
372 #endif
373 #ifdef FH_DO42
374 FH_DO_Init_FuncPtr[41] = FH_DO_Init_DO42; // Set the function pointer address with the related function address
375 #endif
376 #ifdef FH_DO43
377 FH_DO_Init_FuncPtr[42] = FH_DO_Init_DO43; // Set the function pointer address with the related function address
378 #endif
379 #ifdef FH_DO44
380 FH_DO_Init_FuncPtr[43] = FH_DO_Init_DO44; // Set the function pointer address with the related function address
381 #endif
382 #ifdef FH_DO45
383 FH_DO_Init_FuncPtr[44] = FH_DO_Init_DO45; // Set the function pointer address with the related function address
384 #endif
385 #ifdef FH_DO46
386 FH_DO_Init_FuncPtr[45] = FH_DO_Init_DO46; // Set the function pointer address with the related function address
387 #endif
388 #ifdef FH_DO47
389 FH_DO_Init_FuncPtr[46] = FH_DO_Init_DO47; // Set the function pointer address with the related function address
390 #endif
391 #ifdef FH_DO48
392 FH_DO_Init_FuncPtr[47] = FH_DO_Init_DO48; // Set the function pointer address with the related function address
393 #endif
394 #ifdef FH_DO49
395 FH_DO_Init_FuncPtr[48] = FH_DO_Init_DO49; // Set the function pointer address with the related function address
396 #endif
397 #ifdef FH_DO50
398 FH_DO_Init_FuncPtr[49] = FH_DO_Init_DO50; // Set the function pointer address with the related function address
399 #endif
400 #ifdef FH_DO51
401 FH_DO_Init_FuncPtr[50] = FH_DO_Init_DO51; // Set the function pointer address with the related function address
402 #endif
403 #ifdef FH_DO52
404 FH_DO_Init_FuncPtr[51] = FH_DO_Init_DO52; // Set the function pointer address with the related function address
405 #endif
406 #ifdef FH_DO53
407 FH_DO_Init_FuncPtr[52] = FH_DO_Init_DO53; // Set the function pointer address with the related function address
408 #endif
409 #ifdef FH_DO54
410 FH_DO_Init_FuncPtr[53] = FH_DO_Init_DO54; // Set the function pointer address with the related function address
411 #endif
412 #ifdef FH_DO55
413 FH_DO_Init_FuncPtr[54] = FH_DO_Init_DO55; // Set the function pointer address with the related function address
414 #endif
415 #ifdef FH_DO56
416 FH_DO_Init_FuncPtr[55] = FH_DO_Init_DO56; // Set the function pointer address with the related function address
417 #endif
418 #ifdef FH_DO57
419 FH_DO_Init_FuncPtr[56] = FH_DO_Init_DO57; // Set the function pointer address with the related function address
420 #endif
421 #ifdef FH_DO58
422 FH_DO_Init_FuncPtr[57] = FH_DO_Init_DO58; // Set the function pointer address with the related function address
423 #endif
424 #ifdef FH_DO59
425 FH_DO_Init_FuncPtr[58] = FH_DO_Init_DO59; // Set the function pointer address with the related function address
426 #endif
427 #ifdef FH_DO60
428 FH_DO_Init_FuncPtr[59] = FH_DO_Init_DO60; // Set the function pointer address with the related function address
429 #endif
430 #ifdef FH_DO61
431 FH_DO_Init_FuncPtr[60] = FH_DO_Init_DO61; // Set the function pointer address with the related function address
432 #endif
433 #ifdef FH_DO62
434 FH_DO_Init_FuncPtr[61] = FH_DO_Init_DO62; // Set the function pointer address with the related function address
435 #endif
436 #ifdef FH_DO63
437 FH_DO_Init_FuncPtr[62] = FH_DO_Init_DO63; // Set the function pointer address with the related function address
438 #endif
439 #ifdef FH_DO64
440 FH_DO_Init_FuncPtr[63] = FH_DO_Init_DO64; // Set the function pointer address with the related function address
441 #endif
442}
443
444#endif