ConOpSys V2970
P004.07
ANVILEX control operating system
|
Anvilex library implementation source file. More...
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) |
Anvilex library implementation source file.
Convert two digit BCD2 code (U8) to 8-bit unsigned integer value (U8)
[in] | u8_Value | Input two digit BCD2 code value |
Convert 8 bit-unsigned integer value (U8) to two digit BCD2 code (U8)
[in] | u8_Value | Input 8-bit unsigned integer value |
Compose F32 value from U8 values.
[in] | u8_Input_Byte_3 | Input byte 3, bits 24 to 31. |
[in] | u8_Input_Byte_2 | Input byte 2, bits 16 to 23. |
[in] | u8_Input_Byte_1 | Input byte 1, bits 8 to 15. |
[in] | u8_Input_Byte_0 | Input byte 0, bits 0 to 7. |
Referenced by TMODBUS_PDU_Base::Read_F32_Value().
Compose U16 value from U8 values.
[in] | u8_Input_Byte_1 | Input byte 1, bits 8 to 15. |
[in] | u8_Input_Byte_0 | Input byte 0, bits 0 to 7. |
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().
Compose U32 value from U16 values.
[in] | u16_Input_1 | Input word 1, bits 16 to 31. |
[in] | u16_Input_0 | Input word 0, bits 0 to 15. |
Compose U32 value from U8 values.
[in] | u8_Input_Byte_3 | Input byte 3, bits 24 to 31. |
[in] | u8_Input_Byte_2 | Input byte 2, bits 16 to 23. |
[in] | u8_Input_Byte_1 | Input byte 1, bits 8 to 15. |
[in] | u8_Input_Byte_0 | Input byte 0, bits 0 to 7. |
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().
Compose U64 value from U16 values.
[in] | u16_Input_3 | Input word 3, bits 48 to 63. |
[in] | u16_Input_2 | Input word 2, bits 32 to 47. |
[in] | u16_Input_1 | Input word 1, bits 16 to 31. |
[in] | u16_Input_0 | Input word 0, bits 0 to 15. |
Referenced by TTIMER5_STM32F410CBU6::Get_Actual_Time_U64(), TTIMER2_STM32F429::Get_Actual_Time_U64(), and TConOpSys_Variant::Set_Random_Value().
Compose U64 value from U32 values.
[in] | u32_Input_1 | Input word 1, bits 32 to 63. |
[in] | u32_Input_0 | Input word 0, bits 0 to 31. |
Convert 8 bit character (C8) to 7-segment indicator code (S7) and insert decomal point information.
[in] | c8_Input_Value | Input 8-bit character code |
[in] | bool_Decimal_Point | Decomal point status |
[out] | *s7_Output_Value | Pointer to 7-segment indicator code |
false | - Conversion failed |
true | - Conversion successed |
References Convert_C8_To_S7(), and true.
Convert 8 bit chaaracter (C8) to 7-segment indicator code (S7)
[in] | c8_Input_Value | Input 8-bit character code |
[out] | *s7_Output_Value | Pointer to 7-segment indicator code |
false | - Conversion failed |
true | - Conversion successed |
References NULL.
Referenced by Convert_C8_To_S7().
Convert 32-bit floating point number (F32) to 16-bit signed indeger number (I16) with saturation at the bounds of datatype.
[in] | f32_Input_Value | Input 32-bit floating point value |
Convert 32 bit floating point number (F32) to 16 bit unsigned indeger number (U16) with saturation at the bounds of datatype.
[in] | f32_Input_Value | Input 32-bit floating point value |
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().
Convert 16 bit unsigned integer (U16) to 7-segment indicator code (S7) string.
[in] | u16_Input_Value | Input 16-bit unsigned integer value |
[out] | *s7_Output_String | Pointer to string of 7-segment indicator codes |
References Convert_U8_To_S7(), and Is_Bit_Set().
Convert 32-bit unsigned integer number (U32) to 16-bit unsigned indeger number (U16) with saturation at the bounds of datatype.
[in] | u32_Input_Value | Input 32-bit unsigned integer value |
Referenced by TProtocol_MODBUS_Over_UART::Get_Communication_Event_Counter(), and TProtocol_MODBUS_Over_UART::Get_Communication_Event_Log().
Convert 64-bit unsigned integer number (U64) to 16-bit unsigned indeger number (U16) with saturation at the bounds of datatype.
[in] | u64_Input_Value | Input 64-bit unsigned integer value |
Convert 8 bit unsigned integer (U8) to 7-segment indicator code (S7)
[in] | u8_Input_Value | Input 8-bit unsigned integer value |
[out] | *s7_Output_Value | Pointer to 7-segment indicator code |
false | - Conversion failed |
true | - Conversion successed |
References NULL.
Referenced by Convert_U16_To_S7_String().
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.
[in] | *c8_Input_Buffer | Pointer to input hex string |
[out] | *u8_Output_Buffer | Pointer to the output buffer |
[in] | u16_Input_Size | Length of input hex string |
[in] | u16_Output_Size | Size of the output buffer |
false | - Convertion failed |
true | - Convertion successed |
References false.
Referenced by Decrement_Saturated(), TFunction_Block_Increment_Decrement_Button_Controller::Execute(), TParameter_Manager::Execute(), AVM2020::Execute_RET(), TCommand_Manager::Unregister(), and TParameter_Manager::Unregister().
Extract U16 value from U32 value.
[in] | u32_Value | Input U32 value. |
[in] | u8_Index | Word index. Can be 0 for extrecting bits 0 to 15 or 1 for extracting bits 16 to 31. |
Extract U8 value from F32 value.
[in] | f32_Value | Input F32 value. |
[in] | u8_Index | Byte 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. |
Referenced by TMODBUS_PDU_Base::Append_F32_Value(), and TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Data_F32().
Extract U8 value from I16 value.
[in] | i16_Value | Input I16 value. |
[in] | u8_Index | Byte index. Can be 0 for extracting bits 0 to 7, 1 for extracting bits 8 to 15. |
I16 struct value
U8 struct value
Referenced by TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Data_I16().
Extract U8 value from I32 value.
[in] | i32_Value | Input I32 value. |
[in] | u8_Index | Byte 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. |
I32 struct value
U8 struct value
Referenced by TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Data_I32().
Extract U8 value from I8 value.
[in] | i8_Value | Input I8 value. |
Referenced by TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Data_I8().
Extract U8 value from U16 value.
[in] | u16_Value | Input U16 value. |
[in] | u8_Index | Byte index. Can be 0 for extracting bits 0 to 7, 1 for extracting bits 8 to 15. |
Referenced by TMODBUS_PDU_Base::Append_U16_Value(), TMODBUS_Response_PDU::Done(), TS25FL512::Erase_Block_By_Index(), TABCC_Base::Map_ADI_Read_Area(), TABCC_Base::Map_ADI_Write_Area(), TS25FL512::Read_Page_From_Cache(), TS25FL512::Read_Page_From_Cache_By_Leniar_Address(), TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Data_BOOL(), TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Data_F32(), TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Data_I16(), TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Data_I32(), TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Data_I8(), TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Data_U16(), TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Data_U32(), TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Data_U8(), TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Error(), TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Write_Success(), TABCC_Base::Set_Message_Data_U16(), TABCC_Base::Set_Message_Map_ADI_Area(), Swap_Bytes_U16(), TS25FL512::Write_Page_To_Cache(), TS25FL512::Write_Page_To_Cache_By_Leniar_Address(), and TMODBUS_Response_PDU::Write_U16_Value().
Extract U8 value from U32 value.
[in] | u32_Value | Input U32 value. |
[in] | u8_Index | Byte 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. |
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().
VOID Get_String_Chunk | ( | C8 * | c8_Chunk_String, |
C8 * | c8_Input_String, | ||
C8 | c8_Delimiter, | ||
U32 | u32_Chunk_Index | ||
) |
Referenced by TProtocol_ANVILEX_Over_UART::Terminal_Parameter_Information_Request(), TProtocol_ANVILEX_Over_UART::Terminal_Parameter_Read_Request(), and TProtocol_ANVILEX_Over_UART::Terminal_Parameter_Write_Request().
Referenced by TProtocol_ANVILEX_Over_UART::Protocol_Event_Information_Request(), TProtocol_ANVILEX_Over_UART_V2::Protocol_Event_Information_Request(), TProtocol_ANVILEX_Over_UART::Protocol_Parameter_Information_Request(), TProtocol_ANVILEX_Over_UART_V2::Protocol_Parameter_Information_Request(), TProtocol_ANVILEX_Over_UART::Protocol_Parameter_Read_Request(), TProtocol_ANVILEX_Over_UART::Protocol_Parameter_Write_Request(), TConOpSys_Variant::Set_Value_As_Hex_String(), String_To_U16(), String_To_U32(), String_To_U64(), String_To_U8(), TProtocol_ANVILEX_Over_UART::Terminal_Event_Information_Request(), and TProtocol_ANVILEX_Over_UART_V2::Terminal_Event_Information_Request().
References Bin2HexTable.
Referenced by TProtocol_ANVILEX_Master_Over_UART::Execute(), TProtocol_ANVILEX_Over_UART::Protocol_Event_Information_Request(), TProtocol_ANVILEX_Over_UART_V2::Protocol_Event_Information_Request(), TProtocol_ANVILEX_Over_UART::Protocol_Parameter_Information_Request(), TProtocol_ANVILEX_Over_UART::Protocol_Parameter_Read_Request(), TProtocol_ANVILEX_Over_UART_V2::Protocol_Parameter_Read_Request(), TProtocol_ANVILEX_Over_UART_V2::Protocol_Parameter_Write_Request(), and TProtocol_ANVILEX_Master_Over_UART::Protocol_Remote_Parameter_Read_Response().
Referenced by TProtocol_CANopen_Slave_Over_CAN::Communication_Block_Data_Receive(), TUART1_STM32F410CBU6::Communication_Data_Transmit(), TUART6_STM32F410CBU6::Communication_Data_Transmit(), TUART1_STM32F429::Communication_Data_Transmit(), TUART6_STM32F429::Communication_Data_Transmit(), TUART7_STM32F429::Communication_Data_Transmit(), TProtocol_ANVILEX_Master_Over_UART::Execute(), TEvent_Manager::Execute(), TKG3_RTD2_T0::Execute(), TS25FL512::Execute(), TEvent_Manager::Increment_Buffer_Index(), TUART1_STM32F410CBU6::Interrupt(), TUART6_STM32F410CBU6::Interrupt(), TUART1_STM32F429::Interrupt(), TUART6_STM32F429::Interrupt(), TUART7_STM32F429::Interrupt(), TMODBUS_Request_FIFO::Pop(), and TMODBUS_Request_FIFO::Push().
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().
References false.
Referenced by Convert_U16_To_S7_String().
Check for input 32-bit unsigned value is even.
[in] | *u32_Value | Input 32-bit unsigned value |
false | - 32 bit unsigned value is not even |
true | - 32 bit unsigned value is even |
Referenced by TP016_26_KG3_TSA_T1::Execute().
Check input string for floating point representation.
[in] | *c8_Input_String | Input string |
false | - String don't have a floating point value representation |
true | - String have a floating point value representation |
References false, String_Length(), and true.
Referenced by TConOpSys_Variant::Precheck_Value_As_Decimal_String(), and TConOpSys_Variant::Set_Value_As_Decimal_String().
Check input string for hexadecimal representation.
[in] | *c8_Input_String | Input string |
false | - String don't have a hexadecimal value representation |
true | - String have a hexadecimal value representation |
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().
Referenced by Is_Hex(), TProtocol_ANVILEX_Over_UART::Protocol_Event_Information_Request(), TProtocol_ANVILEX_Over_UART::Protocol_Parameter_Information_Request(), TProtocol_ANVILEX_Over_UART::Protocol_Parameter_Read_Request(), TProtocol_ANVILEX_Over_UART::Protocol_Parameter_Write_Request(), and TProtocol_ANVILEX_Over_UART::Terminal_Event_Information_Request().
Referenced by TEvent_Manager::Get_Event_Record_By_Index(), and TEvent_Manager::Set_Selected_Event_Index().
Check input string for integer representation.
[in] | *c8_Input_String | Input string |
false | - String don't have an integer value representation |
true | - String have an integer value representation |
References String_Length().
Referenced by TConOpSys_Variant::Precheck_Value_As_Decimal_String(), and TConOpSys_Variant::Set_Value_As_Decimal_String().
Check for input 32-bit unsigned value is odd.
[in] | *u32_Value | Input 32-bit unsigned value |
false | - 32 bit unsigned value is not odd |
true | - 32 bit unsigned value is odd |
Limit F32 value to lower or upper limit.
[in,out] | f32_Value | F32 value to limit. |
[in] | f32_Lower_Limit | Lower limit F32 value. |
[in] | f32_Upper_Limit | Upper limit F32 value. |
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().
Limit I32 value to lower or upper limit.
[in,out] | i32_Value | I32 value to limit. |
[in] | i32_Lower_Limit | Lower limit I32 value. |
[in] | i32_Upper_Limit | Upper limit I32 value. |
Referenced by TP017_05_KG3_AO_T2::Execute(), TP017_05_KG3_AO_T3::Execute(), and TP017_05_KG3_AO_T4::Execute().
References Bin2HexTable.
Referenced by TProtocol_ANVILEX_Master_Over_UART::Execute(), TConOpSys_Variant::Get_Value_As_Hex_String(), TProtocol_ANVILEX_Over_UART::Protocol_Event_Information_Request(), TProtocol_ANVILEX_Over_UART_V2::Protocol_Event_Information_Request(), TProtocol_ANVILEX_Over_UART::Protocol_Parameter_Information_Request(), TProtocol_ANVILEX_Over_UART::Protocol_Parameter_Read_Request(), TProtocol_ANVILEX_Over_UART_V2::Protocol_Parameter_Read_Request(), TProtocol_ANVILEX_Over_UART_V2::Protocol_Parameter_Write_Request(), and TProtocol_ANVILEX_Master_Over_UART::Protocol_Remote_Parameter_Read_Response().
Return maximum value from two U16 values.
[in] | u16_Value_1 | First U16 value. |
[in] | u16_Value_2 | Second U16 value. |
Referenced by TABCC_Base::Get_Requered_Process_Data_Buffer_Size().
Return maximum value from two U32 values.
[in] | u32_Value_1 | First U32 value. |
[in] | u32_Value_2 | Second U32 value. |
Return maximum value from two U64 values.
[in] | u64_Value_1 | First U64 value. |
[in] | u64_Value_2 | Second U64 value. |
Referenced by TTIMER5_STM32F410CBU6::Get_Actual_Time_U64(), and TTIMER2_STM32F429::Get_Actual_Time_U64().
Return maximum value from two U8 values.
[in] | u8_Value_1 | First U8 value. |
[in] | u8_Value_2 | Second U8 value. |
Calculate lengthnof the null terminated string.
[in] | *c8_Value | Pointer to null terminated string. |
Referenced by TEvent_Manager::Calculate_Database_Hash(), TParameter_Manager::Calculate_Database_Hash(), TProtocol_ANVILEX_Over_UART::Execute(), Is_Float(), Is_Hex(), Is_Integer(), TProtocol_ANVILEX_Over_UART::Protocol_Event_Information_Request(), TProtocol_ANVILEX_Over_UART::Protocol_Parameter_Information_Request(), TProtocol_ANVILEX_Over_UART::Protocol_Parameter_Read_Request(), TProtocol_ANVILEX_Over_UART::Protocol_Parameter_Write_Request(), TProtocol_ANVILEX_Over_UART::Protocol_Transmit_String(), TProtocol_ANVILEX_Over_UART::Terminal_Event_Information_Request(), TProtocol_ANVILEX_Over_UART::Terminal_Parameter_Information_Request(), TProtocol_ANVILEX_Over_UART::Terminal_Parameter_Read_Request(), and TProtocol_ANVILEX_Over_UART::Terminal_Parameter_Write_Request().
Convert hexal string to U16 value.
[in] | *c8_Value | Pointer to null terminated hexal string. |
References Hex_To_U8().
Convert hexal string to U32 value.
[in] | *c8_Value | Pointer to null terminated hexal string. |
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().
Convert hexal string to U64 value.
[in] | *c8_Value | Pointer to null terminated hexal string. |
References Hex_To_U8().
Convert hexal string to U8 value.
[in] | *c8_Value | Pointer to null terminated hexal string. |
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().
References Bin2HexTable.
Referenced by TConOpSys_Variant::Get_Value_As_Hex_String().
References Bin2HexTable.
Referenced by TConOpSys_Variant::Get_Value_As_Hex_String().
References Bin2HexTable.
Referenced by TConOpSys_Variant::Get_Value_As_Hex_String().
References Bin2HexTable.
Referenced by TConOpSys_Variant::Get_Value_As_Hex_String().