Articles Posted by the Author:





  • stop()

    stop()

    説明 ウォッチドッグタイマーを停止する。同時にこの関数も attachInterrupt() にマウントされている ISR ユーサーをアンマウントする。 プログラミング言語 TimerWDT.stop() パラメータ なし フィードバック なし 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.


  • isResetByWDT()

    isResetByWDT()

    説明 ウォッチドッグタイマーをリセットされるか確認する。 プログラミング言語 TimerWDT.isResetByWDT() パラメータ なし フィードバック 関数のフィードバック boolean 値は以下の通り: true:今回の立ち上がるではウォッチドッグタイマーにシステムをリセットさせた。 false:前回のシステムでは通常シャットダウンされたので、ウォッチドッグタイマーリセットさせられなかった。 例 See also - reset() ライブラリリスト 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.


  • reset()

    reset()

    説明 ウォッチドッグタイマーをリセット (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.


  • setPeriod()

    setPeriod()

    説明 ウォッチドッグタイマーの時間サイクルの設定。 プログラミング言語 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.


  • detachInterrupt()

    detachInterrupt()

    説明 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.


  • attachInterrupt()

    attachInterrupt()

    説明 ユーザー 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.