3. ドライバ作成の準備
●
資料を揃える
– メジャーなデバイスだと、 TECH I が便利
●
ドライバを書きたい OS の作法を調べる
– Linux, OpenBSD, Plan 9 and so forth
●
ユーザランドで実装できる場合もある
– USB デバイスなら libusb が使える
●
実装方法を考える
21. libusb + YUREX
[masami@moonlight:~/experiment/yurex]% sudo ./yurex
Yurex info
Vendor: 0xc45
Product: 0x1010
Open Yurex device is success
Kernel Driver Active
Kernel Driver Detached!
Claim to Yurex device
ret is 0
Start search endpoint
find endpoint
Number of alternate settings: 0x1 | Interface Number: 0 |
Number of endpoints: 0x1 | Descriptor Type: 0x5 | EP Address: 0x81 |
ret is 0 : actual is 0x8
Writing Successful!
ret is 0 : actual is 0x8
Reading Successful!
0x43:0:0:0:0:0x94:0xd:0:
Done.