From 878a946bb4aa370a2a74cd1920e511c21bc25d7f Mon Sep 17 00:00:00 2001 From: cheoljun99 Date: Thu, 23 Apr 2026 17:31:09 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20=ED=85=8C=EC=8A=A4=ED=8A=B8=EB=A5=BC?= =?UTF-8?q?=20=EC=9C=84=ED=95=9C=20icd=20=EC=B6=94=EA=B0=80=20comm=5Fbig?= =?UTF-8?q?=5Fdata=5Ftest.h,=20comm=5Freliable=5Ftest.h=20=EB=B0=8F=20enum?= =?UTF-8?q?=20=ED=81=B4=EB=9E=98=EC=8A=A4=20icd=5Fid.h=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/dto/comm_big_data_test.h | 14 ++++++++++++++ include/dto/comm_reliable_test.h | 14 ++++++++++++++ include/enum/icd_id.h | 4 +++- 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 include/dto/comm_big_data_test.h create mode 100644 include/dto/comm_reliable_test.h diff --git a/include/dto/comm_big_data_test.h b/include/dto/comm_big_data_test.h new file mode 100644 index 0000000..117dadd --- /dev/null +++ b/include/dto/comm_big_data_test.h @@ -0,0 +1,14 @@ +#ifndef COMM_BIG_DATA_TEST_H +#define COMM_BIG_DATA_TEST_H +#include +#include "../enum/icd_id.h" +#define MAX_BIG_DATA_SIZE (1024 * 1024) +#pragma pack(push, 1) +struct CommBigDataTest { + IcdId message_id; + uint32_t counter; + uint32_t big_data_size; + uint8_t big_data[MAX_BIG_DATA_SIZE]; +}; +#pragma pack(pop) +#endif // COMM_BIG_DATA_TEST_H diff --git a/include/dto/comm_reliable_test.h b/include/dto/comm_reliable_test.h new file mode 100644 index 0000000..e899ddc --- /dev/null +++ b/include/dto/comm_reliable_test.h @@ -0,0 +1,14 @@ +#ifndef COMM_RELIABLE_TEST_H +#define COMM_RELIABLE_TEST_H + +#include +#include "../enum/icd_id.h" + +#pragma pack(push, 1) +struct CommReliableTest { + IcdId message_id; + uint32_t counter; +}; +#pragma pack(pop) + +#endif // COMM_RELIABLE_TEST_H \ No newline at end of file diff --git a/include/enum/icd_id.h b/include/enum/icd_id.h index 9124d98..cd62fb8 100644 --- a/include/enum/icd_id.h +++ b/include/enum/icd_id.h @@ -36,7 +36,9 @@ enum class IcdId : uint16_t { GUIDANCE_COMMAND = 0x0018, // 유도 명령 (guidance_command) MISSILE_TARGET_STATE = 0x0019, // 미사일/표적 참값 상태 (missile_target_state) - NAVIGATION_TEST_COMMAND = 0x001A // 항법시험 명령 (navigation_test_command) + NAVIGATION_TEST_COMMAND = 0x001A, // 항법시험 명령 (navigation_test_command) + COMM_RELIABLE_TEST = 0xFFF0, // 통신 신뢰성 테스트용 ICD ID (comm_reliable_test) + COMM_BIG_DATA_TEST = 0xFFF1 // 통신 대용량 데이터 테스트용 ICD ID (comm_big_data_test) }; #endif // ICD_ID_H