説明 ウォッチドッグタイマーをリセット (0 にさせる)。 この関数が主にウォッチドッグモードで使われ、CPU をウォッチドッグにリセットさせられないように、kicking the dog という動作を実行する。 プログラミング言語 TimerWDT.reset() パラメータ なし フィードバック なし 例 ウォッチドッグタイマーをウォッチドッグモードに設定し、30 秒でのシステムが自動的リセットをし、その上、アプリで 10 秒ごとウォッチドッグタイマーのリセットを設定する。 (一般の状況は上記の設定が発生しないので、もし外力により、システムがフリージングさせられたら、30 秒後ウォッチドッグタイマーがシステムをリセットさせる。) See also - isResetByWDT() ライブラリリスト The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.
説明 ウォッチドッグタイマーの時間サイクルの設定。 プログラミング言語 TimerWDT.setPeriod(time) パラメータ time:時間サイクル、単位は µs。 フィードバック なし 例 ウォッチドッグタイマーを中断モードを設定をし、200ms ごとに LED を点滅させる: See also - initialize() - attachInterrupt() - detachInterrupt() ライブラリリスト The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.
説明 attachInterrupt() にマウントされているユーサー ISR をアンマウントする。 プログラミング言語 TimerWDT.detachInterrupt() パラメーター なし フィードバック なし See also - attachInterrupt() ライブラリリスト The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.
説明 ユーザー ISR をマウントして、同時にウォッチドッグタイマーを起動する。(*この関数はタイマー中断モードでしか使えない。) プログラミング言語 TimerWDT.attachInterrupt(isr) TimerWDT.attachInterrupt(isr, time) パラメーター isr:実行の関数名。 time:時間サイクル設定(関数を選べる、不必要)、単位は µs。 フィードバック なし 例 ウォッチドッグタイマーをタイマー中断モードに設定する。100ms ごとに LED を点滅させる。 See also - detachInterrupt() ライブラリリスト The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.
説明 86Duino のウォッチドッグタイマーを初期化をし、動作モードを指定する。 プログラミング言語 TimerWDT.initialize() TimerWDT.initialize(time) TimerWDT.initialize(time, mode) パラメーター time:ウォッチドッグタイマーの時間サイクルの設定、単位は us。最大設定時間は 512 秒(512000000us);もし指定されなかったら、デフォルト値は 500ms(500000us)。 mode:ウォッチドッグタイマーの動作モードの設定。Boolean タイプ、デフォルト値は false: true:ウォッチドッグモード(すなわち指定された時間に至ると、86Duino をリブートさせる)。 false:カウンタ中断モード(すなわち指定された時間に至ると、ユーサー ISR を一回実行させる。デフォルトモード)。 フィードバック なし 例 ウォッチドッグタイマーを中断モードを設定をし、100ms ごとにLEDを点滅させる: ウォッチドッグタイマーをウォッチドッグモードに設定して、30 秒ごとにシステムをリセットさせる: See also - attachInterrupt()() - detachInterrupt() - setPeriod() - reset() - isResetByWDT() - stop() ライブラリリスト The text of the 86Duino reference is licensed under a Creative […]
86Duino IDE が Coding 211 から、この関数ライブラリーを加え、86Duino が内蔵したウォッチドッグタイマーを操作する。 特別の説明のは、従来の Arduino が内蔵したウォッチドッグ API (例 wdt_enable()) が 86Duino でも使える。この TimerWDT 関数ライブラリーの違うところは従来のウォッチドッグ機能を提供すること以外に、ユーサーがウォッチドッグの中断コールバック関数も使える。或いは、ウォッチドッグリセット機能を閉じて、普通のカウンターとして使う。 Functions - initialize() - attachInterrupt() - detachInterrupt() - setPeriod() - reset() - isResetByWDT() - stop() ライブラリリスト The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are […]
申し訳ありません、このコンテンツはただ今 简体中文と 繁體中文 のみです。
申し訳ありません、このコンテンツはただ今 简体中文と 繁體中文 のみです。
申し訳ありません、このコンテンツはただ今 简体中文と 繁體中文 のみです。
申し訳ありません、このコンテンツはただ今 简体中文と 繁體中文 のみです。