mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 22:17:31 +00:00
WIP: device synchronization
This commit is contained in:
parent
047f6ce981
commit
58918f81c1
90 changed files with 8970 additions and 310 deletions
25
Software/VNA_embedded/Application/Trigger.hpp
Normal file
25
Software/VNA_embedded/Application/Trigger.hpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#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();
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue