27 lines
No EOL
443 B
C++
27 lines
No EOL
443 B
C++
#pragma once
|
|
|
|
#include "pico/util/queue.h"
|
|
|
|
class WinKeyer final
|
|
{
|
|
public:
|
|
void run(queue_t &queue);
|
|
|
|
private:
|
|
enum class CommandState {
|
|
None,
|
|
Admin,
|
|
AdminEchoTest,
|
|
LoadDefaults,
|
|
KeyImmediate,
|
|
};
|
|
enum class WkMode {
|
|
WK1,
|
|
WK2,
|
|
WK3,
|
|
};
|
|
|
|
CommandState m_commandState {CommandState::None};
|
|
WkMode m_wkMode {WkMode::WK1};
|
|
bool m_hostOpen {false};
|
|
}; |