|
ConOpSys V2970
P004.07
ANVILEX control operating system
|
STM32F429 on-chip CAN1 hardware abstraction layer class. More...
#include <CAN1_STM32F429.h>


Public Member Functions | |
| TCAN1_STM32F429 () | |
| Class constructor method. More... | |
| ~TCAN1_STM32F429 () | |
| Class destructor method. More... | |
| VOID | Init () |
| Initialisation method. More... | |
| VOID | Done () |
| Finalisation method. More... | |
| VOID | Interrupt_Enable (U32 u32_Priority) |
| CAN2 interrupt enable method. More... | |
| VOID | Interrupt_Disable () |
| CAN1 interrupt disable method. More... | |
| VOID | RX0_Interrupt () |
| CAN1 RX interrupt processing method. More... | |
| BOOL | Transmit_Data_Test (U32 u32_ID, U8 u8_ID_Type, U8 *u8_Transmit_Buffer, U8 u8_Transmit_Length) |
| Transmit test data. More... | |
Public Member Functions inherited from TCommunication_Link | |
| 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 BOOL | Transmit_Data (U32 u32_ID, U8 u8_ID_Type, U8 *u8_Transmit_Buffer, U8 u8_Transmit_Length) |
| Communication data transmit method. More... | |
| virtual VOID | Communication_Block_Data_Transmit (VOID *void_Transmit_Data) |
| CAN2 RX interrupt processing method. More... | |
Protected Member Functions inherited from TCommunication_Link | |
| 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... | |
Private Attributes | |
| BOOL | bool_Initialisation_Error = (BOOL)false |
| Initialisation error flag. More... | |
Additional Inherited Members | |
Protected Attributes inherited from TCommunication_Link | |
| 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... | |
STM32F429 on-chip CAN1 hardware abstraction layer class.
| TCAN1_STM32F429::TCAN1_STM32F429 | ( | ) |
Class constructor method.
References bool_Initialisation_Error.
| TCAN1_STM32F429::~TCAN1_STM32F429 | ( | ) |
Class destructor method.
|
protectedvirtual |
CAN2 RX interrupt processing method.
| [in] | *void_Transmit_Data | - Pointer to the data buffer |
Reimplemented from TCommunication_Data_Link.
References TCAN_Msg::CAN_Data, TCAN_Msg::Data_Bits, Transmit_Data(), TCAN_Msg::u32_Identifier, and TCAN_Msg::u8_DLC.

| VOID TCAN1_STM32F429::Done | ( | ) |
Finalisation method.
References Interrupt_Disable(), and TCommunication_Link::PIO_Done().

| VOID TCAN1_STM32F429::Init | ( | ) |
Initialisation method.
References bool_Initialisation_Error, false, TSystem_Timer_Base::Get_Actual_Time(), TSystem_Timer_Base::Is_Timeout_ms(), object_System_Timer, and TCommunication_Link::PIO_Init().

| VOID TCAN1_STM32F429::Interrupt_Disable | ( | ) |
CAN1 interrupt disable method.
Referenced by Done().

CAN2 interrupt enable method.
| [in] | u32_Priority | - Interrupt priority level |
| VOID TCAN1_STM32F429::RX0_Interrupt | ( | ) |
CAN1 RX interrupt processing method.
References TCAN_Msg::bool_RTR_Bit, TCAN_Msg::CAN_Data, TCommunication_Data_Link::Communication_Block_Data_Receive(), TCAN_Msg::Data_Bits, TCAN_Msg::u32_Identifier, and TCAN_Msg::u8_DLC.

|
protectedvirtual |
Communication data transmit method.
| [in] | u32_ID | - Identifier |
| [in] | u8_ID_Type | - Message type (0-Standart ID, 1-Extended ID) |
| [in] | *u8_Transmit_Buffer | - Pointer to the data buffer |
| [in] | *u8_Transmit_Length | - Data size |
| false | - Transmiting error |
| true | - Transmiting successed |
Referenced by Communication_Block_Data_Transmit(), and Transmit_Data_Test().

| BOOL TCAN1_STM32F429::Transmit_Data_Test | ( | U32 | u32_ID, |
| U8 | u8_ID_Type, | ||
| U8 * | u8_Transmit_Buffer, | ||
| U8 | u8_Transmit_Length | ||
| ) |
Transmit test data.
| [in] | u32_ID | - Identifier |
| [in] | u8_ID_Type | - Message type (0-Standart ID, 1-Extended ID) |
| [in] | *u8_Transmit_Buffer | - Pointer to the data buffer |
| [in] | *u8_Transmit_Length | - Data size |
| false | - Transmiting error |
| true | - Transmiting successed |
References Transmit_Data().

Initialisation error flag.
Referenced by Init(), and TCAN1_STM32F429().