ConOpSys V2970
P004.07
ANVILEX control operating system
|
Communication data link class. More...
#include <Communication_Data_Link.h>
Public Member Functions | |
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... | |
virtual VOID | Execute_1ms () |
1 ms cyclic execution method More... | |
virtual VOID | Execute () |
Background cyclic execution method. More... | |
Protected Member Functions | |
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 | |
TCommunication_Data_Link * | object_Data_Link = (TCommunication_Data_Link*)NULL |
Pointer to the data link object. More... | |
Communication data link class.
This class implements interlink capability between physical and protocol communication layers.
TCommunication_Data_Link::TCommunication_Data_Link | ( | ) |
Class constructor method.
|
protectedvirtual |
Communication data receive method.
[in] | void_Receive_Data | - Pointer to received data block |
Reimplemented in TProtocol_CANopen_Slave_Over_CAN.
References Communication_Block_Data_Receive(), NULL, and object_Data_Link.
Referenced by Communication_Block_Data_Receive(), TCAN1_STM32F429::RX0_Interrupt(), and TCAN2_STM32F429::RX0_Interrupt().
|
protectedvirtual |
Communication data transmit method.
[in] | void_Receive_Data | - Pointer to transmit data block |
Reimplemented in TCAN2_STM32F429, and TCAN1_STM32F429.
References Communication_Block_Data_Transmit(), NULL, and object_Data_Link.
Referenced by Communication_Block_Data_Transmit(), TProtocol_CANopen_Slave_Over_CAN::Heartbeat_Transmit(), TProtocol_CANopen_Slave_Over_CAN::PDO_Transmit(), 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(), and TProtocol_CANopen_Slave_Over_CAN::Send_SDO_Write_Success().
Communication data receive method.
[in] | u8_Receive_Value | - Received value |
Reimplemented in TProtocol_PLUG_Over_UART, TProtocol_MODBUS_Over_UART, TProtocol_ANVILEX_Over_UART_V2, TProtocol_ANVILEX_Over_UART, and TProtocol_ANVILEX_Master_Over_UART.
References Communication_Data_Receive(), NULL, and object_Data_Link.
Referenced by Communication_Data_Receive(), TCOM0::Emulation(), TUART1_STM32F410CBU6::Interrupt(), TUART6_STM32F410CBU6::Interrupt(), TUART1_STM32F429::Interrupt(), TUART6_STM32F429::Interrupt(), and TUART7_STM32F429::Interrupt().
Communication data transmit method.
[in] | u8_Transmit_Value | - Value to transmit |
Reimplemented in TUART7_STM32F429, TUART6_STM32F429, TUART1_STM32F429, TUART6_STM32F410CBU6, TUART1_STM32F410CBU6, and TCOM0.
References Communication_Data_Transmit(), NULL, and object_Data_Link.
Referenced by Communication_Data_Transmit(), and TProtocol_Base::Transmit_Char().
VOID TCommunication_Data_Link::Connect_Data_Link | ( | TCommunication_Data_Link * | object_New_Data_Link | ) |
Connect data link method.
[in] | *object_New_Data_Link | - Type of the connection |
References object_Data_Link.
Referenced by TApplication_Base::Init(), and TBootloader_Base::Init().
VOID TCommunication_Data_Link::Disconnect_Data_Link | ( | ) |
Disconnect data link method.
References NULL, and object_Data_Link.
|
virtual |
Background cyclic execution method.
Reimplemented in TProtocol_Profibus_DPV1_Over_ANYBUS, TProtocol_PLUG_Over_UART, TProtocol_MODBUS_Over_UART, TProtocol_IP_Over_ETHERNET, TProtocol_CANopen_Slave_Over_CAN, TProtocol_Base, TProtocol_ANVILEX_Over_UART_V2, TProtocol_ANVILEX_Over_UART, TCommunication_Link, and TProtocol_ANVILEX_Master_Over_UART.
Referenced by TCommunication_Link::Execute().
|
virtual |
1 ms cyclic execution method
Reimplemented in TProtocol_PLUG_Over_UART, TProtocol_MODBUS_Over_UART, TProtocol_IP_Over_ETHERNET, TProtocol_CANopen_Slave_Over_CAN, TProtocol_Base, and TCommunication_Link.
Referenced by TCommunication_Link::Execute_1ms().
|
protected |
Pointer to the data link object.
Referenced by Communication_Block_Data_Receive(), Communication_Block_Data_Transmit(), Communication_Data_Receive(), Communication_Data_Transmit(), Connect_Data_Link(), Disconnect_Data_Link(), TCommunication_Link::Execute(), TCommunication_Link::Execute_1ms(), TProtocol_ANVILEX_Over_UART::Send_Information(), TProtocol_ANVILEX_Over_UART_V2::Send_Information(), and TProtocol_MODBUS_Over_UART::Send_Information().