ConOpSys V2970  P004.07
ANVILEX control operating system
Functions
Anvilex_Library.cpp File Reference

Anvilex library implementation source file. More...

#include <string.h>
#include <ctype.h>
#include <math.h>
#include "Anvilex_Library.h"
Include dependency graph for Anvilex_Library.cpp:

Functions

BOOL Decode_Hex_Buffer (C8 *c8_Input_Buffer, UC8 *u8_Output_Buffer, U16 u16_Input_Size, U16 u16_Output_Size)
 Decode hex string to 8 bit unsigned integer representation. More...
 
BOOL Is_Integer (C8 *InputString)
 Check input string for integer representation. More...
 
BOOL Is_Float (C8 *InputString)
 Check input string for floating point representation. More...
 
BOOL Is_Hex (C8 *InputString)
 Check input string for hexadecimal representation. More...
 
BOOL Is_Odd (U32 u32_Value)
 Check for input 32-bit unsigned value is odd. More...
 
BOOL Is_Even (U32 u32_Value)
 Check for input 32-bit unsigned value is even. More...
 
BOOL Convert_U8_To_S7 (U8 u8_Input_Value, S7 *s7_Output_Value)
 Convert 8 bit unsigned integer (U8) to 7-segment indicator code (S7) More...
 
BOOL Convert_C8_To_S7 (C8 c8_Input_Value, S7 *s7_Output_Value)
 Convert 8 bit chaaracter (C8) to 7-segment indicator code (S7) More...
 
BOOL Convert_C8_To_S7 (C8 c8_Input_Value, BOOL bool_Decimal_Point, S7 *s7_Output_Value)
 Convert 8 bit character (C8) to 7-segment indicator code (S7) and insert decomal point information. More...
 
VOID Convert_U16_To_S7_String (U16 u16_Input_Value, S7 *s7_Output_String)
 Convert 16 bit unsigned integer (U16) to 7-segment indicator code (S7) string. More...
 
U8 Byte_To_BCD2 (U8 u8_Value)
 Convert 8 bit-unsigned integer value (U8) to two digit BCD2 code (U8) More...
 
U8 BCD2_To_Byte (U8 u8_Value)
 Convert two digit BCD2 code (U8) to 8-bit unsigned integer value (U8) More...
 
U8 Hex_To_U8 (C8 c8_Value)
 
C8 Low_Nibble_To_Hex (U8 u8_Value)
 
C8 High_Nibble_To_Hex (U8 u8_Value)
 
U8 Bit_Swap (U8 u8_Value)
 Bit swaping. More...
 
U16 Swap_Bytes_U16 (U16 u16_Value)
 
U32 Swap_Bytes_U32 (U32 u32_Value)
 
BOOL Is_Bit_Set (U16 u16_Value, U8 u8_Index)
 
U16 Convert_U32_To_U16_Satureted (U32 u32_Input_Value)
 Convert 32-bit unsigned integer number (U32) to 16-bit unsigned indeger number (U16) with saturation at the bounds of datatype. More...
 
U16 Convert_U64_To_U16_Satureted (U64 u64_Input_Value)
 Convert 64-bit unsigned integer number (U64) to 16-bit unsigned indeger number (U16) with saturation at the bounds of datatype. More...
 
I16 Convert_F32_To_Saturated_I16 (F32 f32_Input_Value)
 Convert 32-bit floating point number (F32) to 16-bit signed indeger number (I16) with saturation at the bounds of datatype. More...
 
U16 Convert_F32_To_Saturated_U16 (F32 f32_Input_Value)
 Convert 32 bit floating point number (F32) to 16 bit unsigned indeger number (U16) with saturation at the bounds of datatype. More...
 
VOID Split_U32 (U32 u32_Input_Value, U16 *u16_Output_1, U16 *u16_Output_0)
 
U16 Compose_U16 (U8 u8_Input_Byte_1, U8 u8_Input_Byte_0)
 Compose U16 value from U8 values. More...
 
U32 Compose_U32 (U8 u8_Input_Byte_3, U8 u8_Input_Byte_2, U8 u8_Input_Byte_1, U8 u8_Input_Byte_0)
 Compose U32 value from U8 values. More...
 
U32 Compose_U32 (U16 u16_Input_1, U16 u16_Input_0)
 Compose U32 value from U16 values. More...
 
U64 Compose_U64 (U16 u16_Input_3, U16 u16_Input_2, U16 u16_Input_1, U16 u16_Input_0)
 Compose U64 value from U16 values. More...
 
U64 Compose_U64 (U32 u32_Input_1, U32 u32_Input_0)
 Compose U64 value from U32 values. More...
 
F32 Compose_F32 (U8 u8_Input_Byte_3, U8 u8_Input_Byte_2, U8 u8_Input_Byte_1, U8 u8_Input_Byte_0)
 Compose F32 value from U8 values. More...
 
U8 Extract_U8_From_U16 (U16 u16_Value, U8 u8_Index)
 Extract U8 value from U16 value. More...
 
U8 Extract_U8_From_U32 (U32 u32_Value, U8 u8_Index)
 Extract U8 value from U32 value. More...
 
U16 Extract_U16_From_U32 (U32 u32_Value, U8 u8_Index)
 Extract U16 value from U32 value. More...
 
