ConOpSys V2970  P004.07
ANVILEX control operating system
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
TCAN2_STM32F429 Class Reference

STM32F429 on-chip CAN1 hardware abstraction layer class. More...

#include <CAN2_STM32F429.h>

Inheritance diagram for TCAN2_STM32F429:
Inheritance graph
Collaboration diagram for TCAN2_STM32F429:
Collaboration graph

Public Member Functions

 TCAN2_STM32F429 ()
 Class constructor method. More...
 
 ~TCAN2_STM32F429 ()
 Class destructor method. More...
 
VOID Init ()
 Initialisation method. More...
 
VOID Done ()
 Finalisation method. More...
 
VOID Interrupt_Enable (U32 u32_Priority)
 Interrupt enable method. More...
 
VOID Interrupt_Disable ()
 CAN2 interrupt disable method. More...
 
VOID RX0_Interrupt ()
 CAN2 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...
 

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...
 

Private Attributes

BOOL bool_Initialisation_Error = (BOOL)false
 Initialisation error flag. More...
 

Additional Inherited Members

Detailed Description

STM32F429 on-chip CAN1 hardware abstraction layer class.

Constructor & Destructor Documentation

◆ TCAN2_STM32F429()

TCAN2_STM32F429::TCAN2_STM32F429 ( )

Class constructor method.


Note
None
Override
Not allowed
Attention
Don't call this method directly.

References bool_Initialisation_Error.

◆ ~TCAN2_STM32F429()

TCAN2_STM32F429::~TCAN2_STM32F429 ( )

Class destructor method.


Note
None
Override
Not allowed
Attention
Don't call this method directly.

Member Function Documentation

◆ Communication_Block_Data_Transmit()

VOID TCAN2_STM32F429::Communication_Block_Data_Transmit ( VOID void_Transmit_Data)
protectedvirtual

CAN2 RX interrupt processing method.


Note
None
Parameters
[in]*void_Transmit_Data- Pointer to the data buffer
Returns
None
Override
Not allowed
Attention
None

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.

Here is the call graph for this function:

◆ Done()

VOID TCAN2_STM32F429::Done ( )

Finalisation method.


Note
None
Override
Not allowed
Attention
None

References Interrupt_Disable(), and TCommunication_Link::PIO_Done().

Here is the call graph for this function:

◆ Init()

VOID TCAN2_STM32F429::Init ( )

Initialisation method.


Note
None
Override
Not allowed
Attention
None

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().

Here is the call graph for this function:

◆ Interrupt_Disable()

VOID TCAN2_STM32F429::Interrupt_Disable ( )

CAN2 interrupt disable method.


Note
None
Returns
None
Override
Not allowed
Attention
None

Referenced by Done().

Here is the caller graph for this function:

◆ Interrupt_Enable()

VOID TCAN2_STM32F429::Interrupt_Enable ( U32  u32_Priority)

Interrupt enable method.


Note
None
Parameters
[in]u32_Priority- Interrupt priority level
Override
Not allowed
Attention
None

◆ RX0_Interrupt()

VOID TCAN2_STM32F429::RX0_Interrupt ( )

CAN2 RX interrupt processing method.


Note
None
Returns
None
Override
Not allowed
Attention
None

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.

Here is the call graph for this function:

◆ Transmit_Data()

BOOL TCAN2_STM32F429::Transmit_Data ( U32  u32_ID,
U8  u8_ID_Type,
U8 u8_Transmit_Buffer,
U8  u8_Transmit_Length 
)
protectedvirtual

Communication data transmit method.


Note
None
Parameters
[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
Returns
BOOL - Operation status
Return values
false- Transmiting error
true- Transmiting successed
Override
Not allowed
Attention
None

Referenced by Communication_Block_Data_Transmit(), and Transmit_Data_Test().

Here is the caller graph for this function:

◆ Transmit_Data_Test()

BOOL TCAN2_STM32F429::Transmit_Data_Test ( U32  u32_ID,
U8  u8_ID_Type,
U8 u8_Transmit_Buffer,
U8  u8_Transmit_Length 
)

Transmit test data.


Note
None
Parameters
[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
Returns
BOOL - Operation status
Return values
false- Transmiting error
true- Transmiting successed
Override
Not allowed
Attention
None

References Transmit_Data().

Here is the call graph for this function:

Member Data Documentation

◆ bool_Initialisation_Error

BOOL TCAN2_STM32F429::bool_Initialisation_Error = (BOOL)false
private

Initialisation error flag.

Referenced by Init(), and TCAN2_STM32F429().


The documentation for this class was generated from the following files: