working SUS in externally clocked mode

This commit is contained in:
2021-05-09 16:48:55 +02:00
parent 906c813e4c
commit 189bdb7c90
6 changed files with 170 additions and 129 deletions

View File

@ -41,15 +41,10 @@ protected:
private:
enum class CommunicationStep {
PERFORM_CONVERSIONS,
REQUEST_TEMP,
READ_TEMP,
WRITE_SETUP
};
enum class InternalState {
SETUP,
CONFIGURED
WRITE_SETUP,
REQUEST_TEMPERATURE,
READ_TEMPERATURE,
READ_CHANNELS
};
LinuxLibgpioIF* gpioComIF = nullptr;
@ -59,7 +54,6 @@ private:
SUS::SusDataset dataset;
uint8_t cmdBuffer[SUS::MAX_CMD_SIZE];
InternalState internalState = InternalState::SETUP;
CommunicationStep communicationStep = CommunicationStep::WRITE_SETUP;
};