U8 Extract_U8_From_F32 (F32 f32_Value, U8 u8_Index)
 Extract U8 value from F32 value. More...
 
U8 Extract_U8_From_I8 (I8 i8_Value)
 Extract U8 value from I8 value. More...
 
U8 Extract_U8_From_I16 (I16 i16_Value, U8 u8_Index)
 Extract U8 value from I16 value. More...
 
U8 Extract_U8_From_I32 (I32 i32_Value, U8 u8_Index)
 Extract U8 value from I32 value. More...
 
BOOL Increment_Saturated (U8 *u8_Value)
 
BOOL Increment_Saturated (U8 *u8_Value, U8 u8_Saturation)
 
BOOL Increment_Saturated (U16 *u16_Value)
 
BOOL Increment_Saturated (U16 *u16_Value, U16 u16_Saturation)
 
BOOL Increment_Saturated (U32 *u32_Value)
 
BOOL Increment_Saturated (U32 *u32_Value, U32 u32_Saturation)
 
BOOL Increment_Saturated (U64 *u64_Value)
 
BOOL Increment_Saturated (U64 *u64_Value, U64 u64_Saturation)
 
BOOL Increment_Saturated (F32 *f32_Value, F32 f32_Step, F32 f32_Saturation)
 
BOOL Decrement_Saturated (U8 *u8_Value)
 
BOOL Decrement_Saturated (U8 *u8_Value, U8 u8_Saturation)
 
BOOL Decrement_Saturated (U16 *u16_Value)
 
BOOL Decrement_Saturated (U16 *u16_Value, U16 u16_Saturation)
 
BOOL Decrement_Saturated (U32 *u32_Value)
 
BOOL Decrement_Saturated (U32 *u32_Value, U32 u32_Saturation)
 
BOOL Decrement_Saturated (F32 *f32_Value, F32 f32_Step, F32 f32_Saturation)
 
BOOL Increment_Overflowed (U8 *u8_Value, U8 u8_Maximal_Value)
 
BOOL Increment_Overflowed (U16 *u16_Value, U16 u16_Maximal_Value)
 
BOOL Increment_Overflowed (U32 *u32_Value, U32 u32_Maximal_Value)
 
BOOL Increment_Overflowed (F32 *f32_Value, F32 f32_Step, F32 f32_Initial, F32 f32_Saturation)
 
U8 Maximum_U8 (U8 u8_Value_1, U8 u8_Value_2)
 Return maximum value from two U8 values. More...
 
U16 Maximum_U16 (U16 u16_Value_1, U16 u16_Value_2)
 Return maximum value from two U16 values. More...
 
U32 Maximum_U32 (U32 u32_Value_1, U32 u32_Value_2)
 Return maximum value from two U32 values. More...
 
U64 Maximum_U64 (U64 u64_Value_1, U64 u64_Value_2)
 Return maximum value from two U64 values. More...
 
BOOL Is_In_Range_Less_Greater (U16 u16_Value, U16 u16_Low_Bounds, U16 u16_High_Bounds)
 
BOOL Is_In_Range_Less_Greater (U64 u64_Value, U64 u64_Low_Bounds, U64 u64_High_Bounds)
 
BOOL Is_In_Range_Less_Greater (F32 f32_Value, F32 f32_Low_Bounds, F32 f32_High_Bounds)
 
VOID Seconds_To_HMS (U32 u32_Time, U32 *u32_Hours, U32 *u32_Minutes, U32 *u32_Seconds)
 
VOID Limit_Low_High_F32 (F32 &f32_Value, F32 f32_Lower_Limit, F32 f32_Upper_Limit)
 Limit F32 value to lower or upper limit. More...
 
VOID Limit_Low_High_I32 (I32 &i32_Value, I32 i32_Lower_Limit, I32 i32_Upper_Limit)
 Limit I32 value to lower or upper limit. More...
 
U8 String_To_U8 (C8 *c8_Value)
 Convert hexal string to U8 value. More...
 
U16 String_To_U16 (C8 *c8_Value)
 Convert hexal string to U16 value. More...
 
U32 String_To_U32 (C8 *c8_Value)
 Convert hexal string to U32 value. More...
 
U64 String_To_U64 (C8 *c8_Value)
 Convert hexal string to U64 value. More...
 
U32 String_Length (C8 *c8_Value)
 Calculate lengthnof the null terminated string. More...
 
BOOL Is_Hex_Digit (C8 c8_Value)
 
VOID U8_To_Hex_String (C8 *c8_String, U8 u8_Value)
 
VOID U16_To_Hex_String (C8 *c8_String, U16 u16_Value)
 
VOID U32_To_Hex_String (C8 *c8_String, U32 u32_Value)
 
VOID U64_To_Hex_String (C8 *c8_String, U64 u64_Value)
 
U32 Get_String_Chunk_Count (C8 *c8_Input_String, C8 c8_Delimiter)
 
VOID Get_String_Chunk (C8 *c8_Chunk_String, C8 *c8_Input_String, C8 c8_Delimiter, U32 u32_Chunk_Index)
 

Detailed Description

Anvilex library implementation source file.

Note
This file is a part of the ConOpSys core.
Engine
Bootloader System core User application
Subsystem
Global infrastructure Common infrastructure Parameter management System parameter Application parameter Event management Command management Function block management
Hardware dependency
Hardware independent Hardware dependent
Attention
No special attention requered.
Revision
2903
Date
2021-12-01 03:57:32 +0500 (Mi, 01 Dez 2021)
Author
minch

