LibreVNA/Software/VNA_embedded/Application/Trigger.hpp

26 lines
305 B
C++
Raw Normal View History

2022-08-07 09:01:22 +08:00
#pragma once
#include <cstdint>
namespace Trigger {
enum class Mode : uint8_t {
Off = 0,
USB_GUI = 1,
ExtRef = 2,
Trigger = 3,
};
using CallbackISR = void(*)(void);
void Init(CallbackISR cb);
void SetMode(Mode m);
Mode GetMode();
void SetInput(bool high);
bool GetOutput();
bool GetInput();
}