more sus testing
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good

This commit is contained in:
2022-02-16 15:16:36 +01:00
parent f5879f5867
commit 3387a71399
7 changed files with 259 additions and 192 deletions

View File

@ -15,12 +15,7 @@
class SpiTestClass : public TestTask {
public:
enum TestModes {
NONE,
MGM_LIS3MDL,
MGM_RM3100,
GYRO_L3GD20H,
};
enum TestModes { NONE, MGM_LIS3MDL, MGM_RM3100, GYRO_L3GD20H, SUS_0 };
TestModes testMode;
@ -34,11 +29,12 @@ class SpiTestClass : public TestTask {
std::array<uint8_t, 128> recvBuffer;
std::array<uint8_t, 128> sendBuffer;
struct spi_ioc_transfer spiTransferStruct = {};
struct spi_ioc_transfer spiTransferStruct[6] = {};
void performRm3100Test(uint8_t mgmId);
void performLis3MdlTest(uint8_t lis3Id);
void performL3gTest(uint8_t l3gId);
void performSusTest();
/* ACS board specific code which pulls all GPIOs high */
void acsInit();