Function Documentation

◆ BCD2_To_Byte()

U8 BCD2_To_Byte ( U8  u8_Value)

Convert two digit BCD2 code (U8) to 8-bit unsigned integer value (U8)

Note
None
Parameters
[in]u8_ValueInput two digit BCD2 code value
Returns
Two digit BCD code
Attention
Input value not checked for valid range

◆ Bit_Swap()

U8 Bit_Swap ( U8  u8_Value)

Bit swaping.

◆ Byte_To_BCD2()

U8 Byte_To_BCD2 ( U8  u8_Value)

Convert 8 bit-unsigned integer value (U8) to two digit BCD2 code (U8)

Note
None
Parameters
[in]u8_ValueInput 8-bit unsigned integer value
Returns
Two digit BCD code
Attention
Input value not checked for valid range

◆ Compose_F32()

F32 Compose_F32 ( U8  u8_Input_Byte_3,
U8  u8_Input_Byte_2,
U8  u8_Input_Byte_1,
U8  u8_Input_Byte_0 
)

Compose F32 value from U8 values.

Note
None
Parameters
[in]u8_Input_Byte_3Input byte 3, bits 24 to 31.
[in]u8_Input_Byte_2Input byte 2, bits 16 to 23.
[in]u8_Input_Byte_1Input byte 1, bits 8 to 15.
[in]u8_Input_Byte_0Input byte 0, bits 0 to 7.
Returns
Output F32 value.
Attention
None

Referenced by TMODBUS_PDU_Base::Read_F32_Value().

Here is the caller graph for this function:

◆ Compose_U16()

U16 Compose_U16 ( U8  u8_Input_Byte_1,
U8  u8_Input_Byte_0 
)

Compose U16 value from U8 values.

Note
None
Parameters
[in]u8_Input_Byte_1Input byte 1, bits 8 to 15.
[in]u8_Input_Byte_0Input byte 0, bits 0 to 7.
Returns
Output U16 value.
Attention
None

Referenced by TMODBUS_Request_PDU::Is_CRC_Valid(), TP019_14_KG3_DIO2_T1::Processing_Measured_Data(), TS25FL512::Read_Identification(), TMODBUS_PDU_Base::Read_U16_Value(), and Swap_Bytes_U16().

Here is the caller graph for this function:

◆ Compose_U32() [1/2]

U32 Compose_U32 ( U16  u16_Input_1,
U16  u16_Input_0 
)

Compose U32 value from U16 values.

Note
None
Parameters
[in]u16_Input_1Input word 1, bits 16 to 31.
[in]u16_Input_0Input word 0, bits 0 to 15.
Returns
Output U32 value.
Attention
None

◆ Compose_U32() [2/2]

U32 Compose_U32 ( U8  u8_Input_Byte_3,
U8  u8_Input_Byte_2,
U8  u8_Input_Byte_1,
U8  u8_Input_Byte_0 
)

Compose U32 value from U8 values.

Note
None
Parameters
[in]u8_Input_Byte_3Input byte 3, bits 24 to 31.
[in]u8_Input_Byte_2Input byte 2, bits 16 to 23.
[in]u8_Input_Byte_1Input byte 1, bits 8 to 15.
[in]u8_Input_Byte_0Input byte 0, bits 0 to 7.
Returns
Output U32 value.
Attention
None

Referenced by TFPGA_Base::Get_External_Slot_Module_ID(), TFPGA_Base::Get_Internal_Slot_Module_ID(), TP015_09_V1_0_Encoder_T2::Get_Module_ID(), TP017_21_KG3_DIO_T1::Get_Module_ID(), TP017_21_KG3_DIO_T2::Get_Module_ID(), TP020_12_KG3_PTE_T1::Get_Module_ID(), TP020_29_KG3_ENC_T1::Get_Module_ID(), TP021_23_KG3_EVIO_T1::Get_Module_ID(), TMODBUS_PDU_Base::Read_U32_Value(), and Swap_Bytes_U32().

Here is the caller graph for this function:

◆ Compose_U64() [1/2]

U64 Compose_U64 ( U16  u16_Input_3,
U16  u16_Input_2,
U16  u16_Input_1,
U16  u16_Input_0 
)

Compose U64 value from U16 values.

Note
None
Parameters
[in]u16_Input_3Input word 3, bits 48 to 63.
[in]u16_Input_2Input word 2, bits 32 to 47.
[in]u16_Input_1Input word 1, bits 16 to 31.
[in]u16_Input_0Input word 0, bits 0 to 15.
Returns
Output U64 value.
Attention
None

Referenced by TTIMER5_STM32F410CBU6::Get_Actual_Time_U64(), TTIMER2_STM32F429::Get_Actual_Time_U64(), and TConOpSys_Variant::Set_Random_Value().

Here is the caller graph for this function:

◆ Compose_U64() [2/2]

U64 Compose_U64 ( U32  u32_Input_1,
U32  u32_Input_0 
)

Compose U64 value from U32 values.

Note
None
Parameters
[in]u32_Input_1Input word 1, bits 32 to 63.
[in]u32_Input_0Input word 0, bits 0 to 31.
Returns
Output U64 value.
Attention
None

