3 #include "../System/ApplicationManager/app_info.h"
4 #include "../IfWrapper/uart.h"
7 #include "../TlmCmd/common_cmd_packet_util.h"
15 static void UTIL_CMD_add_(
unsigned char add_size,
const unsigned char* cmd);
53 static void UTIL_CMD_add_(
unsigned char add_size,
const unsigned char* cmd)
AppInfo AI_create_app_info(const char *name, void(*initializer)(void), void(*entry_point)(void))
AppInfo を作る
@ CCP_EXEC_ILLEGAL_LENGTH
コマンド実行時のコマンド引数長エラー
@ CCP_EXEC_ILLEGAL_PARAMETER
コマンド実行時のパラメタエラー
@ CCP_EXEC_ILLEGAL_CONTEXT
コマンド実行時のその他のエラー
uint16_t CCP_get_param_len(const CommonCmdPacket *packet)
CMD パラメタ長を取得
const uint8_t * CCP_get_param_head(const CommonCmdPacket *packet)
先頭のパラメタのポインタを取得
CCP_CmdRet CCP_make_cmd_ret_without_err_code(CCP_EXEC_STS exec_sts)
コマンド返り値である CCP_CmdRet を作成(エラーコード不使用版)
#define PORT_CH_MAX_UART_PORT
UARTポート上限
PARITY_SETTINGS parity_settings
パリティ設定
UART_DATA_LENGTH data_length
データ長
uint32_t baudrate
継承先の機器のボーレート値
uint8_t ch
継承先の機器がつながっているポート番号
UART_STOP_BIT stop_bit
ストップビット
UART_Config uart_config_dummy
unsigned char util_cmd_buffer[UTIL_CMD_SIZE_MAX]
int UART_tx(void *my_uart_v, void *data_v, int data_size)
UART_CONFIG構造体にて指定されたchへデータを送信します
@ PARITY_SETTINGS_NONE
パリティチェックをしない
CCP_CmdRet Cmd_UTIL_CMD_SEND(const CommonCmdPacket *packet)
static void UTIL_CMD_reset_(void)
CCP_CmdRet Cmd_UTIL_CMD_RESET(const CommonCmdPacket *packet)
AppInfo UTIL_CMD_create_app(void)
static int UTIL_CMD_send_(unsigned char ch)
static UtilityCommand utility_command_
static void UTIL_CMD_init_(void)
static void UTIL_CMD_add_(unsigned char add_size, const unsigned char *cmd)
CCP_CmdRet Cmd_UTIL_CMD_ADD(const CommonCmdPacket *packet)
const UtilityCommand *const utility_command
#define UTIL_CMD_SIZE_MAX