blob: 8150ab35fd7d9168b423e7f709fe71c6ad6eddd8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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))
}
}
|