◆ Convert_C8_To_S7() [1/2]

BOOL Convert_C8_To_S7 ( C8  c8_Input_Value,
BOOL  bool_Decimal_Point,
S7 s7_Output_Value 
)

Convert 8 bit character (C8) to 7-segment indicator code (S7) and insert decomal point information.

Note
None
Parameters
[in]c8_Input_ValueInput 8-bit character code
[in]bool_Decimal_PointDecomal point status
[out]*s7_Output_ValuePointer to 7-segment indicator code
Returns
Conversion status
Return values
false- Conversion failed
true- Conversion successed
Attention
None

References Convert_C8_To_S7(), and true.

Here is the call graph for this function:

◆ Convert_C8_To_S7() [2/2]

BOOL Convert_C8_To_S7 ( C8  c8_Input_Value,
S7 s7_Output_Value 
)

Convert 8 bit chaaracter (C8) to 7-segment indicator code (S7)

Note
None
Parameters
[in]c8_Input_ValueInput 8-bit character code
[out]*s7_Output_ValuePointer to 7-segment indicator code
Returns
Conversion status
Return values
false- Conversion failed
true- Conversion successed
Attention
None

References NULL.

Referenced by Convert_C8_To_S7().

Here is the caller graph for this function:

◆ Convert_F32_To_Saturated_I16()

I16 Convert_F32_To_Saturated_I16 ( F32  f32_Input_Value)

Convert 32-bit floating point number (F32) to 16-bit signed indeger number (I16) with saturation at the bounds of datatype.

Note
None
Parameters
[in]f32_Input_ValueInput 32-bit floating point value
Returns
Result of convertion as signed integer number (I16)
Attention
None

◆ Convert_F32_To_Saturated_U16()

U16 Convert_F32_To_Saturated_U16 ( F32  f32_Input_Value)

Convert 32 bit floating point number (F32) to 16 bit unsigned indeger number (U16) with saturation at the bounds of datatype.

Note
None
Parameters
[in]f32_Input_ValueInput 32-bit floating point value
Returns
Result of convertion as unsigned integer number (U16)
Attention
None

Referenced by TP017_05_KG3_AO_T1::Execute(), TP017_05_KG3_AO_T2::Execute(), TP017_05_KG3_AO_T3::Execute(), TP017_05_KG3_AO_T4::Execute(), TP018_39_KG3_BLA_T1::Execute(), and TP021_12_KG3_Cooling_System_Model_Emulator::Execute().

Here is the caller graph for this function:

◆ Convert_U16_To_S7_String()

VOID Convert_U16_To_S7_String ( U16  u16_Input_Value,
S7 s7_Output_String 
)

Convert 16 bit unsigned integer (U16) to 7-segment indicator code (S7) string.

Note
None
Parameters
[in]u16_Input_ValueInput 16-bit unsigned integer value
[out]*s7_Output_StringPointer to string of 7-segment indicator codes
Returns
None
Attention
None

References Convert_U8_To_S7(), and Is_Bit_Set().

Here is the call graph for this function:

◆ Convert_U32_To_U16_Satureted()

U16 Convert_U32_To_U16_Satureted ( U32  u32_Input_Value)

Convert 32-bit unsigned integer number (U32) to 16-bit unsigned indeger number (U16) with saturation at the bounds of datatype.

Note
None
Parameters
[in]u32_Input_ValueInput 32-bit unsigned integer value
Returns
Result of convertion as unsigned integer number (U16)
Attention
None

Referenced by TProtocol_MODBUS_Over_UART::Get_Communication_Event_Counter(), and TProtocol_MODBUS_Over_UART::Get_Communication_Event_Log().

Here is the caller graph for this function:

◆ Convert_U64_To_U16_Satureted()

U16 Convert_U64_To_U16_Satureted ( U64  u64_Input_Value)

Convert 64-bit unsigned integer number (U64) to 16-bit unsigned indeger number (U16) with saturation at the bounds of datatype.

Note
None
Parameters
[in]u64_Input_ValueInput 64-bit unsigned integer value
Returns
Result of convertion as unsigned integer number (U16)
Attention
None

◆ Convert_U8_To_S7()

BOOL Convert_U8_To_S7 ( U8  u8_Input_Value,
S7 s7_Output_Value 
)

Convert 8 bit unsigned integer (U8) to 7-segment indicator code (S7)

Note
None
Parameters
[in]u8_Input_ValueInput 8-bit unsigned integer value
[out]*s7_Output_ValuePointer to 7-segment indicator code
Returns
Conversion status
Return values
false- Conversion failed
true- Conversion successed
Attention
None

References NULL.

Referenced by Convert_U16_To_S7_String().

Here is the caller graph for this function:

◆ Decode_Hex_Buffer()

BOOL Decode_Hex_Buffer ( C8 c8_Input_Buffer,
U8 u8_Output_Buffer,
U16  u16_Input_Size,
U16  u16_Output_Size 
)

Decode hex string to 8 bit unsigned integer representation.

Note
None
Parameters
[in]*c8_Input_BufferPointer to input hex string
[out]*u8_Output_BufferPointer to the output buffer
[in]u16_Input_SizeLength of input hex string
[in]u16_Output_SizeSize of the output buffer
Returns
Convertion status
Return values
false- Convertion failed
true- Convertion successed
Attention
None

