FreeHIL
Loading...
Searching...
No Matches
FH_GeneralFunctions.c File Reference

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).

Detailed Description

File Map:
FH_Root, Section FH_General, FH_GeneralFunctions
All different possible general functions utilized in different parts of the code, go here

Attention
FH user could left this file intact

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.

Function Documentation

◆ FH_ConvertUint8ToUint16()

uint16_t FH_ConvertUint8ToUint16 ( uint8_t * fh_Uint8)

This function converts two 8 bits data (uint8_t) to one 16 bits data (uint16_t).

Parameters
fh_Uint8Pointer to the two 8 bits data (uint8_t)
Returns
The one 16 bits data (uint16_t)
Note
For this to happen, FH_Uint8Uint16 enumeration defined in FH_GeneralFunctions.h is utilized

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().

◆ FH_ConvertUint8ToUint32()