24. http://developer.android.com/tools/adk/adk2.html#adk-conn
ADK Connection over Bluetooth
ADK L;
void setup() {
L.adkInit();
L.btStart();
}
The ADK 2012 app and hardware accessory use a Bluetooth
Serial Port Profile (SPP) connection to communicate. This
connection allows two way communication between the ADK
accessory and Android devices.
2012/7/16 横浜android PF部 24
92. Periodic 転送用List
32個のHeadPointer
32msで一周 Head Pointer
Head Pointer
全てのHeadPointerに
Head Pointer
EDをつないでおくと、 Head Pointer
1回/1msで参照 Head Pointer
Head Pointer
Head Pointer
Head Pointer
Head Pointer
Head Pointer
Head Pointer
2012/7/16 横浜android PF部 92
99. Figure 4-5: Host Controller Communications Area Format
HCCA Host Controller Communication Area
Size
Offset (bytes) Name R/W Description
0 128 HccaInterrruptTable R 32 個のInterrupt ED へのポインタ
0x80 2 HccaFrameNumber W 現在のフレーム番号。このフィールドは、
各フレームのED 処理開始
前にHC が更新
0x82 2 HccaPad1 W HC がHccaFrameNumber をアップデー
トした際に、0 がセットされ
ます。
0x84 4 HccaDoneHead W フレームの終了時、WriteBackDoneHead
割り込みが有効になっていた場合、HC
はこのフィールドにHcDoneHead 値を書
き込みむ。
HC が書き込むと、Software がこの
フィールドをクリアして、
HcInterruptStatus のWD ビットをクリア
しない限り、HC はこのフィ
ールドに書き込みません。
0x88 116 reserved R/W Reserved for use by HC
2012/7/16 横浜android PF部 99