Imt.Base C++ API V4.1.1.0
Loading...
Searching...
No Matches
MockCRCheck.h
Go to the documentation of this file.
1// (c) IMT - Information Management Technology AG, CH-9470 Buchs, www.imt.ch.
2
3#ifndef STM32H730_MockCRC_H
4#define STM32H730_MockCRC_H
5
9
10namespace imt {
11namespace base {
12namespace hal {
13namespace stm32h730 {
14namespace mock {
15
20public:
21
22 explicit MockCRCheck() {
23 clear();
24 }
25
26 virtual ~MockCRCheck() {
27 }
28
30 return true;
31 }
32
33 uint32_t calculateCrc(uint8_t const* const pData, uint32_t const dataSize) {
34 return 0U;
35 }
36
37 uint32_t calculateCrc(uint16_t const* const pData, uint32_t const dataSize) {
38 return 0U;
39 }
40
41 uint32_t calculateCrc(uint32_t const* const pData, uint32_t const dataSize) {
42 return 0U;
43 }
44
45 void resetCRC() {
46 }
47
48 void clear() {
49 }
50
51private:
52
56 MockCRCheck(MockCRCheck const& other);
57
61 MockCRCheck& operator=(MockCRCheck const& other);
62};
63
64} // namespace mock
65} // namespace stm32h730
66} // namespace hal
67} // namespace base
68} // namespace imt
69
70#endif // #ifndef STM32H730_MockCRC_H
Mock implementation for the CRC module.
Definition MockCRCheck.h:19
uint32_t calculateCrc(uint32_t const *const pData, uint32_t const dataSize)
Definition MockCRCheck.h:41
bool init(::imt::base::hal::stm32h730::peripherals::CRCheck::InitStruct const &initConfig)
Definition MockCRCheck.h:29
uint32_t calculateCrc(uint8_t const *const pData, uint32_t const dataSize)
Definition MockCRCheck.h:33
uint32_t calculateCrc(uint16_t const *const pData, uint32_t const dataSize)
Definition MockCRCheck.h:37
This is a application specific file which is used to configure Imt.Base.Core.Math.
unsigned __int16 uint16_t
Definition stdint.h:63
unsigned __int32 uint32_t
Definition stdint.h:64
unsigned __int8 uint8_t
Definition stdint.h:62