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:
|
2022-05-22 15:30:38 +02:00
|
|
|
SpiTest(SpiComIF &spiComIF);
|
|
|
|
|
|
|
|
ReturnValue_t performOperation(uint8_t opCode = 0);
|
2021-10-27 18:38:31 +02:00
|
|
|
|
2021-10-27 17:09:41 +02:00
|
|
|
private:
|
2022-05-22 15:30:38 +02:00
|
|
|
static constexpr address_t TEST_ADDRESS = 0x00;
|
|
|
|
spi::MspPollingConfigStruct mspCfg;
|
|
|
|
SpiComIF &spiComIF;
|
|
|
|
SpiCookie spiCookie;
|
2021-10-27 17:09:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* BSP_STM32H7_FREERTOS_BOARDTEST_SPITEST_H_ */
|