feat: serial CW keyer — add invert (active-LOW) polarity option

Some CW interfaces key on the opposite line level (transmit at rest / key
backwards). New "Invert keying (active-LOW)" toggle flips the asserted level for
both the CW and PTT lines, and the idle state drives both lines to their
inactive level accordingly so an active-low rig isn't left keyed at rest.
Default off = N1MM convention (line HIGH = active).
This commit is contained in:
2026-07-23 18:50:01 +02:00
parent 2c5416500f
commit 43f15f1a2c
5 changed files with 33 additions and 13 deletions
+1
View File
@@ -58,6 +58,7 @@ type Config struct {
// apply; the paddle/sidetone/ratio fields are WinKeyer-only.
Type string `json:"type"`
CWKeyLine string `json:"cw_key_line"` // serial: "dtr" (CW on DTR, PTT on RTS — default) | "rts"
CWInvert bool `json:"cw_invert"` // serial: invert line polarity (active-LOW) for both key and PTT
}
func (c Config) normalised() Config {