-
Notifications
You must be signed in to change notification settings - Fork 0
/
vial-def.go
34 lines (30 loc) · 3.61 KB
/
vial-def.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// This file is auto-generated by github.com/bgould/keyboard-firmware/hosts/usbvial/gen-def, do not edit.
package main
import "github.com/bgould/keyboard-firmware/hosts/usbvial/vial"
var VialDeviceDefinition = vial.DeviceDefinition{
Name: "Kinesis Advantage 360 Pro",
VendorID: "0x23ea",
ProductID: "0x0362",
Matrix: vial.DeviceMatrix{
Rows: 5,
Cols: 20,
},
LzmaDefLength: uint16(len(vialLzmaDefinition)),
LzmaDefWriter: vial.LzmaDefPageWriterFunc(vialWriteLzmaDefPage),
}
var vialLzmaDefinition = []byte{
0x5D, 0x00, 0x00, 0x80, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x3D, 0x82, 0x80, 0x17, 0x1C, 0x2E, 0x8B, 0x89, 0x9F, 0x24, 0xFF, 0xE8, 0x0F, 0x31, 0x14, 0x05, 0xB2, 0x5B, 0x0A, 0xB8, 0xD2, 0xDE, 0xA9, 0xB2, 0x0B, 0x0B, 0xCF, 0x3B, 0x85, 0x91, 0x59, 0x1F, 0x3A, 0x6A, 0xD5, 0x8A, 0xA8, 0x70, 0x9B, 0x74, 0x4E, 0x1C, 0xE2, 0xD1, 0xA1, 0x8C, 0xE3, 0xB0, 0xF3, 0x52, 0x50, 0x69, 0xCB, 0xC9, 0xB3, 0x2C, 0x18, 0x65, 0x20, 0x1E, 0xFF, 0x18, 0xA8, 0xF4, 0x08, 0xAA, 0x40, 0xFB, 0xCD, 0xF8, 0x0B, 0x59, 0xEF, 0x9A, 0x1A, 0x9C, 0x19, 0xE4, 0xE7, 0xCB, 0xD2, 0x09, 0x30, 0xE5, 0x84, 0xCE, 0xB7, 0x80, 0x72, 0x8D, 0xB7, 0x7F, 0xFA, 0x73, 0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xFF, 0xB0, 0xA7, 0x3A, 0xA9,
}
func vialWriteLzmaDefPage(tx []byte, page uint16) bool {
start := page * 32
end := start + 32
len := uint16(len(vialLzmaDefinition))
if end < start || start >= len {
return false
}
if end > len {
end = len
}
copy(tx[:32], vialLzmaDefinition[start:end])
return true
}