References false.

◆ Decrement_Saturated() [1/7]

BOOL Decrement_Saturated ( F32 f32_Value,
F32  f32_Step,
F32  f32_Saturation 
)

◆ Decrement_Saturated() [2/7]

BOOL Decrement_Saturated ( U16 u16_Value)

References Decrement_Saturated().

Here is the call graph for this function:

◆ Decrement_Saturated() [3/7]

BOOL Decrement_Saturated ( U16 u16_Value,
U16  u16_Saturation 
)

◆ Decrement_Saturated() [4/7]

BOOL Decrement_Saturated ( U32 u32_Value)

References Decrement_Saturated().

Here is the call graph for this function:

◆ Decrement_Saturated() [5/7]

BOOL Decrement_Saturated ( U32 u32_Value,
U32  u32_Saturation 
)

◆ Decrement_Saturated() [6/7]

BOOL Decrement_Saturated ( U8 u8_Value)

◆ Decrement_Saturated() [7/7]

BOOL Decrement_Saturated ( U8 u8_Value,
U8  u8_Saturation 
)

◆ Extract_U16_From_U32()

U16 Extract_U16_From_U32 ( U32  u32_Value,
U8  u8_Index 
)

Extract U16 value from U32 value.

Note
None
Parameters
[in]u32_ValueInput U32 value.
[in]u8_IndexWord index. Can be 0 for extrecting bits 0 to 15 or 1 for extracting bits 16 to 31.
Returns
Output U16 value.
Attention
None

◆ Extract_U8_From_F32()

U8 Extract_U8_From_F32 ( F32  f32_Value,
U8  u8_Index 
)

Extract U8 value from F32 value.

Note
None
Parameters
[in]f32_ValueInput F32 value.
[in]u8_IndexByte index. Can be 0 for extracting bits 0 to 7, 1 for extracting bits 8 to 15, 2 for extracting bits 16 to 23, 3 for extracting bits 24 to 31.
Returns
Output U8 value.
Attention
None

Referenced by TMODBUS_PDU_Base::Append_F32_Value(), and TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Data_F32().

Here is the caller graph for this function:

◆ Extract_U8_From_I16()

U8 Extract_U8_From_I16 ( I16  i16_Value,
U8  u8_Index 
)

Extract U8 value from I16 value.

Note
None
Parameters
[in]i16_ValueInput I16 value.
[in]u8_IndexByte index. Can be 0 for extracting bits 0 to 7, 1 for extracting bits 8 to 15.
Returns
Output U8 value.
Attention
None

I16 struct value

U8 struct value

Referenced by TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Data_I16().

Here is the caller graph for this function:

◆ Extract_U8_From_I32()

U8 Extract_U8_From_I32 ( I32  i32_Value,
U8  u8_Index 
)

Extract U8 value from I32 value.

Note
None
Parameters
[in]i32_ValueInput I32 value.
[in]u8_IndexByte index. Can be 0 for extracting bits 0 to 7, 1 for extracting bits 8 to 15, 2 for extracting bits 16 to 23, 3 for extracting bits 24 to 31.
Returns
Output U8 value.
Attention
None

I32 struct value

U8 struct value

Referenced by TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Data_I32().

Here is the caller graph for this function:

◆ Extract_U8_From_I8()

U8 Extract_U8_From_I8 ( I8  i8_Value)

Extract U8 value from I8 value.

Note
None
Parameters
[in]i8_ValueInput I8 value.
Returns
Output U8 value.
Attention
None

Referenced by TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Data_I8().

Here is the caller graph for this function:

◆ Extract_U8_From_U16()

U8 Extract_U8_From_U16 ( U16  u16_Value,
U8  u8_Index 
)

◆ Extract_U8_From_U32()

U8 Extract_U8_From_U32 ( U32  u32_Value,
U8  u8_Index 
)

Extract U8 value from U32 value.

Note
None
Parameters
[in]u32_ValueInput U32 value.
[in]u8_IndexByte index. Can be 0 for extracting bits 0 to 7, 1 for extracting bits 8 to 15, 2 for extracting bits 16 to 23, 3 for extracting bits 24 to 31.
Returns
Output U8 value.
Attention
None

Referenced by TMODBUS_PDU_Base::Append_U32_Value(), TS25FL512::Read_Page_From_Cells_To_Cache_By_Index(), TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Data_U32(), TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Error(), Swap_Bytes_U32(), TCRC_32::Update(), TS25FL512::Write_Page_From_Cache_To_Cells(), TS25FL512::Write_Page_From_Cache_To_Cells_By_Page_Index(), and TMODBUS_Response_PDU::Write_U32_Value().

Here is the caller graph for this function:

◆ Get_String_Chunk()

VOID Get_String_Chunk ( C8 c8_Chunk_String,
C8 c8_Input_String,
C8  c8_Delimiter,
U32  u32_Chunk_Index 
)

◆ Get_String_Chunk_Count()

U32 Get_String_Chunk_Count ( C8 c8_Input_String,
C8  c8_Delimiter 
)

◆ Hex_To_U8()

U8 Hex_To_U8 ( C8  c8_Value)

◆ High_Nibble_To_Hex()

C8 High_Nibble_To_Hex ( U8  u8_Value)

◆ Increment_Overflowed() [1/4]

