cat019.h
Go to the documentation of this file.
1 /*
2  * libasterix
3  * Copyright [2013-2020] SinoATC <http://www.sinoatc.com>.
4  * All Rights Reserved.
5  *
6  * NOTICE: All information contained herein is, and remains
7  * the property of SinoATC and its suppliers, if any.
8  * The intellectual and technical concepts contained herein
9  * are proprietary to Aerosys Corporation and its suppliers and may be
10  * covered by U.S. and Foreign Patents, patents in process,
11  * and are protected by trade secret or copyright law.
12  * Dissemination of this information or reproduction of this material
13  * is strictly forbidden unless prior written permission is obtained
14  * from SinoATC.
15  */
16 
25 #ifndef LIBASTERIX_CAT019_H
26 #define LIBASTERIX_CAT019_H
27 
28 #include "dataitem.h"
29 #include "cat_generic.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
36 const char* ast_dataitem_019_get_name(const ast_dataitem_type_t type);
37 
43 typedef enum _ast_mlat_status_message_type_t
45 {
50 
53 
55 #define ast_dataitem_019_000_get_size ast_dataitem_message_type_get_size
56 
58 #define ast_dataitem_019_000_decode ast_dataitem_message_type_decode
59 
61 #define ast_dataitem_019_000_encode ast_dataitem_message_type_encode
62 
64 AST_API void ast_dataitem_019_000_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
65 
67 #define ast_dataitem_019_000_get_detail_html ast_dataitem_get_detail_html_dummy
68 
78 #define ast_dataitem_019_010_get_size ast_dataitem_data_source_identifier_get_size
79 #define ast_dataitem_019_010_decode ast_dataitem_data_source_identifier_decode
80 #define ast_dataitem_019_010_encode ast_dataitem_data_source_identifier_encode
81 #define ast_dataitem_019_010_get_summary ast_dataitem_data_source_identifier_get_summary
82 #define ast_dataitem_019_010_get_detail_html ast_dataitem_data_source_identifier_get_detail_html
83 
92 #define ast_dataitem_019_140_get_size ast_dataitem_time_of_day_get_size
93 #define ast_dataitem_019_140_decode ast_dataitem_time_of_day_decode
94 #define ast_dataitem_019_140_encode ast_dataitem_time_of_day_encode
95 #define ast_dataitem_019_140_get_summary ast_dataitem_time_of_day_get_summary
96 #define ast_dataitem_019_140_get_detail_html ast_dataitem_time_of_day_get_detail_html
97 
106 typedef enum _ast_mlat_system_status_t
108 {
114 
116 typedef struct _ast_dataitem_019_550_t
117 {
118  bool valid;
119 
121  bool overload;
125 
127 #define ast_dataitem_019_550_get_size ast_dataitem_get_size_fixed_1_byte
128 
131 
133 AST_API void ast_dataitem_019_550_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
134 
136 AST_API void ast_dataitem_019_550_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di);
137 
141 #define ast_dataitem_019_551_get_size ast_dataitem_get_size_fixed_1_byte
143 
145 #define ast_dataitem_019_552_get_size ast_dataitem_get_size_fixed_3_byte
146 
148 #define ast_dataitem_019_553_get_size ast_dataitem_get_size_var_unlimited
149 
151 #define ast_dataitem_019_600_get_size ast_dataitem_get_size_fixed_8_byte
152 
154 #define ast_dataitem_019_610_get_size ast_dataitem_get_size_fixed_2_byte
155 
157 #define ast_dataitem_019_620_get_size ast_dataitem_get_size_fixed_1_byte
158 
159 #ifdef __cplusplus
160  }
161 #endif // extern "C"
162 
163 #endif //LIBASTERIX_CAT019_H
164 
165 // vim:set ft=c sw=2 sts=2 fenc=utf8:
Definition: cat019.h:110
Data Item - Message Type.
Definition: cat_generic.h:51
Definition: cat019.h:48
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:52
Definition: cat019.h:47
#define AST_API
Definition: platform.h:63
Data Item - Data Source Identifier.
Definition: cat_generic.h:93
bool overload
Definition: cat019.h:121
Definition: cat019.h:109
ast_mlat_system_status_t sys_status
Definition: cat019.h:120
Data Item - Time of Day.
Definition: cat_generic.h:219
This file includes the common used data items shares by different categories.
Data Item I019/550 - System Status.
Definition: cat019.h:116
bool test_target_failure
Definition: cat019.h:123
Definition: cat019.h:111
bool time_source_invalid
Definition: cat019.h:122
Definition: cat019.h:112
ast_mlat_system_status_t
MLAT system status type.
Definition: cat019.h:107
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:422
bool valid
Definition: cat019.h:118
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:67
ast_dataitem_time_of_day_t ast_dataitem_019_140_t
Definition: cat019.h:91
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:46
ast_mlat_status_message_type_t
MLAT status message type.
Definition: cat019.h:44
ast_dataitem_data_source_identifier_t ast_dataitem_019_010_t
Definition: cat019.h:77