FreeHIL
Loading...
Searching...
No Matches
FH_PWMI_GetStatus_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_PWMI</b> (PWM Input), <b>Cmd</b> (Command), <b>GetStatus</b>, <b>GetStatus_S</b> (GetStatus Set Address)\n
6 * Functions in this file, set the address of the defined <b>FH_Functions</b>, Section <b>FH_PWMI</b> (PWM Input), <b>FH_PWMI_GetStatus_PWMI01-...</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 ------------------------------------------------------------------*/
34#include "../../../../../../../FH_Embedded/FH_Root/FH_Perif/FH_PWMI/Cmd/GetStatus/GetStatus_S/FH_PWMI_GetStatus_S.h"
35
36#include "../../../../../../../FH_Embedded/FH_Root/FH_General/FH_GeneralFunctions/FH_GeneralFunctions.h"
37
38#ifdef FH_PWMI01
40#endif
41#ifdef FH_PWMI02
43#endif
44#ifdef FH_PWMI03
46#endif
47#ifdef FH_PWMI04
49#endif
50#ifdef FH_PWMI05
52#endif
53#ifdef FH_PWMI06
55#endif
56#ifdef FH_PWMI07
58#endif
59#ifdef FH_PWMI08
61#endif
62#ifdef FH_PWMI09
64#endif
65#ifdef FH_PWMI10
67#endif
68#ifdef FH_PWMI11
70#endif
71#ifdef FH_PWMI12
73#endif
74#ifdef FH_PWMI13
76#endif
77#ifdef FH_PWMI14
79#endif
80#ifdef FH_PWMI15
82#endif
83#ifdef FH_PWMI16
85#endif
86#ifdef FH_PWMI17
88#endif
89#ifdef FH_PWMI18
91#endif
92#ifdef FH_PWMI19
94#endif
95#ifdef FH_PWMI20
97#endif
98#ifdef FH_PWMI21
100#endif
101#ifdef FH_PWMI22
103#endif
104#ifdef FH_PWMI23
106#endif
107#ifdef FH_PWMI24
109#endif
110#ifdef FH_PWMI25
112#endif
113#ifdef FH_PWMI26
115#endif
116#ifdef FH_PWMI27
118#endif
119#ifdef FH_PWMI28
121#endif
122#ifdef FH_PWMI29
124#endif
125#ifdef FH_PWMI30
127#endif
128#ifdef FH_PWMI31
130#endif
131#ifdef FH_PWMI32
133#endif
134#ifdef FH_PWMI33
136#endif
137#ifdef FH_PWMI34
139#endif
140#ifdef FH_PWMI35
142#endif
143#ifdef FH_PWMI36
145#endif
146#ifdef FH_PWMI37
148#endif
149#ifdef FH_PWMI38
151#endif
152#ifdef FH_PWMI39
154#endif
155#ifdef FH_PWMI40
157#endif
158#ifdef FH_PWMI41
160#endif
161#ifdef FH_PWMI42
163#endif
164#ifdef FH_PWMI43
166#endif
167#ifdef FH_PWMI44
169#endif
170#ifdef FH_PWMI45
172#endif
173#ifdef FH_PWMI46
175#endif
176#ifdef FH_PWMI47
178#endif
179#ifdef FH_PWMI48
181#endif
182#ifdef FH_PWMI49
184#endif
185#ifdef FH_PWMI50
187#endif
188#ifdef FH_PWMI51
190#endif
191#ifdef FH_PWMI52
193#endif
194#ifdef FH_PWMI53
196#endif
197#ifdef FH_PWMI54
199#endif
200#ifdef FH_PWMI55
202#endif
203#ifdef FH_PWMI56
205#endif
206#ifdef FH_PWMI57
208#endif
209#ifdef FH_PWMI58
211#endif
212#ifdef FH_PWMI59
214#endif
215#ifdef FH_PWMI60
217#endif
218#ifdef FH_PWMI61
220#endif
221#ifdef FH_PWMI62
223#endif
224#ifdef FH_PWMI63
226#endif
227#ifdef FH_PWMI64
229#endif
230
231#if FH_PWMI_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_PWMI</b> (PWM Input), <b>FH_PWMI_GetStatus_PWMI01-...</b> to an array of function pointers
235 *
236 * @param FH_PWMI_GetStatus_FuncPtr
237 * An array of function pointers with FH_PWMI_GetStatus_FuncPtrModel model
238 *
239 * @return None
240 *
241
242*/
243void FH_PWMI_GetStatus_S(FH_PWMI_GetStatus_FuncPtrModel *FH_PWMI_GetStatus_FuncPtr)
244{
245 for (uint8_t i = 0; i < FH_PWMI_MaxPeripheralNumber; i++) // if FH_PWMI_MaxPeripheralNumber > 0
246 {
247 FH_PWMI_GetStatus_FuncPtr[i] = NULL_PTR; // Initialization of the function pointers with null pointer to prevent pointing to undefined addresses
248 }
249
250 #ifdef FH_PWMI01
251 FH_PWMI_GetStatus_FuncPtr[0] = FH_PWMI_GetStatus_PWMI01; // Set the function pointer address with the related function address
252 #endif
253 #ifdef FH_PWMI02
254 FH_PWMI_GetStatus_FuncPtr[1] = FH_PWMI_GetStatus_PWMI02; // Set the function pointer address with the related function address
255 #endif
256 #ifdef FH_PWMI03
257 FH_PWMI_GetStatus_FuncPtr[2] = FH_PWMI_GetStatus_PWMI03; // Set the function pointer address with the related function address
258 #endif
259 #ifdef FH_PWMI04
260 FH_PWMI_GetStatus_FuncPtr[3] = FH_PWMI_GetStatus_PWMI04; // Set the function pointer address with the related function address
261 #endif
262 #ifdef FH_PWMI05
263 FH_PWMI_GetStatus_FuncPtr[4] = FH_PWMI_GetStatus_PWMI05; // Set the function pointer address with the related function address
264 #endif
265 #ifdef FH_PWMI06
266 FH_PWMI_GetStatus_FuncPtr[5] = FH_PWMI_GetStatus_PWMI06; // Set the function pointer address with the related function address
267 #endif
268 #ifdef FH_PWMI07
269 FH_PWMI_GetStatus_FuncPtr[6] = FH_PWMI_GetStatus_PWMI07; // Set the function pointer address with the related function address
270 #endif
271 #ifdef FH_PWMI08
272 FH_PWMI_GetStatus_FuncPtr[7] = FH_PWMI_GetStatus_PWMI08; // Set the function pointer address with the related function address
273 #endif
274 #ifdef FH_PWMI09
275 FH_PWMI_GetStatus_FuncPtr[8] = FH_PWMI_GetStatus_PWMI09; // Set the function pointer address with the related function address
276 #endif
277 #ifdef FH_PWMI10
278 FH_PWMI_GetStatus_FuncPtr[9] = FH_PWMI_GetStatus_PWMI10; // Set the function pointer address with the related function address
279 #endif
280 #ifdef FH_PWMI11
281 FH_PWMI_GetStatus_FuncPtr[10] = FH_PWMI_GetStatus_PWMI11; // Set the function pointer address with the related function address
282 #endif
283 #ifdef FH_PWMI12
284 FH_PWMI_GetStatus_FuncPtr[11] = FH_PWMI_GetStatus_PWMI12; // Set the function pointer address with the related function address
285 #endif
286 #ifdef FH_PWMI13
287 FH_PWMI_GetStatus_FuncPtr[12] = FH_PWMI_GetStatus_PWMI13; // Set the function pointer address with the related function address
288 #endif
289 #ifdef FH_PWMI14
290 FH_PWMI_GetStatus_FuncPtr[13] = FH_PWMI_GetStatus_PWMI14; // Set the function pointer address with the related function address
291 #endif
292 #ifdef FH_PWMI15
293 FH_PWMI_GetStatus_FuncPtr[14] = FH_PWMI_GetStatus_PWMI15; // Set the function pointer address with the related function address
294 #endif
295 #ifdef FH_PWMI16
296 FH_PWMI_GetStatus_FuncPtr[15] = FH_PWMI_GetStatus_PWMI16; // Set the function pointer address with the related function address
297 #endif
298 #ifdef FH_PWMI17
299 FH_PWMI_GetStatus_FuncPtr[16] = FH_PWMI_GetStatus_PWMI17; // Set the function pointer address with the related function address
300 #endif
301 #ifdef FH_PWMI18
302 FH_PWMI_GetStatus_FuncPtr[17] = FH_PWMI_GetStatus_PWMI18; // Set the function pointer address with the related function address
303 #endif
304 #ifdef FH_PWMI19
305 FH_PWMI_GetStatus_FuncPtr[18] = FH_PWMI_GetStatus_PWMI19; // Set the function pointer address with the related function address
306 #endif
307 #ifdef FH_PWMI20
308 FH_PWMI_GetStatus_FuncPtr[19] = FH_PWMI_GetStatus_PWMI20; // Set the function pointer address with the related function address
309 #endif
310 #ifdef FH_PWMI21
311 FH_PWMI_GetStatus_FuncPtr[20] = FH_PWMI_GetStatus_PWMI21; // Set the function pointer address with the related function address
312 #endif
313 #ifdef FH_PWMI22
314 FH_PWMI_GetStatus_FuncPtr[21] = FH_PWMI_GetStatus_PWMI22; // Set the function pointer address with the related function address
315 #endif
316 #ifdef FH_PWMI23
317 FH_PWMI_GetStatus_FuncPtr[22] = FH_PWMI_GetStatus_PWMI23; // Set the function pointer address with the related function address
318 #endif
319 #ifdef FH_PWMI24
320 FH_PWMI_GetStatus_FuncPtr[23] = FH_PWMI_GetStatus_PWMI24; // Set the function pointer address with the related function address
321 #endif
322 #ifdef FH_PWMI25
323 FH_PWMI_GetStatus_FuncPtr[24] = FH_PWMI_GetStatus_PWMI25; // Set the function pointer address with the related function address
324 #endif
325 #ifdef FH_PWMI26
326 FH_PWMI_GetStatus_FuncPtr[25] = FH_PWMI_GetStatus_PWMI26; // Set the function pointer address with the related function address
327 #endif
328 #ifdef FH_PWMI27
329 FH_PWMI_GetStatus_FuncPtr[26] = FH_PWMI_GetStatus_PWMI27; // Set the function pointer address with the related function address
330 #endif
331 #ifdef FH_PWMI28
332 FH_PWMI_GetStatus_FuncPtr[27] = FH_PWMI_GetStatus_PWMI28; // Set the function pointer address with the related function address
333 #endif
334 #ifdef FH_PWMI29
335 FH_PWMI_GetStatus_FuncPtr[28] = FH_PWMI_GetStatus_PWMI29; // Set the function pointer address with the related function address
336 #endif
337 #ifdef FH_PWMI30
338 FH_PWMI_GetStatus_FuncPtr[29] = FH_PWMI_GetStatus_PWMI30; // Set the function pointer address with the related function address
339 #endif
340 #ifdef FH_PWMI31
341 FH_PWMI_GetStatus_FuncPtr[30] = FH_PWMI_GetStatus_PWMI31; // Set the function pointer address with the related function address
342 #endif
343 #ifdef FH_PWMI32
344 FH_PWMI_GetStatus_FuncPtr[31] = FH_PWMI_GetStatus_PWMI32; // Set the function pointer address with the related function address
345 #endif
346 #ifdef FH_PWMI33
347 FH_PWMI_GetStatus_FuncPtr[32] = FH_PWMI_GetStatus_PWMI33; // Set the function pointer address with the related function address
348 #endif
349 #ifdef FH_PWMI34
350 FH_PWMI_GetStatus_FuncPtr[33] = FH_PWMI_GetStatus_PWMI34; // Set the function pointer address with the related function address
351 #endif
352 #ifdef FH_PWMI35
353 FH_PWMI_GetStatus_FuncPtr[34] = FH_PWMI_GetStatus_PWMI35; // Set the function pointer address with the related function address
354 #endif
355 #ifdef FH_PWMI36
356 FH_PWMI_GetStatus_FuncPtr[35] = FH_PWMI_GetStatus_PWMI36; // Set the function pointer address with the related function address
357 #endif
358 #ifdef FH_PWMI37
359 FH_PWMI_GetStatus_FuncPtr[36] = FH_PWMI_GetStatus_PWMI37; // Set the function pointer address with the related function address
360 #endif
361 #ifdef FH_PWMI38
362 FH_PWMI_GetStatus_FuncPtr[37] = FH_PWMI_GetStatus_PWMI38; // Set the function pointer address with the related function address
363 #endif
364 #ifdef FH_PWMI39
365 FH_PWMI_GetStatus_FuncPtr[38] = FH_PWMI_GetStatus_PWMI39; // Set the function pointer address with the related function address
366 #endif
367 #ifdef FH_PWMI40
368 FH_PWMI_GetStatus_FuncPtr[39] = FH_PWMI_GetStatus_PWMI40; // Set the function pointer address with the related function address
369 #endif
370 #ifdef FH_PWMI41
371 FH_PWMI_GetStatus_FuncPtr[40] = FH_PWMI_GetStatus_PWMI41; // Set the function pointer address with the related function address
372 #endif
373 #ifdef FH_PWMI42
374 FH_PWMI_GetStatus_FuncPtr[41] = FH_PWMI_GetStatus_PWMI42; // Set the function pointer address with the related function address
375 #endif
376 #ifdef FH_PWMI43
377 FH_PWMI_GetStatus_FuncPtr[42] = FH_PWMI_GetStatus_PWMI43; // Set the function pointer address with the related function address
378 #endif
379 #ifdef FH_PWMI44
380 FH_PWMI_GetStatus_FuncPtr[43] = FH_PWMI_GetStatus_PWMI44; // Set the function pointer address with the related function address
381 #endif
382 #ifdef FH_PWMI45
383 FH_PWMI_GetStatus_FuncPtr[44] = FH_PWMI_GetStatus_PWMI45; // Set the function pointer address with the related function address
384 #endif
385 #ifdef FH_PWMI46
386 FH_PWMI_GetStatus_FuncPtr[45] = FH_PWMI_GetStatus_PWMI46; // Set the function pointer address with the related function address
387 #endif
388 #ifdef FH_PWMI47
389 FH_PWMI_GetStatus_FuncPtr[46] = FH_PWMI_GetStatus_PWMI47; // Set the function pointer address with the related function address
390 #endif
391 #ifdef FH_PWMI48
392 FH_PWMI_GetStatus_FuncPtr[47] = FH_PWMI_GetStatus_PWMI48; // Set the function pointer address with the related function address
393 #endif
394 #ifdef FH_PWMI49
395 FH_PWMI_GetStatus_FuncPtr[48] = FH_PWMI_GetStatus_PWMI49; // Set the function pointer address with the related function address
396 #endif
397 #ifdef FH_PWMI50
398 FH_PWMI_GetStatus_FuncPtr[49] = FH_PWMI_GetStatus_PWMI50; // Set the function pointer address with the related function address
399 #endif
400 #ifdef FH_PWMI51
401 FH_PWMI_GetStatus_FuncPtr[50] = FH_PWMI_GetStatus_PWMI51; // Set the function pointer address with the related function address
402 #endif
403 #ifdef FH_PWMI52
404 FH_PWMI_GetStatus_FuncPtr[51] = FH_PWMI_GetStatus_PWMI52; // Set the function pointer address with the related function address
405 #endif
406 #ifdef FH_PWMI53
407 FH_PWMI_GetStatus_FuncPtr[52] = FH_PWMI_GetStatus_PWMI53; // Set the function pointer address with the related function address
408 #endif
409 #ifdef FH_PWMI54
410 FH_PWMI_GetStatus_FuncPtr[53] = FH_PWMI_GetStatus_PWMI54; // Set the function pointer address with the related function address
411 #endif
412 #ifdef FH_PWMI55
413 FH_PWMI_GetStatus_FuncPtr[54] = FH_PWMI_GetStatus_PWMI55; // Set the function pointer address with the related function address
414 #endif
415 #ifdef FH_PWMI56
416 FH_PWMI_GetStatus_FuncPtr[55] = FH_PWMI_GetStatus_PWMI56; // Set the function pointer address with the related function address
417 #endif
418 #ifdef FH_PWMI57
419 FH_PWMI_GetStatus_FuncPtr[56] = FH_PWMI_GetStatus_PWMI57; // Set the function pointer address with the related function address
420 #endif
421 #ifdef FH_PWMI58
422 FH_PWMI_GetStatus_FuncPtr[57] = FH_PWMI_GetStatus_PWMI58; // Set the function pointer address with the related function address
423 #endif
424 #ifdef FH_PWMI59
425 FH_PWMI_GetStatus_FuncPtr[58] = FH_PWMI_GetStatus_PWMI59; // Set the function pointer address with the related function address
426 #endif
427 #ifdef FH_PWMI60
428 FH_PWMI_GetStatus_FuncPtr[59] = FH_PWMI_GetStatus_PWMI60; // Set the function pointer address with the related function address
429 #endif
430 #ifdef FH_PWMI61
431 FH_PWMI_GetStatus_FuncPtr[60] = FH_PWMI_GetStatus_PWMI61; // Set the function pointer address with the related function address
432 #endif
433 #ifdef FH_PWMI62
434 FH_PWMI_GetStatus_FuncPtr[61] = FH_PWMI_GetStatus_PWMI62; // Set the function pointer address with the related function address
435 #endif
436 #ifdef FH_PWMI63
437 FH_PWMI_GetStatus_FuncPtr[62] = FH_PWMI_GetStatus_PWMI63; // Set the function pointer address with the related function address
438 #endif
439 #ifdef FH_PWMI64
440 FH_PWMI_GetStatus_FuncPtr[63] = FH_PWMI_GetStatus_PWMI64; // Set the function pointer address with the related function address
441 #endif
442}
443
444#endif