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)) } }