BOOL Increment_Overflowed ( F32 f32_Value,
F32  f32_Step,
F32  f32_Initial,
F32  f32_Saturation 
)

◆ Increment_Overflowed() [2/4]

BOOL Increment_Overflowed ( U16 u16_Value,
U16  u16_Maximal_Value 
)

◆ Increment_Overflowed() [3/4]

BOOL Increment_Overflowed ( U32 u32_Value,
U32  u32_Maximal_Value 
)

◆ Increment_Overflowed() [4/4]

BOOL Increment_Overflowed ( U8 u8_Value,
U8  u8_Maximal_Value 
)

◆ Increment_Saturated() [1/9]

BOOL Increment_Saturated ( F32 f32_Value,
F32  f32_Step,
F32  f32_Saturation 
)

◆ Increment_Saturated() [2/9]

BOOL Increment_Saturated ( U16 u16_Value)

References Increment_Saturated().

Here is the call graph for this function:

◆ Increment_Saturated() [3/9]

BOOL Increment_Saturated ( U16 u16_Value,
U16  u16_Saturation 
)

◆ Increment_Saturated() [4/9]

BOOL Increment_Saturated ( U32 u32_Value)

References Increment_Saturated().

Here is the call graph for this function:

◆ Increment_Saturated() [5/9]

BOOL Increment_Saturated ( U32 u32_Value,
U32  u32_Saturation 
)

◆ Increment_Saturated() [6/9]

BOOL Increment_Saturated ( U64 u64_Value)

References Increment_Saturated().

Here is the call graph for this function:

◆ Increment_Saturated() [7/9]

BOOL Increment_Saturated ( U64 u64_Value,
U64  u64_Saturation 
)

◆ Increment_Saturated() [8/9]

BOOL Increment_Saturated ( U8 u8_Value)

Referenced by TMODBUS_PDU_Base::Append_F32_Value(), TMODBUS_PDU_Base::Append_U16_Value(), TMODBUS_PDU_Base::Append_U32_Value(), TMODBUS_PDU_Base::Append_U8_Value(), TApplication_Base::Control_Task_Handler(), TEvent_Manager::Create(), TEvent_Manager::Create_Data_Event(), TEvent_Manager::Create_Header_Event(), TMODBUS_Response_PDU::Done(), TFunction_Block_Increment_Decrement_Button_Controller::Execute(), TFunction_Block_Digital_Output_T2::Execute(), TProtocol_MODBUS_Over_UART::Execute(), TKG3_LCSI_T1::Execute(), TKG3_CAB_EXT_T1::Execute(), TKG3_RTD2_T1::Execute(), TP018_34_KG3_BLCP_T1::Execute(), TParameter_Manager::Execute(), TS25FL512::Execute(), AVM2020::Execute_CALL(), TS25FL512::Increment_Block_Erase_Error_Counter(), TS25FL512::Increment_Block_Erase_Request_Counter(), TParameter_Manager::Increment_Media_Read_Error_Count(), TParameter_Manager::Increment_Media_Write_Error_Count(), TS25FL512::Increment_Page_Read_Error_Counter(), TS25FL512::Increment_Page_Read_Request_Counter(), TS25FL512::Increment_Page_Write_Error_Counter(), TS25FL512::Increment_Page_Write_Request_Counter(), Increment_Saturated(), TProtocol_Base::Log_Bus_Character_Overrun(), TProtocol_Base::Log_Bus_Communication_Error(), TProtocol_Base::Log_Bus_CRC_Error(), TProtocol_Base::Log_Bus_Frame_Size_Error(), TProtocol_Base::Log_Bus_Message(), TCommunication_Link::Log_Empty_Data_Error(), TProtocol_Base::Log_Event_Information_Request(), TProtocol_Base::Log_Event_Information_Request_Error(), TCommunication_Link::Log_Frame_Error(), TCommunication_Link::Log_Noise_Error(), TCommunication_Link::Log_Overrun_Error(), TProtocol_Base::Log_Parameter_Information_Request(), TProtocol_Base::Log_Parameter_Information_Request_Error(), TProtocol_Base::Log_Parameter_Read_Request(), TProtocol_Base::Log_Parameter_Read_Request_Error(), TProtocol_Base::Log_Parameter_Write_Request(), TProtocol_Base::Log_Parameter_Write_Request_Error(), TCommunication_Link::Log_Parity_Error(), TCommunication_Link::Log_Recieved_Byte_Count(), TProtocol_Base::Log_Slave_Broadcast_Message(), TProtocol_Base::Log_Slave_Busy(), TProtocol_Base::Log_Slave_Exception_Error(), TProtocol_Base::Log_Slave_Message(), TProtocol_Base::Log_Slave_No_Acknowledge(), TProtocol_Base::Log_Slave_No_Response(), TProtocol_MODBUS_Over_UART::Log_Slave_Read_Input_Register_Error(), TProtocol_Base::Log_Slave_Unknown_Request_Error(), TParameter_Manager::Media_Database_Update(), TMODBUS_PDU_Base::Read_F32_Value(), TMODBUS_PDU_Base::Read_U16_Value(), TMODBUS_PDU_Base::Read_U32_Value(), TMODBUS_PDU_Base::Read_U8_Value(), TCommand_Manager::Register(), TApplication_Base::Run(), TApplication_Base::System_Task_Handler(), TEvent_Manager::Verify_Event_Descriptor_Database(), TMODBUS_Response_PDU::Write_F32_Value(), TMODBUS_Response_PDU::Write_U16_Value(), TMODBUS_Response_PDU::Write_U32_Value(), and TMODBUS_Response_PDU::Write_U8_Value().

