21 lines
554 B
C++
21 lines
554 B
C++
#ifndef BSP_STM32H7_FREERTOS_BOARDTEST_SPITEST_H_
|
|
#define BSP_STM32H7_FREERTOS_BOARDTEST_SPITEST_H_
|
|
|
|
#include "fsfw_hal/stm32h7/spi/SpiComIF.h"
|
|
#include "fsfw_hal/stm32h7/spi/SpiCookie.h"
|
|
#include "fsfw_hal/stm32h7/spi/mspInit.h"
|
|
|
|
class SpiTest {
|
|
public:
|
|
SpiTest(SpiComIF& spiComIF);
|
|
|
|
ReturnValue_t performOperation(uint8_t opCode = 0);
|
|
private:
|
|
static constexpr address_t TEST_ADDRESS = 0x00;
|
|
spi::MspPollingConfigStruct mspCfg;
|
|
SpiComIF& spiComIF;
|
|
SpiCookie spiCookie;
|
|
};
|
|
|
|
#endif /* BSP_STM32H7_FREERTOS_BOARDTEST_SPITEST_H_ */
|