ConOpSys V2970
P004.07
ANVILEX control operating system
|
Communication data link class. More...
#include <Communication_Link.h>
Public Member Functions | |
TCommunication_Link () | |
Class constructor method. More... | |
~TCommunication_Link () | |
Class destructor method. More... | |
VOID | Init () |
Initialisation method. More... | |
VOID | Done () |
Finalisation method. More... | |
virtual VOID | PIO_Init ()=0 |
PIO initialisation method. More... | |
virtual VOID | PIO_Done ()=0 |
PIO reinitialisation as GPIO method. More... | |
VOID | Start () |
Start operation method. More... | |
VOID | Stop () |
Stop operation method. More... | |
VOID | Interrupt_Enable (U32 u32_Priority) |
Interrupt enabale method. More... | |
VOID | Interrupt_Disable () |
Interrupt disable method. More... | |
VOID | Interrupt () |
Data receive and data transmitted interrupt service method. More... | |
VOID | RX_Interrupt () |
Data receive interrupt service method. More... | |
VOID | TX_Interrupt () |
Data transmitted interrupt service method. More... | |
VOID | Log_Recieved_Byte_Count () |
Log recieved byte count. More... | |
VOID | Log_Empty_Data_Error () |
Log empty data error. No data received but interrupt was generated. More... | |
VOID | Log_Frame_Error () |
Log frame error. More... | |
VOID | Log_Overrun_Error () |
Log buffer overrun error. More... | |
VOID | Log_Parity_Error () |
Log parity error. More... | |
VOID | Log_Noise_Error () |
Log noise error. More... | |
U64 | Get_Empty_Data_Error_Count () |
Get rec empty data error count. More... | |
U64 | Get_Recieved_Byte_Count () |
Get recieved byte count. More... | |
U64 | Get_Frame_Error_Count () |
Get frame error count. More... | |
U64 | Get_Overrun_Error_Count () |
Get buffer overrun error count. More... | |
U64 | Get_Parity_Error_Count () |
Get parity error count. More... | |
U64 | Get_Noise_Error_Count () |
Get noise error count. More... | |
virtual VOID | Execute_1ms () |
1 ms cyclic execution method More... | |
virtual VOID | Execute () |
Background cyclic execution method. More... | |
Public Member Functions inherited from TCommunication_Data_Link | |
TCommunication_Data_Link () | |
Class constructor method. More... | |
VOID | Connect_Data_Link (TCommunication_Data_Link *object_New_Data_Link) |
Connect data link method. More... | |
VOID | Disconnect_Data_Link () |
Disconnect data link method. More... | |
Protected Member Functions | |
virtual VOID | Set_Transmit_Mode () |
Set transmit mode method. More... | |
virtual VOID | Set_Receive_Mode () |
Set receive mode method. More... | |
Protected Member Functions inherited from TCommunication_Data_Link | |
virtual VOID | Communication_Data_Transmit (U8 u8_Transmit_Value) |
Communication data transmit method. More... | |
virtual VOID | Communication_Data_Receive (U8 u8_Receive_Value) |
Communication data receive method. More... | |
virtual VOID | Communication_Block_Data_Receive (VOID *void_Receive_Data) |
Communication data receive method. More... | |
virtual VOID | Communication_Block_Data_Transmit (VOID *void_Receive_Data) |
Communication data transmit method. More... | |
Protected Attributes | |
TExecution_Profile | object_Execution_Profile |
Execution profile object. More... | |
Protected Attributes inherited from TCommunication_Data_Link | |
TCommunication_Data_Link * | object_Data_Link = (TCommunication_Data_Link*)NULL |
Pointer to the data link object. More... | |
Private Attributes | |
U64 | u64_Recieved_Byte_Counter = (U64)0 |
Recieved byte counter. More... | |
U64 | u64_Empty_Data_Error_Counter = (U64)0 |
Empty data error counter. More... | |
U64 | u64_Frame_Error_Counter = (U64)0 |
Frame error counter. More... | |
U64 | u64_Overrun_Error_Counter = (U64)0 |
Buffer overrun error counter. More... | |
U64 | u64_Parity_Error_Counter = (U64)0 |
Parity error counter. More... | |
U64 | u64_Noise_Error_Counter = (U64)0 |
Noise error counter. More... | |
Communication data link class.
TCommunication_Link::TCommunication_Link | ( | ) |
Class constructor method.
TCommunication_Link::~TCommunication_Link | ( | ) |
Class destructor method.
VOID TCommunication_Link::Done | ( | ) |
Finalisation method.
|
virtual |
Background cyclic execution method.
Reimplemented from TCommunication_Data_Link.
References TCommunication_Data_Link::Execute(), NULL, and TCommunication_Data_Link::object_Data_Link.
|
virtual |
1 ms cyclic execution method
Reimplemented from TCommunication_Data_Link.
References TCommunication_Data_Link::Execute_1ms(), NULL, and TCommunication_Data_Link::object_Data_Link.
U64 TCommunication_Link::Get_Empty_Data_Error_Count | ( | ) |
Get rec empty data error count.
References u64_Empty_Data_Error_Counter.
U64 TCommunication_Link::Get_Frame_Error_Count | ( | ) |
Get frame error count.
References u64_Frame_Error_Counter.
U64 TCommunication_Link::Get_Noise_Error_Count | ( | ) |
Get noise error count.
References u64_Noise_Error_Counter.
U64 TCommunication_Link::Get_Overrun_Error_Count | ( | ) |
Get buffer overrun error count.
References u64_Overrun_Error_Counter.
U64 TCommunication_Link::Get_Parity_Error_Count | ( | ) |
Get parity error count.
References u64_Parity_Error_Counter.
U64 TCommunication_Link::Get_Recieved_Byte_Count | ( | ) |
Get recieved byte count.
References u64_Recieved_Byte_Counter.
VOID TCommunication_Link::Init | ( | ) |
Initialisation method.
Referenced by TCOM0::Init(), TUART1_STM32F410CBU6::Init(), TUART6_STM32F410CBU6::Init(), TETHERNET_STM32F429::Init(), TUART1_STM32F429::Init(), TUART6_STM32F429::Init(), and TUART7_STM32F429::Init().
VOID TCommunication_Link::Interrupt | ( | ) |
Data receive and data transmitted interrupt service method.
VOID TCommunication_Link::Interrupt_Disable | ( | ) |
Interrupt disable method.
Interrupt enabale method.
VOID TCommunication_Link::Log_Empty_Data_Error | ( | ) |
Log empty data error. No data received but interrupt was generated.
References Increment_Saturated(), and u64_Empty_Data_Error_Counter.
VOID TCommunication_Link::Log_Frame_Error | ( | ) |
Log frame error.
References Increment_Saturated(), and u64_Frame_Error_Counter.
Referenced by TUART1_STM32F410CBU6::Interrupt(), TUART6_STM32F410CBU6::Interrupt(), TUART1_STM32F429::Interrupt(), TUART6_STM32F429::Interrupt(), and TUART7_STM32F429::Interrupt().
VOID TCommunication_Link::Log_Noise_Error | ( | ) |
Log noise error.
References Increment_Saturated(), and u64_Noise_Error_Counter.
Referenced by TUART1_STM32F410CBU6::Interrupt(), TUART6_STM32F410CBU6::Interrupt(), TUART1_STM32F429::Interrupt(), TUART6_STM32F429::Interrupt(), and TUART7_STM32F429::Interrupt().
VOID TCommunication_Link::Log_Overrun_Error | ( | ) |
Log buffer overrun error.
References Increment_Saturated(), and u64_Overrun_Error_Counter.
VOID TCommunication_Link::Log_Parity_Error | ( | ) |
Log parity error.
References Increment_Saturated(), and u64_Parity_Error_Counter.
Referenced by TUART1_STM32F410CBU6::Interrupt(), TUART6_STM32F410CBU6::Interrupt(), TUART1_STM32F429::Interrupt(), TUART6_STM32F429::Interrupt(), and TUART7_STM32F429::Interrupt().
VOID TCommunication_Link::Log_Recieved_Byte_Count | ( | ) |
Log recieved byte count.
References Increment_Saturated(), and u64_Recieved_Byte_Counter.
Referenced by TUART1_STM32F410CBU6::Interrupt(), TUART6_STM32F410CBU6::Interrupt(), TUART1_STM32F429::Interrupt(), TUART6_STM32F429::Interrupt(), and TUART7_STM32F429::Interrupt().
|
pure virtual |
PIO reinitialisation as GPIO method.
Implemented in TCOM0, TUART7_P017_39_KG3_CB, TUART6_P017_39_KG3_CB, TUART1_P017_39_KG3_CB, TETHERNET_P017_39_CB, TCAN2_P017_39_KG3_CB, TCAN1_P017_39_KG3_CB, TUART6_P016_05_PUC2, TUART1_P016_05_PUC2, TUART6_P015_27_V1_0_CB, TUART1_P015_27_V1_0_CB, TUART6_P015_09_CB, TUART1_P015_09_CB, TETHERNET_P015_09_CB, TCAN1_P015_09_CB, TUART6_P014_51_CB, and TUART1_P014_51_CB.
Referenced by TUART1_STM32F410CBU6::Done(), TUART6_STM32F410CBU6::Done(), TCAN1_STM32F429::Done(), TCAN2_STM32F429::Done(), TETHERNET_STM32F429::Done(), TUART1_STM32F429::Done(), TUART6_STM32F429::Done(), and TUART7_STM32F429::Done().
|
pure virtual |
PIO initialisation method.
Implemented in TCOM0, TUART7_P017_39_KG3_CB, TUART6_P017_39_KG3_CB, TUART1_P017_39_KG3_CB, TETHERNET_P017_39_CB, TCAN2_P017_39_KG3_CB, TCAN1_P017_39_KG3_CB, TUART6_P016_05_PUC2, TUART1_P016_05_PUC2, TUART6_P015_27_V1_0_CB, TUART1_P015_27_V1_0_CB, TUART6_P015_09_CB, TUART1_P015_09_CB, TETHERNET_P015_09_CB, TCAN1_P015_09_CB, TUART6_P014_51_CB, and TUART1_P014_51_CB.
Referenced by TUART1_STM32F410CBU6::Init(), TUART6_STM32F410CBU6::Init(), TCAN1_STM32F429::Init(), TCAN2_STM32F429::Init(), TETHERNET_STM32F429::Init(), TUART1_STM32F429::Init(), TUART6_STM32F429::Init(), and TUART7_STM32F429::Init().
VOID TCommunication_Link::RX_Interrupt | ( | ) |
Data receive interrupt service method.
|
protectedvirtual |
Set receive mode method.
Reimplemented in TUART7_P017_39_KG3_CB, TUART6_P017_39_KG3_CB, TUART6_P016_05_PUC2, and TUART6_P015_09_CB.
Referenced by TUART1_STM32F410CBU6::Init(), TUART6_STM32F410CBU6::Init(), TUART1_STM32F429::Init(), TUART6_STM32F429::Init(), TUART7_STM32F429::Init(), TUART1_STM32F410CBU6::Interrupt(), TUART6_STM32F410CBU6::Interrupt(), TUART1_STM32F429::Interrupt(), TUART6_STM32F429::Interrupt(), and TUART7_STM32F429::Interrupt().
|
protectedvirtual |
Set transmit mode method.
Reimplemented in TUART7_P017_39_KG3_CB, TUART6_P017_39_KG3_CB, TUART6_P016_05_PUC2, and TUART6_P015_09_CB.
Referenced by TUART1_STM32F410CBU6::Communication_Data_Transmit(), TUART6_STM32F410CBU6::Communication_Data_Transmit(), TUART1_STM32F429::Communication_Data_Transmit(), TUART6_STM32F429::Communication_Data_Transmit(), and TUART7_STM32F429::Communication_Data_Transmit().
VOID TCommunication_Link::Start | ( | ) |
Start operation method.
VOID TCommunication_Link::Stop | ( | ) |
Stop operation method.
VOID TCommunication_Link::TX_Interrupt | ( | ) |
Data transmitted interrupt service method.
|
protected |
Execution profile object.
Empty data error counter.
Referenced by Get_Empty_Data_Error_Count(), and Log_Empty_Data_Error().
Frame error counter.
Referenced by Get_Frame_Error_Count(), and Log_Frame_Error().
Noise error counter.
Referenced by Get_Noise_Error_Count(), and Log_Noise_Error().
Buffer overrun error counter.
Referenced by Get_Overrun_Error_Count(), and Log_Overrun_Error().
Parity error counter.
Referenced by Get_Parity_Error_Count(), and Log_Parity_Error().
Recieved byte counter.
Referenced by Get_Recieved_Byte_Count(), and Log_Recieved_Byte_Count().