port | ポート番号 |
unit | ユニット番号を格納した配列 |
time | 自動停止時間を格納した配列 |
num | ユニット数 |
PDD_VIBERR_OK | 正常終了 |
PDD_VIBERR_NO_VIBRATOR | 接続されていない |
PDD_VIBERR_BUSY | BUSY状態 |
引数portには次の値が設定できます。
PDD_PORT_A1 | ポートAの拡張ソケット1 |
PDD_PORT_A2 | ポートAの拡張ソケット2 |
PDD_PORT_B1 | ポートBの拡張ソケット1 |
PDD_PORT_B2 | ポートBの拡張ソケット2 |
PDD_PORT_C1 | ポートCの拡張ソケット1 |
PDD_PORT_C2 | ポートCの拡張ソケット2 |
PDD_PORT_D1 | ポートDの拡張ソケット1 |
PDD_PORT_D2 | ポートDの拡張ソケット2 |
Uint8 units[] = {1, 3, 5}; Uint8 times[] = {10, 20, 30}; if (pdVibSetStopTime(PDD_PORT_A2, units, times, 3) == PDD_VIBERR_OK) { /* 成功 */ }