STM32Cube Expansion Pack CAN Stack
|
to hold the version info More...
#include <TMEVersionInfo.h>
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 | |
to hold the version info
maybe we should add a copy constructor
Definition at line 24 of file TMEVersionInfo.h.
Std_ReturnType TME_VersionInfo::GetVersionInfo | ( | uint32_t | BufferLength, |
const uint8_t * | Ptr2Buffer | ||
) |
Copies the VersionIinfo to a 8byte buffer.
[in] | BufferLength | should be 8 at minimum |
[out] | pointer | where the VersionInfo should be |
Definition at line 51 of file TMEVersionInfo.cpp.
References E_NOT_OK, E_OK, Module_ID, PatchVersion_ID, Vendor_ID, and Version_ID.