diff options
| author | Kevin Wallace <kevin@pentabarf.net> | 2026-03-02 15:04:40 -0800 |
|---|---|---|
| committer | Kevin Wallace <kevin@pentabarf.net> | 2026-03-02 15:04:40 -0800 |
| commit | 502a6d983f981aff18b261a61feded2db6006ec6 (patch) | |
| tree | b2f7b65c8c5a0319780f62a891d517148a6623ff /pic32 | |
| parent | exec -> systemd-run; more parsing (diff) | |
ipp -> {cvend,pic32}-ipp
Diffstat (limited to 'pic32')
| -rw-r--r-- | pic32/pic32.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pic32/pic32.go b/pic32/pic32.go new file mode 100644 index 0000000..8150ab3 --- /dev/null +++ b/pic32/pic32.go @@ -0,0 +1,21 @@ +package pic32 + +import ( + "encoding/hex" + "log" + + "pm3.dev/ipp" +) + +const Path = "/dev/ttymxc2" + +func OpenIPP(handler ipp.Handler) (ipp.Session, error) { + return ipp.Open(Path, handler) +} + +func LogIPP(msgType byte, msgData []byte) { + switch msgType { + default: + log.Printf("ipp %02x\n%s", msgType, hex.Dump(msgData)) + } +} |