6 ms·
it's not 1e6, it's le16 Little endian 16 bit As for the driver itself, the spi interfaces are not too hard to understand. It's unlikely anyone is disassemblin
by DannyBee 10y ago
it's not 1e6, it's le16
Little endian 16 bit
As for the driver itself, the spi interfaces are not too hard to understand.
It's unlikely anyone is disassembling anything.
The normal way to figure out the packets the touchpad uses are to look at the datasheets/etc you can find on whoever made the touchpad.
In this case, it's a bcm5974, and if you look at that driver, you'll see the packet format is the same.
Otherwise, you write a packet dumper and start pushing things
- ndesaulniers 10y agoah, there's also an interesting discussion in an GH issue. They reference the data sheets of the parts mentioned from an iFixit teardown. There's also discussion of disassembling the OSX driver. And here's info on how the author sniffed SPI traffic on Windows. [1] [0] https://github.com/cb22/macbook12-spi-driver/pull/1#issuecomment-238819981 https://github.com/cb22/macbook12-spi-driver/pull/1#issuecom... [1] https://github.com/cb22/macbook12-spi-driver/issues/3#issuecomment-248405522 https://github.com/cb22/macbook12-spi-driver/issues/3#issuec...