C2A_Core
command_dispatcher.h
[詳解]
1 
5 #ifndef COMMAND_DISPATCHER_H_
6 #define COMMAND_DISPATCHER_H_
7 
9 #include "common_cmd_packet.h"
10 #include "packet_list.h"
11 #include "../System/TimeManager/obc_time.h"
13 
18 typedef struct
19 {
24 
29 typedef struct
30 {
31  uint8_t idx;
34  uint32_t error_counter;
35  int lockout;
39 
40 
48 
55 
62 
69 
70 #endif
コマンド定義
void CDIS_clear_command_list(CommandDispatcher *cdis)
CDIS に登録されているコマンドキューからコマンドを削除
CommandDispatcher CDIS_init(PacketList *pl)
CDIS の初期化と取得
void CDIS_dispatch_command(CommandDispatcher *cdis)
CDIS に登録されているコマンドキューからコマンドを実行
void CDIS_clear_error_status(CommandDispatcher *cdis)
CDIS に登録されているコマンドキューのコマンド実行エラー情報を削除
CCP 関連基本関数の宣言
CCP の汎用 Utility
CTCP, CTP, CCP のリストとしてのデータ構造を定義. 片方向リストとして実装されている
コマンド返り値
コマンド実行情報
CMD_CODE code
実行コマンドID
CCP_CmdRet cmd_ret
実行結果
ObcTime time
実行時刻
CommandDispatcher の Info 構造体
uint8_t idx
CDIS のインデックス. EL で用いる
int stop_on_error
異常時実行中断フラグ
CDIS_ExecInfo prev_err
最後にエラーが出たコマンド実行情報
int lockout
実行中断フラグ
uint32_t error_counter
エラーカウンタ
CDIS_ExecInfo prev
前回のコマンド実行情報
PacketList * pl
コマンドキュー
OBCの時刻情報を保持する構造体
Definition: obc_time.h:18
パケットリスト本体
Definition: packet_list.h:73