added gyrol3gd20h stm32 test file
This commit is contained in:
21
stm32h7/devicetest/GyroL3GD20H.h
Normal file
21
stm32h7/devicetest/GyroL3GD20H.h
Normal file
@ -0,0 +1,21 @@
|
||||
#ifndef FSFW_HAL_STM32H7_DEVICETEST_GYRO_L3GD20H_H_
|
||||
#define FSFW_HAL_STM32H7_DEVICETEST_GYRO_L3GD20H_H_
|
||||
|
||||
#include "stm32h7xx_hal.h"
|
||||
#include "stm32h7xx_hal_spi.h"
|
||||
#include <cstdint>
|
||||
|
||||
#include "fsfw/returnvalues/HasReturnvaluesIF.h"
|
||||
|
||||
class GyroL3GD20H {
|
||||
public:
|
||||
GyroL3GD20H(SPI_HandleTypeDef* spiHandle);
|
||||
|
||||
ReturnValue_t performOperation();
|
||||
private:
|
||||
SPI_HandleTypeDef* spiHandle;
|
||||
static constexpr size_t recvBufferSize = 32 * 10;
|
||||
static uint8_t recvBuffer[recvBufferSize];
|
||||
};
|
||||
|
||||
#endif /* FSFW_HAL_STM32H7_DEVICETEST_GYRO_L3GD20H_H_ */
|
Reference in New Issue
Block a user