STM32Cube Expansion Pack CAN Stack
TME_VersionInfo Class Reference

to hold the version info More...

#include <TMEVersionInfo.h>

Inheritance diagram for TME_VersionInfo:

Public Member Functions

 TME_VersionInfo (uint16_t Module, uint16_t Version, uint16_t Patch)
 constructor to set version Ids
 
 TME_VersionInfo (uint16_t Vendor, uint16_t Module, uint16_t Version, uint16_t Patch)
 constructor to set version Ids including the vendor
 
 TME_VersionInfo (const TME_VersionInfo &other)
 copy constructor
 
Std_ReturnType GetVersionInfo (uint32_t BufferLength, const uint8_t *Ptr2Buffer)
 Copies the VersionIinfo to a 8byte buffer. More...
 

Private Attributes

uint16_t Vendor_ID = (*(uint16_t*)"TM")
 my ID
 
uint16_t Module_ID = (0x00)
 module id to see where the error is come from
 
uint16_t Version_ID = (0x00)
 we have only one version at start
 
uint16_t PatchVersion_ID = (0x00)
 no patching until now
 

Detailed Description

to hold the version info

maybe we should add a copy constructor

Definition at line 24 of file TMEVersionInfo.h.

Member Function Documentation

◆ GetVersionInfo()

Std_ReturnType TME_VersionInfo::GetVersionInfo ( uint32_t  BufferLength,
const uint8_t *  Ptr2Buffer 
)

Copies the VersionIinfo to a 8byte buffer.

Parameters
[in]BufferLengthshould be 8 at minimum
[out]pointerwhere the VersionInfo should be
Returns
E_NOT_OK if buffer is to small

Definition at line 51 of file TMEVersionInfo.cpp.

References E_NOT_OK, E_OK, Module_ID, PatchVersion_ID, Vendor_ID, and Version_ID.


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