|
FreeHIL
|
File Map:
FH_Root, Section FH_General, FH_GeneralFunctions
All different possible general functions utilized in different parts of the code, go here
More...
Go to the source code of this file.
Functions | |
| uint16_t | FH_ConvertUint8ToUint16 (uint8_t *fh_Uint8) |
| This function converts two 8 bits data (uint8_t) to one 16 bits data (uint16_t). | |
| uint32_t | FH_ConvertUint8ToUint32 (uint8_t *fh_Uint8) |
| This function converts four 8 bits data (uint8_t) to one 32 bits data (uint32_t). | |
File Map:
FH_Root, Section FH_General, FH_GeneralFunctions
All different possible general functions utilized in different parts of the code, go here
SPDX-License-Identifier: Apache-2.0
Copyright 2026 Vahid Hasirchi
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
For more information refer to FreeHIL.com
Definition in file FH_GeneralFunctions.c.
| uint16_t FH_ConvertUint8ToUint16 | ( | uint8_t * | fh_Uint8 | ) |
This function converts two 8 bits data (uint8_t) to one 16 bits data (uint16_t).
| fh_Uint8 | Pointer to the two 8 bits data (uint8_t) |
Definition at line 48 of file FH_GeneralFunctions.c.
References FH_Uint8Uint16::bytes, and FH_Uint8Uint16::value.
Referenced by FH_CAN_SSD16_CAN01(), FH_CAN_SSD16_CAN02(), FH_CAN_SSD16_CAN03(), FH_CAN_SSD16_CAN04(), FH_CAN_SSD16_CAN05(), FH_CAN_SSD16_CAN06(), FH_CAN_SSD16_CAN07(), FH_CAN_SSD16_CAN08(), FH_UART_SSD16_UART01(), FH_UART_SSD16_UART02(), FH_UART_SSD16_UART03(), FH_UART_SSD16_UART04(), FH_UART_SSD16_UART05(), FH_UART_SSD16_UART06(), FH_UART_SSD16_UART07(), and FH_UART_SSD16_UART08().
| uint32_t FH_ConvertUint8ToUint32 | ( | uint8_t * | fh_Uint8 | ) |
This function converts four 8 bits data (uint8_t) to one 32 bits data (uint32_t).
| fh_Uint8 | Pointer to the four 8 bits data (uint8_t) |
Definition at line 69 of file FH_GeneralFunctions.c.
References FH_Uint8Uint32::bytes, and FH_Uint8Uint32::value.
Referenced by FH_CAN_ReceiveW_CAN01(), FH_CAN_ReceiveW_CAN02(), FH_CAN_ReceiveW_CAN03(), FH_CAN_ReceiveW_CAN04(), FH_CAN_ReceiveW_CAN05(), FH_CAN_ReceiveW_CAN06(), FH_CAN_ReceiveW_CAN07(), FH_CAN_ReceiveW_CAN08(), FH_CAN_SSD32_CAN01(), FH_CAN_SSD32_CAN02(), FH_CAN_SSD32_CAN03(), FH_CAN_SSD32_CAN04(), FH_CAN_SSD32_CAN05(), FH_CAN_SSD32_CAN06(), FH_CAN_SSD32_CAN07(), FH_CAN_SSD32_CAN08(), FH_UART_ReceiveW_UART01(), FH_UART_ReceiveW_UART02(), FH_UART_ReceiveW_UART03(), FH_UART_ReceiveW_UART04(), FH_UART_ReceiveW_UART05(), FH_UART_ReceiveW_UART06(), FH_UART_ReceiveW_UART07(), FH_UART_ReceiveW_UART08(), FH_UART_SSD32_UART01(), FH_UART_SSD32_UART02(), FH_UART_SSD32_UART03(), FH_UART_SSD32_UART04(), FH_UART_SSD32_UART05(), FH_UART_SSD32_UART06(), FH_UART_SSD32_UART07(), and FH_UART_SSD32_UART08().