メインページ | モジュール | 名前空間一覧 | クラス階層 | 構成 | ファイル一覧 | 名前空間メンバ | 構成メンバ | ファイルメンバ | 関連ページ

クラス テンプレートtoppers::isr_body< Diagnostics, Stub > の解説
[カーネルオブジェクト管理]

割込みサービスルーチンの本体動作を定義する基底クラス [詳細]

#include <toppers/interrupt.hpp>

toppers::isr_body< Diagnostics, Stub >に対する継承グラフ

toppers::non_task_context_body< Diagnostics, Stub > すべてのメンバ一覧

Public メンバ関数

 isr_body (VP_INT exinf)
 コンストラクタ

VP_INT get_extended_info () const
 拡張情報の取得

void run ()
 ハンドラ本体動作の実行


Static Public 変数

const task_context_tag task_context = toppers::task_context
 タスクコンテキストを指定する定数

const non_task_context_tag non_task_context = toppers::non_task_context
 非タスクコンテキストを指定する定数

const non_task_context_tag context_independent = toppers::non_task_context
 現在のコンテキスト(すなわち非タスクコンテキスト)を指定する定数


Protected 型

typedef Stub stub
 サービスコールスタブ


Static Protected メンバ関数

ID get_task_id ()
 実行中のタスクID番号を参照する


解説

template<class Diagnostics = TOPPERS_DEFAULT_DIAGNOSTICS, class Stub = TOPPERS_DEFAULT_STUB>
class toppers::isr_body< Diagnostics, Stub >

  割込みサービスルーチンを作成する場合、isr_body テンプレートクラスから public 継承したクラスを定義し、その型をisr_entry テンプレート関数のテンプレート引数に渡す。

参照:
isr isr_entry