Here is the caller graph for this function:

◆ Increment_Saturated() [9/9]

BOOL Increment_Saturated ( U8 u8_Value,
U8  u8_Saturation 
)

◆ Is_Bit_Set()

BOOL Is_Bit_Set ( U16  u16_Value,
U8  u8_Index 
)

References false.

Referenced by Convert_U16_To_S7_String().

Here is the caller graph for this function:

◆ Is_Even()

BOOL Is_Even ( U32  u32_Value)

Check for input 32-bit unsigned value is even.

Note
None
Parameters
[in]*u32_ValueInput 32-bit unsigned value
Returns
Checking status
Return values
false- 32 bit unsigned value is not even
true- 32 bit unsigned value is even
Attention
None

Referenced by TP016_26_KG3_TSA_T1::Execute().

Here is the caller graph for this function:

◆ Is_Float()

BOOL Is_Float ( C8 c8_Input_String)

Check input string for floating point representation.

Note
None
Parameters
[in]*c8_Input_StringInput string
Returns
Checking status
Return values
false- String don't have a floating point value representation
true- String have a floating point value representation
Attention
None

References false, String_Length(), and true.

Referenced by TConOpSys_Variant::Precheck_Value_As_Decimal_String(), and TConOpSys_Variant::Set_Value_As_Decimal_String().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Is_Hex()

BOOL Is_Hex ( C8 c8_Input_String)

Check input string for hexadecimal representation.

Note
None
Parameters
[in]*c8_Input_StringInput string
Returns
Checking status
Return values
false- String don't have a hexadecimal value representation
true- String have a hexadecimal value representation
Attention
None

References false, Is_Hex_Digit(), String_Length(), and true.

Referenced by TConOpSys_Variant::Precheck_Value_As_Decimal_String(), and TConOpSys_Variant::Set_Value_As_Decimal_String().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Is_Hex_Digit()

BOOL Is_Hex_Digit ( C8  c8_Value)

◆ Is_In_Range_Less_Greater() [1/3]

BOOL Is_In_Range_Less_Greater ( F32  f32_Value,
F32  f32_Low_Bounds,
F32  f32_High_Bounds 
)

◆ Is_In_Range_Less_Greater() [2/3]

BOOL Is_In_Range_Less_Greater ( U16  u16_Value,
U16  u16_Low_Bounds,
U16  u16_High_Bounds 
)

Referenced by TEvent_Manager::Get_Event_Record_By_Index(), and TEvent_Manager::Set_Selected_Event_Index().

Here is the caller graph for this function:

◆ Is_In_Range_Less_Greater() [3/3]

BOOL Is_In_Range_Less_Greater ( U64  u64_Value,
U64  u64_Low_Bounds,
U64  u64_High_Bounds 
)

◆ Is_Integer()

BOOL Is_Integer ( C8 c8_Input_String)

Check input string for integer representation.

Note
None
Parameters
[in]*c8_Input_StringInput string
Returns
Checking status
Return values
false- String don't have an integer value representation
true- String have an integer value representation
Attention
None

References String_Length().

Referenced by TConOpSys_Variant::Precheck_Value_As_Decimal_String(), and TConOpSys_Variant::Set_Value_As_Decimal_String().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Is_Odd()

BOOL Is_Odd ( U32  u32_Value)

Check for input 32-bit unsigned value is odd.

Note
None
Parameters
[in]*u32_ValueInput 32-bit unsigned value
Returns
Checking status
Return values
false- 32 bit unsigned value is not odd
true- 32 bit unsigned value is odd
Attention
None

◆ Limit_Low_High_F32()

VOID Limit_Low_High_F32 ( F32 f32_Value,
F32  f32_Lower_Limit,
F32  f32_Upper_Limit 
)

Limit F32 value to lower or upper limit.

Note
None
Parameters
[in,out]f32_ValueF32 value to limit.
[in]f32_Lower_LimitLower limit F32 value.
[in]f32_Upper_LimitUpper limit F32 value.
Returns
None
Attention
None

Referenced by TP017_05_KG3_AO_T2::Execute(), TP017_05_KG3_AO_T3::Execute(), TP017_05_KG3_AO_T4::Execute(), and TP019_11_KG3_FC::Execute().

Here is the caller graph for this function:

◆ Limit_Low_High_I32()

VOID Limit_Low_High_I32 ( I32 i32_Value,
I32  i32_Lower_Limit,
I32  i32_Upper_Limit 
)

Limit I32 value to lower or upper limit.

Note
None
Parameters
[in,out]i32_ValueI32 value to limit.
[in]i32_Lower_LimitLower limit I32 value.
[in]i32_Upper_LimitUpper limit I32 value.
Returns
None
Attention
None

Referenced by TP017_05_KG3_AO_T2::Execute(), TP017_05_KG3_AO_T3::Execute(), and TP017_05_KG3_AO_T4::Execute().

Here is the caller graph for this function:

◆ Low_Nibble_To_Hex()

