Imt.Base C++ API V4.1.1.0
Loading...
Searching...
No Matches
STM32F767Mock.h
Go to the documentation of this file.
1// (c) IMT - Information Management Technology AG, CH-9470 Buchs, www.imt.ch.
2
3#ifndef STM32F767MOCK_H
4#define STM32F767MOCK_H
5
7
8#include "MockADC.h"
9#include "MockCAN.h"
10#include "MockDAC.h"
11#include "MockDMA.h"
12#include "MockEXTI.h"
13#include "MockFLASH.h"
14#include "MockGPIO.h"
15#include "MockI2C.h"
16#include "MockI2S.h"
17#include "MockNVIC.h"
18#include "MockPWR.h"
19#include "MockRCC.h"
20#include "MockRTC.h"
21#include "MockSPI.h"
22#include "MockSYSCFG.h"
23#include "MockSYSTICK.h"
24#include "MockTIM.h"
25#include "MockUSART.h"
26#include "MockUSB.h"
27
28namespace imt {
29namespace base {
30namespace hal {
31namespace stm32f767 {
32namespace mock {
37public:
38
43
47 static void clear();
48
53
58
63
68
73
78
83
88
93
98
103
108
113
118
123
128
133
138
143
144private:
145
149 virtual ~STM32F767Mock() {};
150
155
159 STM32F767Mock& operator=(STM32F767Mock const&);
160
161 // static members
162 static STM32F767Mock* s_pSingle;
164
165 // instance members
166 MockADC m_mockADC;
167 MockDAC m_mockDAC;
168 MockEXTI m_mockEXTI;
169 MockFLASH m_mockFLASH;
170 MockGPIO m_mockGPIO;
171 MockNVIC m_mockNVIC;
172 MockPWR m_mockPWR;
173 MockRCC m_mockRCC;
174 MockRTC m_mockRTC;
175 MockSYSTICK m_mockSYSTICK;
176 MockUSART m_mockUSART;
177 MockSYSCFG m_mockSYSCFG;
178 MockDMA m_mockDMA;
179 MockSPI m_mockSPI;
180 MockTIM m_mockTIM;
181 MockCAN m_mockCAN;
182 MockI2C m_mockI2C;
183 MockI2S m_mockI2S;
184 MockUSB m_mockUSB;
185};
186
187} // namespace mock
188} // namespace stm32f767
189} // namespace hal
190} // namespace base
191} // namespace imt
192
193#endif // STM32F767MOCK_H
Mock implementation for the ADC module.
Definition MockADC.h:18
USART mock implementation.
Definition MockCAN.h:20
Mock implementation for the DAC module.
Definition MockDAC.h:21
DMA mock implementation.
Definition MockDMA.h:19
Mock implementation for the EXTI module.
Definition MockEXTI.h:18
Mock implementation for the FLASH module.
Definition MockFLASH.h:20
Mock implementation for a GPIO module.
Definition MockGPIO.h:19
I2C mock implementation.
Definition MockI2C.h:19
I2S mock implementation.
Definition MockI2S.h:19
Mock implementation for the NVIC module.
Definition MockNVIC.h:19
Mock implementation for PWR.
Definition MockPWR.h:18
Mock implementation for the RCC module.
Definition MockRCC.h:19
Mock implementation for the RTC module.
Definition MockRTC.h:25
Mock implementation for the SPI module.
Definition MockSPI.h:19
Mock implementation for SYSCFG controller.
Definition MockSYSCFG.h:18
Mock implementation for SYSTICK module.
Definition MockSYSTICK.h:18
Mock implementation for the TIM module.
Definition MockTIM.h:19
USB mock implementation.
Definition MockUSB.h:19
Mocking object which stores all relevant information for STM32F767 HAL.
static STM32F767Mock & getSingle()
Returns the one and only instance.
MockCAN & getMockCAN()
Returns the reference to the CAN mock.
static void clear()
Clear the single.
MockSYSTICK & getMockSYSTICK()
Returns the reference to the SYSTICK mock.
MockNVIC & getMockNVIC()
Returns the reference to the NVIC mock.
MockDAC & getMockDAC()
Returns the reference to the DAC mock.
MockEXTI & getMockEXTI()
Returns the reference to the EXTI mock.
MockUSB & getMockUSB()
Returns the reference to the USB mock.
MockRTC & getMockRTC()
Returns the reference to the RTC mock.
MockUSART & getMockUSART()
Returns the reference to the USART mock.
MockSYSCFG & getMockSYSCFG()
Returns the reference to the SYSCFG mock.
MockTIM & getMockTIM()
Returns the reference to the TIM mock.
MockI2S & getMockI2S()
Returns the reference to the I2S mock.
MockADC & getMockADC()
Returns the reference to the ADC mock.
MockGPIO & getMockGPIO()
Returns the reference to the GPIO mock for the given module number.
MockRCC & getMockRCC()
Returns the reference to the RCC mock.
MockDMA & getMockDMA()
Returns the reference to the DMA mock.
MockSPI & getMockSPI()
Returns the reference to the SPI mock.
MockI2C & getMockI2C()
Returns the reference to the I2C mock.
MockPWR & getMockPWR()
Returns the reference to the PWR mock.
MockFLASH & getMockFLASH()
Returns the reference to the FLASH mock.
This is a application specific file which is used to configure Imt.Base.Core.Math.