-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnotes.txt
56 lines (33 loc) · 1.22 KB
/
notes.txt
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
registers:
0x5 - gain
0x6 - dac calibration
0x7 - dac calibration 2
0x0 - write protect?: this is set to 0x5a before most operations
0x2a: Function_En: probably something to do with enabling stuff
0x5f/0x4f are apparently "sensing mode"
SPI Status:
- bit 1: if unset, needs reset
- bit 3: line is ready?
- bit 7: is calibrated
tyler's device seems to always be in state 0x81, or not reset is calibrated
-----
matching ideas:
find stddev of image, if above 10000 there is probably fprint
using background image: do difference, if lower, retake bg image
with difference, do histogram clamp
profit?
perhaps take the swipe assembling technique from elan.c
outputs a 96x96 image --> rotate
---
initialization: since we're missing gpio from acpi, we use HID:
- search using hid vid/pid settings from registry? hardcoded?
use SPI bus with normal fpinit flow
---
reset over hid:
- find the thing
- send it a feature report with id 0xe and length 4 with all zeros: should reset the target
verify: did bit 0 go to 1?
---
finding spi info:
- probably will use udev and tagging: ruleset or sometihng to detect the ACPI id ELAN7001, tag the spi device created with something, find that later from libudev.
- HID device: /shrug