fsfw-example-stm32h7-freertos/bsp_stm32h7_freertos/boardtest/SpiTest.h

21 lines
554 B
C
Raw Permalink Normal View History

2021-10-27 17:09:41 +02:00
#ifndef BSP_STM32H7_FREERTOS_BOARDTEST_SPITEST_H_
#define BSP_STM32H7_FREERTOS_BOARDTEST_SPITEST_H_
#include "fsfw_hal/stm32h7/spi/SpiComIF.h"
2021-10-27 17:35:42 +02:00
#include "fsfw_hal/stm32h7/spi/SpiCookie.h"
#include "fsfw_hal/stm32h7/spi/mspInit.h"
2021-10-27 17:09:41 +02:00
class SpiTest {
public:
SpiTest(SpiComIF& spiComIF);
2021-10-27 18:38:31 +02:00
ReturnValue_t performOperation(uint8_t opCode = 0);
2021-10-27 17:09:41 +02:00
private:
2021-10-27 17:35:42 +02:00
static constexpr address_t TEST_ADDRESS = 0x00;
spi::MspPollingConfigStruct mspCfg;
2021-10-27 18:38:31 +02:00
SpiComIF& spiComIF;
2021-10-27 17:35:42 +02:00
SpiCookie spiCookie;
2021-10-27 17:09:41 +02:00
};
#endif /* BSP_STM32H7_FREERTOS_BOARDTEST_SPITEST_H_ */