suppressed warning flags
This commit is contained in:
31
bsp_rpi/boardtest/SpiTest.h
Normal file
31
bsp_rpi/boardtest/SpiTest.h
Normal file
@ -0,0 +1,31 @@
|
||||
#ifndef BSP_LINUX_TEST_SPITEST_H_
|
||||
#define BSP_LINUX_TEST_SPITEST_H_
|
||||
|
||||
#include <fsfw/objectmanager/SystemObject.h>
|
||||
#include <fsfw/tasks/ExecutableObjectIF.h>
|
||||
#include <linux/spi/spidev.h>
|
||||
#include <string>
|
||||
|
||||
class SpiTest: public ExecutableObjectIF, SystemObject {
|
||||
public:
|
||||
SpiTest(object_id_t objectId);
|
||||
|
||||
ReturnValue_t performOperation(uint8_t opCode) override;
|
||||
ReturnValue_t initialize() override;
|
||||
private:
|
||||
const std::string spiDeviceName = "/dev/spidev0.0";
|
||||
int spiFd = 0;
|
||||
|
||||
uint8_t spiMode = SPI_MODE_3;
|
||||
uint32_t spiSpeed = 976000;
|
||||
|
||||
uint8_t sendBuffer[32];
|
||||
uint8_t receiveBuffer[32];
|
||||
struct spi_ioc_transfer transferHandle;
|
||||
|
||||
bool oneShot = true;
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif /* BSP_LINUX_TEST_SPITEST_H_ */
|
Reference in New Issue
Block a user