cat019.h
Go to the documentation of this file.
1 /*
2  * libasterix
3  * Copyright [2020] SinoATC (http://www.sinoatc.com/).
4  * Copyright [2013-2020] Aerosys Corporation (http://www.aerosys.cn/).
5  * All Rights Reserved.
6  *
7  * NOTICE: All information contained herein is, and remains
8  * the property of SinoATC and its suppliers, if any.
9  * The intellectual and technical concepts contained herein
10  * are proprietary to Aerosys Corporation and its suppliers and may be
11  * covered by U.S. and Foreign Patents, patents in process,
12  * and are protected by trade secret or copyright law.
13  * Dissemination of this information or reproduction of this material
14  * is strictly forbidden unless prior written permission is obtained
15  * from SinoATC.
16  */
17 
26 #ifndef LIBASTERIX_CAT019_H
27 #define LIBASTERIX_CAT019_H
28 
29 #include "dataitem.h"
30 #include "cat_generic.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
37 const char* ast_dataitem_019_get_name(const ast_dataitem_type_t type);
38 
44 typedef enum _ast_mlat_status_message_type_t
46 {
51 
54 
56 #define ast_dataitem_019_000_get_size ast_dataitem_message_type_get_size
57 
59 #define ast_dataitem_019_000_decode ast_dataitem_message_type_decode
60 
62 #define ast_dataitem_019_000_encode ast_dataitem_message_type_encode
63 
65 AST_API void ast_dataitem_019_000_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
66 
68 #define ast_dataitem_019_000_get_detail_html ast_dataitem_get_detail_html_dummy
69 
79 #define ast_dataitem_019_010_get_size ast_dataitem_data_source_identifier_get_size
80 #define ast_dataitem_019_010_decode ast_dataitem_data_source_identifier_decode
81 #define ast_dataitem_019_010_encode ast_dataitem_data_source_identifier_encode
82 #define ast_dataitem_019_010_get_summary ast_dataitem_data_source_identifier_get_summary
83 #define ast_dataitem_019_010_get_detail_html ast_dataitem_data_source_identifier_get_detail_html
84 
93 #define ast_dataitem_019_140_get_size ast_dataitem_time_of_day_get_size
94 #define ast_dataitem_019_140_decode ast_dataitem_time_of_day_decode
95 #define ast_dataitem_019_140_encode ast_dataitem_time_of_day_encode
96 #define ast_dataitem_019_140_get_summary ast_dataitem_time_of_day_get_summary
97 #define ast_dataitem_019_140_get_detail_html ast_dataitem_time_of_day_get_detail_html
98 
107 typedef enum _ast_mlat_system_status_t
109 {
115 
117 typedef struct _ast_dataitem_019_550_t
118 {
119  bool valid;
120 
122  bool overload;
126 
128 #define ast_dataitem_019_550_get_size ast_dataitem_get_size_fixed_1_byte
129 
132 
134 AST_API void ast_dataitem_019_550_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
135 
137 AST_API void ast_dataitem_019_550_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di);
138 
142 #define ast_dataitem_019_551_get_size ast_dataitem_get_size_fixed_1_byte
144 
146 #define ast_dataitem_019_552_get_size ast_dataitem_get_size_fixed_3_byte
147 
149 #define ast_dataitem_019_553_get_size ast_dataitem_get_size_var_unlimited
150 
152 #define ast_dataitem_019_600_get_size ast_dataitem_get_size_fixed_8_byte
153 
155 #define ast_dataitem_019_610_get_size ast_dataitem_get_size_fixed_2_byte
156 
158 #define ast_dataitem_019_620_get_size ast_dataitem_get_size_fixed_1_byte
159 
160 #ifdef __cplusplus
161  }
162 #endif // extern "C"
163 
164 #endif //LIBASTERIX_CAT019_H
165 
166 // vim:set ft=c sw=2 sts=2 fenc=utf8:
Definition: cat019.h:111
Data Item - Message Type.
Definition: cat_generic.h:51
Definition: cat019.h:49
void ast_dataitem_019_550_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
ast_dataitem_message_type_t ast_dataitem_019_000_t
Data Item I019/000 - Message Type.
Definition: cat019.h:53
Definition: cat019.h:48
#define AST_API
Definition: platform.h:63
Data Item - Data Source Identifier.
Definition: cat_generic.h:93
bool overload
Definition: cat019.h:122
Definition: cat019.h:110
ast_mlat_system_status_t sys_status
Definition: cat019.h:121
Data Item - Time of Day.
Definition: cat_generic.h:216
This file includes the common used data items shares by different categories.
Data Item I019/550 - System Status.
Definition: cat019.h:117
bool test_target_failure
Definition: cat019.h:124
Definition: cat019.h:112
bool time_source_invalid
Definition: cat019.h:123
Definition: cat019.h:113
ast_mlat_system_status_t
MLAT system status type.
Definition: cat019.h:108
Implementation of Dataitem concept defined by ASTERIX.
ast_dataitem_019_550_t ast_dataitem_019_550_decode(const ast_dataitem_t di)
Decode function.
Dataitem.
Definition: dataitem.h:419
bool valid
Definition: cat019.h:119
void ast_dataitem_019_550_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get Summary function.
const char * ast_dataitem_019_get_name(const ast_dataitem_type_t type)
Get name function.
ast_dataitem_type_t
Definition of data item id in each category.
Definition: dataitem.h:66
ast_dataitem_time_of_day_t ast_dataitem_019_140_t
Definition: cat019.h:92
void ast_dataitem_019_000_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
Definition: cat019.h:47
ast_mlat_status_message_type_t
MLAT status message type.
Definition: cat019.h:45
ast_dataitem_data_source_identifier_t ast_dataitem_019_010_t
Definition: cat019.h:78