Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions include/dto/comm_big_data_test.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#ifndef COMM_BIG_DATA_TEST_H
#define COMM_BIG_DATA_TEST_H
#include <cstdint>
#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
14 changes: 14 additions & 0 deletions include/dto/comm_reliable_test.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#ifndef COMM_RELIABLE_TEST_H
#define COMM_RELIABLE_TEST_H

#include <cstdint>
#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
4 changes: 3 additions & 1 deletion include/enum/icd_id.h
Original file line number Diff line number Diff line change
Expand Up @@ -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