FreeHIL
Loading...
Searching...
No Matches
FH_CAN06_GlobalVariables.h
Go to the documentation of this file.
1/**
2 * @file
3 * @brief
4 * <b>File Map:</b>\n
5 * <b>FH_Functions</b>, Section <b>FH_CAN</b> (CAN), Peripheral <b>FH_CAN06</b> (CAN 06)\n
6 * (The <b>CAN06 (CAN 06)</b> could be any interested CAN of the micro-controller on which <b>FH</b> source code is ported)\n
7 * Global variables and arrays of CAN06 are defined here
8 * This header file could be included whenever interested by <b>FH user</b>
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/* Define to prevent recursive inclusion -------------------------------------*/
34#ifndef FH_CAN06_GlobalVariables_H
35#define FH_CAN06_GlobalVariables_H
36
37/* Includes ------------------------------------------------------------------*/
39
40#ifdef FH_CAN06 // It is configurable in FH_CAN_Configs.h
41
42#if FH_CAN_MaxPeripheralNumber > 0 // It is configurable in FH_DevicePeripherals.h
43
44 extern volatile uint8_t FH_CAN06_ReceiveBuf[];
45 extern volatile uint16_t FH_CAN06_ReceiveBufIndex;
46
47 extern volatile uint8_t FH_CAN06_SharedDataBuf_8Bits [];
48 extern volatile uint16_t FH_CAN06_SharedDataBuf_16Bits[];
49 extern volatile uint32_t FH_CAN06_SharedDataBuf_32Bits[];
50
51#endif
52
53#endif
54
55#endif