24 #ifndef LIBASTERIX_CAT004_H 25 #define LIBASTERIX_CAT004_H 46 typedef enum _ast_snet_message_type_t
96 #define AST_MAX_SNET_MESSAGE_TYPES 64 108 #define ast_dataitem_004_000_get_size ast_dataitem_message_type_get_size 111 #define ast_dataitem_004_000_decode ast_dataitem_message_type_decode 114 #define ast_dataitem_004_000_encode ast_dataitem_message_type_encode 131 #define ast_dataitem_004_010_get_size ast_dataitem_data_source_identifier_get_size 132 #define ast_dataitem_004_010_decode ast_dataitem_data_source_identifier_decode 133 #define ast_dataitem_004_010_encode ast_dataitem_data_source_identifier_encode 134 #define ast_dataitem_004_010_get_summary ast_dataitem_data_source_identifier_get_summary 135 #define ast_dataitem_004_010_get_detail_html ast_dataitem_data_source_identifier_get_detail_html 149 #define ast_dataitem_004_020_get_size ast_dataitem_time_of_day_get_size 152 #define ast_dataitem_004_020_decode ast_dataitem_time_of_day_decode 155 #define ast_dataitem_004_020_encode ast_dataitem_time_of_day_encode 158 #define ast_dataitem_004_020_get_summary ast_dataitem_time_of_day_get_summary 161 #define ast_dataitem_004_020_get_detail_html ast_dataitem_time_of_day_get_detail_html 175 #define ast_dataitem_004_030_get_size ast_dataitem_track_number_get_size 178 #define ast_dataitem_004_030_decode ast_dataitem_track_number_decode 181 #define ast_dataitem_004_030_encode ast_dataitem_track_number_encode 184 #define ast_dataitem_004_030_get_summary ast_dataitem_track_number_get_summary 187 #define ast_dataitem_004_030_get_detail_html ast_dataitem_track_number_get_detail_html 201 #define ast_dataitem_004_035_get_size ast_dataitem_track_number_get_size 204 #define ast_dataitem_004_035_decode ast_dataitem_track_number_decode 207 #define ast_dataitem_004_035_encode ast_dataitem_track_number_encode 210 #define ast_dataitem_004_035_get_summary ast_dataitem_track_number_get_summary 213 #define ast_dataitem_004_035_get_detail_html ast_dataitem_track_number_get_detail_html 223 typedef struct _ast_dataitem_004_040_t
232 #define ast_dataitem_004_040_get_size ast_dataitem_get_size_fixed_2_byte 244 #define ast_dataitem_004_040_get_detail_html ast_dataitem_get_detail_html_dummy; 254 typedef struct _ast_dataitem_004_060_t
265 #define ast_dataitem_004_060_get_size ast_dataitem_get_size_var_6_byte 284 typedef struct _ast_dataitem_004_100_t
305 #define ast_dataitem_004_100_get_summary ast_dataitem_subfields_get_summary 308 #define ast_dataitem_004_100_get_detail_html ast_dataitem_subfields_get_detail_html 333 typedef struct _ast_dataitem_004_120_t
355 #define ast_dataitem_004_120_get_summary ast_dataitem_subfields_get_summary 358 #define ast_dataitem_004_120_get_detail_html ast_dataitem_subfields_get_detail_html 383 typedef struct _ast_dataitem_004_170_t
403 #define ast_dataitem_004_170_get_summary ast_dataitem_subfields_get_summary 406 #define ast_dataitem_004_170_get_detail_html ast_dataitem_subfields_get_detail_html 438 #define ast_dataitem_004_171_decode ast_dataitem_004_170_decode 441 #define ast_dataitem_004_171_get_summary ast_dataitem_subfields_get_summary 444 #define ast_dataitem_004_171_get_detail_html ast_dataitem_subfields_get_detail_html 456 #define ast_subfield_004_171_get_summary ast_subfield_004_170_get_summary 459 #define ast_subfield_004_171_get_detail_html ast_subfield_004_170_get_detail_html 471 typedef struct _ast_datarecord_004_t
504 #endif //LIBASTERIX_CAT004_H void ast_subfield_004_170_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di, const ast_subfield_type_t type)
Get detail HTML snippet of subfield.
bool valid
Definition: cat004.h:474
void ast_dataitem_004_000_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
size_t ast_dataitem_004_170_get_size(const unsigned char *buffer, const size_t bufsize)
Get size of dataitem.
ast_dataitem_004_060_t dataitem_004_060
Definition: cat004.h:482
Data Item - Message Type.
Definition: cat_generic.h:51
size_t n_subfields
Definition: cat004.h:389
void ast_dataitem_004_040_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
bool cc_existing
Definition: cat004.h:342
Extracted dataitem.
Definition: dataitem.h:433
ast_dataitem_004_020_t dataitem_004_020
Definition: cat004.h:478
ast_subfield_type_t
Definition of subfield id in each dataitem.
Definition: subfield.h:52
Implementation of Datarecord concept defined by ASTERIX.
size_t n_subfields
Definition: cat004.h:290
ast_dataitem_004_170_t ast_dataitem_004_171_t
Data Item I004/171 - Aircraft Identification & Characteristics 2.
Definition: cat004.h:432
ast_dataitem_004_100_t dataitem_004_100
Definition: cat004.h:483
Data Item Itrack_number - Track Number.
Definition: cat_generic.h:727
ast_dataitem_message_type_t ast_dataitem_004_000_t
Data Item I004/000 - Message Type.
Definition: cat004.h:105
size_t n_subfields
Definition: cat004.h:339
ast_dataitem_004_030_t dataitem_004_030
Definition: cat004.h:479
bool valid
Definition: cat004.h:386
unsigned int cc_conflict_property
Definition: cat004.h:344
const char * ast_subfield_004_171_get_id(const ast_subfield_type_t type)
Get id string of subfield.
Data Item I004/120 - Conflict Characteristics.
Definition: cat004.h:334
bool an_existing
Definition: cat004.h:293
Data Item - Data Source Identifier.
Definition: cat_generic.h:93
unsigned int cc_conflict_severity
0 - Low, 1 - Hight
Definition: cat004.h:345
const char * ast_dataitem_004_get_name(const ast_dataitem_type_t type)
Get name function.
Data Item - Time of Day.
Definition: cat_generic.h:219
void ast_dataitem_004_000_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
void ast_subfield_004_100_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di, const ast_subfield_type_t type)
Get detail HTML snippet of subfield.
const char * ast_subfield_004_170_get_id(const ast_subfield_type_t type)
Get id string of subfield.
void ast_dataitem_004_060_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
Data Item I048/040 - Alert Identifier.
Definition: cat004.h:224
This file includes the common used data items shares by different categories.
ast_dataitem_004_060_t ast_dataitem_004_060_decode(const ast_dataitem_t di)
Decode function.
size_t ast_subfield_004_170_get_size(const unsigned char *buffer, const size_t bufsize, const ast_subfield_type_t type)
Get size of subfield.
ast_dataitem_004_010_t dataitem_004_010
Definition: cat004.h:477
bool valid
Definition: cat004.h:226
size_t ast_dataitem_004_120_get_size(const unsigned char *buffer, const size_t bufsize)
Get size of dataitem.
Subfield struct.
Definition: subfield.h:292
bool valid
Definition: cat004.h:336
int m3_code
Definition: cat004.h:393
ast_dataitem_004_120_t ast_dataitem_004_120_decode(const ast_dataitem_t di)
Decode function of dataitem.
size_t ast_dataitem_004_100_get_size(const unsigned char *buffer, const size_t bufsize)
Get size of dataitem.
ast_snet_message_type_t
SNET message type.
Definition: cat004.h:47
unsigned int alert_id
Definition: cat004.h:228
void ast_dataitem_004_060_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
size_t ast_subfield_004_171_get_size(const unsigned char *buffer, const size_t bufsize, const ast_subfield_type_t type)
Get size of subfield.
size_t ast_subfield_004_120_get_size(const unsigned char *buffer, const size_t bufsize, const ast_subfield_type_t type)
Get size of subfield.
const char * ast_subfield_004_170_get_name(const ast_subfield_type_t type)
Get name of subfield.
Data Record I004 - Safety Net Messages.
Definition: cat004.h:472
const char * ast_subfield_004_171_get_name(const ast_subfield_type_t type)
Get name of subfield.
void ast_subfield_004_120_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di, const ast_subfield_type_t type)
Get summary of subfield.
bool valid
Definition: cat004.h:257
Implementation of Dataitem concept defined by ASTERIX.
const char * ast_subfield_004_100_get_id(const ast_subfield_type_t type)
Get id string of subfield.
ast_dataitem_time_of_day_t ast_dataitem_004_020_t
Data Item I048/020 - Time of Message.
Definition: cat004.h:146
Data Item I004/100 - Area Definition.
Definition: cat004.h:285
ast_dataitem_004_035_t dataitem_004_035
Definition: cat004.h:480
ast_dataitem_004_040_t ast_dataitem_004_040_decode(const ast_dataitem_t di)
Decode function.
ast_dataitem_004_170_t ast_dataitem_004_170_decode(const ast_dataitem_t di)
Decode function of dataitem.
const char * ast_snet_message_type_get_name(const ast_snet_message_type_t type)
Get name of SNET message type.
ast_dataitem_004_170_t dataitem_004_170
Definition: cat004.h:485
Dataitem.
Definition: dataitem.h:422
ast_dataitem_004_040_t dataitem_004_040
Definition: cat004.h:481
ast_dataitem_004_100_t ast_dataitem_004_100_decode(const ast_dataitem_t di)
Decode function of dataitem.
#define AST_MAX_SNET_MESSAGE_TYPES
Max SNET message types.
Definition: cat004.h:96
const char * ast_subfield_004_120_get_name(const ast_subfield_type_t type)
Get name of subfield.
size_t n_functions
Definition: cat004.h:259
ast_dataitem_type_t
Definition of data item id in each category.
Definition: dataitem.h:67
ast_dataitem_track_number_t ast_dataitem_004_035_t
Data Item I048/035 - Track Number 2.
Definition: cat004.h:198
ast_dataitem_track_number_t ast_dataitem_004_030_t
Data Item I048/030 - Track Number 1.
Definition: cat004.h:172
#define AST_MAX_SUBFIELDS
Definition: subfield.h:362
ast_dataitem_004_120_t dataitem_004_120
Definition: cat004.h:484
bool m3_existing
Definition: cat004.h:392
void ast_subfield_004_100_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di, const ast_subfield_type_t type)
Get summary of subfield.
const char * ast_subfield_004_100_get_name(const ast_subfield_type_t type)
Get name of subfield.
void ast_subfield_004_170_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di, const ast_subfield_type_t type)
Get summary of subfield.
Datarecord.
Definition: datarecord.h:40
ast_dataitem_004_171_t dataitem_004_171
Definition: cat004.h:486
Data Item I048/060 - Safety Net Function & System Status.
Definition: cat004.h:255
ast_dataitem_t ast_dataitem_004_040_encode(unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
const char * ast_subfield_004_120_get_id(const ast_subfield_type_t type)
Get id string of subfield.
bool valid
Definition: cat004.h:287
ast_dataitem_data_source_identifier_t ast_dataitem_004_010_t
Definition: cat004.h:130
Data Item I004/170 - Aircraft Identification & Characteristics 1.
Definition: cat004.h:384
unsigned int cc_table_id
Definition: cat004.h:343
const char * ast_snet_message_type_get_id(const ast_snet_message_type_t type)
Get id of SNET message type.
size_t ast_subfield_004_100_get_size(const unsigned char *buffer, const size_t bufsize, const ast_subfield_type_t type)
Get size of subfield.
ast_datarecord_004_t ast_datarecord_004_disassemble(const ast_datarecord_t dr)
Disassemble function.
void ast_subfield_004_120_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di, const ast_subfield_type_t type)
Get detail HTML snippet of subfield.
ast_dataitem_004_000_t dataitem_004_000
Definition: cat004.h:476
Implementation of Subfield concept defined by ASTERIX.
size_t ast_dataitem_004_171_get_size(const unsigned char *buffer, const size_t bufsize)
Get size function.