C8 Low_Nibble_To_Hex ( U8  u8_Value)

◆ Maximum_U16()

U16 Maximum_U16 ( U16  u16_Value_1,
U16  u16_Value_2 
)

Return maximum value from two U16 values.

Note
None
Parameters
[in]u16_Value_1First U16 value.
[in]u16_Value_2Second U16 value.
Returns
Output U32 value.
Attention
None

Referenced by TABCC_Base::Get_Requered_Process_Data_Buffer_Size().

Here is the caller graph for this function:

◆ Maximum_U32()

U32 Maximum_U32 ( U32  u32_Value_1,
U32  u32_Value_2 
)

Return maximum value from two U32 values.

Note
None
Parameters
[in]u32_Value_1First U32 value.
[in]u32_Value_2Second U32 value.
Returns
Output U32 value.
Attention
None

◆ Maximum_U64()

U64 Maximum_U64 ( U64  u64_Value_1,
U64  u64_Value_2 
)

Return maximum value from two U64 values.

Note
None
Parameters
[in]u64_Value_1First U64 value.
[in]u64_Value_2Second U64 value.
Returns
Output U64 value.
Attention
None

Referenced by TTIMER5_STM32F410CBU6::Get_Actual_Time_U64(), and TTIMER2_STM32F429::Get_Actual_Time_U64().

Here is the caller graph for this function:

◆ Maximum_U8()

U8 Maximum_U8 ( U8  u8_Value_1,
U8  u8_Value_2 
)

Return maximum value from two U8 values.

Note
None
Parameters
[in]u8_Value_1First U8 value.
[in]u8_Value_2Second U8 value.
Returns
Output U8 value.
Attention
None

◆ Seconds_To_HMS()

VOID Seconds_To_HMS ( U32  u32_Time,
U32 u32_Hours,
U32 u32_Minutes,
U32 u32_Seconds 
)

◆ Split_U32()

VOID Split_U32 ( U32  u32_Input_Value,
U16 u16_Output_1,
U16 u16_Output_0 
)

Referenced by TP019_11_KG3_MOD::Execute().

Here is the caller graph for this function:

◆ String_Length()

U32 String_Length ( C8 c8_Value)

◆ String_To_U16()

U16 String_To_U16 ( C8 c8_Value)

Convert hexal string to U16 value.

Note
None
Parameters
[in]*c8_ValuePointer to null terminated hexal string.
Returns
Output U16 value.
Attention
None

References Hex_To_U8().

Here is the call graph for this function:

◆ String_To_U32()

U32 String_To_U32 ( C8 c8_Value)

Convert hexal string to U32 value.

Note
None
Parameters
[in]*c8_ValuePointer to null terminated hexal string.
Returns
Output U32 value.
Attention
None

References Hex_To_U8().

Referenced by TProtocol_ANVILEX_Master_Over_UART::Execute(), TProtocol_ANVILEX_Over_UART_V2::Protocol_Parameter_Read_Request(), and TProtocol_ANVILEX_Over_UART_V2::Protocol_Parameter_Write_Request().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ String_To_U64()

U64 String_To_U64 ( C8 c8_Value)

Convert hexal string to U64 value.

Note
None
Parameters
[in]*c8_ValuePointer to null terminated hexal string.
Returns
Output U64 value.
Attention
None

References Hex_To_U8().

Here is the call graph for this function:

◆ String_To_U8()

U8 String_To_U8 ( C8 c8_Value)

Convert hexal string to U8 value.

Note
None
Parameters
[in]*c8_ValuePointer to null terminated hexal string.
Returns
Output U8 value.
Attention
None

References Hex_To_U8().

Referenced by TProtocol_ANVILEX_Master_Over_UART::Execute(), TProtocol_ANVILEX_Over_UART_V2::Protocol_Parameter_Read_Request(), and TProtocol_ANVILEX_Over_UART_V2::Protocol_Parameter_Write_Request().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Swap_Bytes_U16()

U16 Swap_Bytes_U16 ( U16  u16_Value)

References Compose_U16(), and Extract_U8_From_U16().

Here is the call graph for this function:

◆ Swap_Bytes_U32()

U32 Swap_Bytes_U32 ( U32  u32_Value)

References Compose_U32(), and Extract_U8_From_U32().

Here is the call graph for this function:

◆ U16_To_Hex_String()

VOID U16_To_Hex_String ( C8 c8_String,
U16  u16_Value 
)

References Bin2HexTable.

Referenced by TConOpSys_Variant::Get_Value_As_Hex_String().

Here is the caller graph for this function:

◆ U32_To_Hex_String()

VOID U32_To_Hex_String ( C8 c8_String,
U32  u32_Value 
)

References Bin2HexTable.

Referenced by TConOpSys_Variant::Get_Value_As_Hex_String().

Here is the caller graph for this function:

◆ U64_To_Hex_String()

VOID U64_To_Hex_String ( C8 c8_String,
U64  u64_Value 
)

References Bin2HexTable.

Referenced by TConOpSys_Variant::Get_Value_As_Hex_String().

Here is the caller graph for this function:

◆ U8_To_Hex_String()

VOID U8_To_Hex_String ( C8 c8_String,
U8  u8_Value 
)

References Bin2HexTable.

Referenced by TConOpSys_Variant::Get_Value_As_Hex_String().

Here is the caller graph for this function: