C2A_Core
utility_command.h
[詳解]
1 #ifndef UTILITY_COMMAND_H_
2 #define UTILITY_COMMAND_H_
3 // FIXME: このAppは現在管理されていない!
4 // 使用する前に確認すること
5 
6 #include "../TlmCmd/common_cmd_packet.h"
7 #include "../IfWrapper/uart.h"
8 #include "../System/ApplicationManager/app_info.h"
9 
10 #define UTIL_CMD_SIZE_MAX (256) // 256Bytes以上コマンドとして送ることはないはず...ICOUPS_PARAM_BLより長いし
11 
12 // 汎用コマンド用構造体
13 typedef struct
14 {
16  unsigned char util_cmd_buffer[UTIL_CMD_SIZE_MAX];
17  unsigned int cmd_size; // 送信コマンドサイズ
18  unsigned int pointer;
19  int uart_err_code; // UTIL_CMD_send_でのエラー情報保持用
21 
22 extern const UtilityCommand* const utility_command;
23 
25 
26 // コマンド
30 
31 #endif
コマンド返り値
Space Packet (コマンド用)
UARTポートの初期化、データ送信、データ受信の際に必要となる設定情報を格納する構造体
Definition: uart.h:81
unsigned int pointer
unsigned int cmd_size
UART_Config uart_config_dummy
CCP_CmdRet Cmd_UTIL_CMD_SEND(const CommonCmdPacket *packet)
CCP_CmdRet Cmd_UTIL_CMD_RESET(const CommonCmdPacket *packet)
AppInfo UTIL_CMD_create_app(void)
#define UTIL_CMD_SIZE_MAX
CCP_CmdRet Cmd_UTIL_CMD_ADD(const CommonCmdPacket *packet)
const UtilityCommand *const utility_command