STM32Cube Expansion Pack CAN Stack
CanFT2p0Stream Class Reference
Inheritance diagram for CanFT2p0Stream:
Collaboration diagram for CanFT2p0Stream:

Public Member Functions

 CanFT2p0Stream (const CanIf *p2CanInterface)
 
 CanFT2p0Stream (const CanIf *p2CanInterface, CanIf_RxPduIdType rxPduName)
 
Std_ReturnType RxIndication (ComStack_PduType rxPduId, const ComStack_CanMessageType *ptr2Sdu)
 overwrite the function prototype supported by the CanIfUpperLayer class More...
 
CanFT2p_MeasureValueType GetMeasureValue (CanFT2p0_MeasureID MeasureId)
 
Std_ReturnType GetMeasureValue (CanFT2p0_MeasureID MeasureId, REF2VAR(CanFT2p_MeasureValueType, AUTOMATIC) MeasureValue)
 
- Public Member Functions inherited from CanFT2p0
 CanFT2p0 (const CanIf *p2CanInterface)
 constructor to connect to communication controller interface
 
 CanFT2p0 (const CanIf *p2CanInterface, CanIf_RxPduIdType rxPduName)
 constructor to connect to communication controller interface and naming the PDUs
 
CanFT2p0_StatesType GetState (void)
 to get the module state
 
Std_ReturnType Init (const CanFT2p0_CfgType *ptr2Config=nullptr)
 
CanIfGetHwInterface (void)
 get the handle to the connected communication controller interface
 
CanIf_RxPduIdType GetRxPduName (void)
 Get the name of the linked rx PDU. More...
 
Std_ReturnType TxIndication (CanIf_TxPduIdType txPduId, const CanIf_PduInfoType *p2TxPdu)
 overwrite the function prototype supported by the CanIfUpperLayer class More...
 
- Public Member Functions inherited from CanIfUpperLayer
virtual Std_ReturnType RxIndication (ComStack_PduType rxPduId, REF2CONST(ComStack_CanMsgHeader, AUTOMATIC) CanMsgHeader, REF2CONST(ComStack_PduInfoType, AUTOMATIC) PduInfo)
 virtual function declaration to have an indication function in all upper layer classes More...
 

Private Types

enum  CanMessageState { WaitForFirstMsg }
 

Private Attributes

uint16_t size = 0
 
uint16_t segmCount = 0
 
uint16_t dataCount = 0
 
uint16_t readCount = 0
 
CanFT2p0_DataHdlType dataList [24]
 

Detailed Description

Definition at line 22 of file CanFT2p0Stream.h.

Member Function Documentation

◆ RxIndication()

Std_ReturnType CanFT2p0Stream::RxIndication ( ComStack_PduType  rxPduId,
const ComStack_CanMessageType ptr2Sdu 
)
virtual

overwrite the function prototype supported by the CanIfUpperLayer class

Parameters
[in]rxPduIdnaming the incoming message
[in]ptr2Sdupointer to the data unit
Attention
  • this function will be called in interrupt context
  • we need a secure to avoid buffer overflow

Reimplemented from CanFT2p0.

Definition at line 48 of file CanFT2p0Stream.cpp.

References CANFT2P0_DET_REPORTERROR, CANFT2P0_RXINDICATION_ID, CANFT_ON, E_NOT_OK, E_OK, CanFT2p0::GetState(), and NULL_PTR.

Here is the call graph for this function:

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