cat065.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 
25 #ifndef LIBASTERIX_CAT065_H
26 #define LIBASTERIX_CAT065_H
27 
28 #include "dataitem.h"
29 #include "datarecord.h"
30 #include "cat_generic.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 //Data Item
37 
40 
46 typedef enum _ast_sdps_message_type_t
48 {
53 
56 
58 #define ast_dataitem_065_000_get_size ast_dataitem_message_type_get_size
59 
61 #define ast_dataitem_065_000_decode ast_dataitem_message_type_decode
62 
64 #define ast_dataitem_065_000_encode ast_dataitem_message_type_encode
65 
67 AST_API void ast_dataitem_065_000_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
68 
70 #define ast_dataitem_065_000_get_detail_html ast_dataitem_get_detail_html_dummy
71 
82 
84 #define ast_dataitem_065_010_get_size ast_dataitem_data_source_identifier_get_size
85 
87 #define ast_dataitem_065_010_decode ast_dataitem_data_source_identifier_decode
88 
90 #define ast_dataitem_065_010_encode ast_dataitem_data_source_identifier_encode
91 
93 #define ast_dataitem_065_010_get_summary ast_dataitem_data_source_identifier_get_summary
94 
96 #define ast_dataitem_065_010_get_detail_html ast_dataitem_data_source_identifier_get_detail_html
97 
107 
109 #define ast_dataitem_065_015_get_size ast_dataitem_service_id_get_size
110 
112 #define ast_dataitem_065_015_decode ast_dataitem_service_id_decode
113 
115 #define ast_dataitem_065_015_get_summary ast_dataitem_service_id_get_summary
116 
118 #define ast_dataitem_065_015_get_detail_html ast_dataitem_service_id_get_detail_html
119 
128 typedef struct _ast_dataitem_065_020_t
130 {
131  bool valid;
132 
133  unsigned int batch_number;
135 
137 #define ast_dataitem_065_020_get_size ast_dataitem_get_size_fixed_1_byte
138 
141 
143 AST_API void ast_dataitem_065_020_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
144 
146 #define ast_dataitem_065_020_get_detail_html ast_dataitem_get_detail_html_dummy
147 
158 
160 #define ast_dataitem_065_030_get_size ast_dataitem_time_of_day_get_size
161 
163 #define ast_dataitem_065_030_decode ast_dataitem_time_of_day_decode
164 
166 #define ast_dataitem_065_030_encode ast_dataitem_time_of_day_encode
167 
169 #define ast_dataitem_065_030_get_summary ast_dataitem_time_of_day_get_summary
170 
172 #define ast_dataitem_065_030_get_detail_html ast_dataitem_time_of_day_get_detail_html
173 
182 typedef enum _ast_sdps_status_t
184 {
190 
192 typedef struct _ast_dataitem_065_040_t
193 {
194  bool valid;
195 
197  bool overload;
199  unsigned int processing_system;
201 
203 #define ast_dataitem_065_040_get_size ast_dataitem_get_size_fixed_1_byte
204 
207 
209 AST_API void ast_dataitem_065_040_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
210 
212 void ast_dataitem_065_040_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di);
213 
217 //Data Record
218 
224 typedef struct _ast_datarecord_065_t
226 {
227  bool valid;
228 
236 
239 
241 //AST_API ast_datarecord_t ast_datarecord_065_assemble(unsigned char* const buffer, const size_t bufsize, const ast_datarecord_065_t dr, const ast_uap_t uap);
242 
243 
246 #ifdef __cplusplus
247  }
248 #endif // extern "C"
249 
250 #endif //LIBASTERIX_CAT065_H
251 
252 // vim:set ft=c.doxygen sw=2 sts=2 fenc=utf8:
const char * ast_dataitem_065_get_name(const ast_dataitem_type_t type)
Get name function.
Data Item - Message Type.
Definition: cat_generic.h:52
ast_dataitem_065_040_t dataitem_065_040
Definition: cat065.h:234
Implementation of Datarecord concept defined by ASTERIX.
Data Item I065/020 - Batch Number.
Definition: cat065.h:129
#define AST_API
Definition: platform.h:63
bool valid
Definition: cat065.h:131
Data Item - Data Source Identifier.
Definition: cat_generic.h:94
void ast_dataitem_065_020_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
Definition: cat065.h:185
ast_sdps_status_t
SDPS status.
Definition: cat065.h:183
Definition: cat065.h:49
Data Item - Time of Day.
Definition: cat_generic.h:217
bool valid
Definition: cat065.h:194
ast_dataitem_065_015_t dataitem_065_015
Definition: cat065.h:231
ast_dataitem_time_of_day_t ast_dataitem_065_030_t
Data Item I065/030 - Time of Message.
Definition: cat065.h:157
This file includes the common used data items shares by different categories.
ast_dataitem_message_type_t ast_dataitem_065_000_t
Data Item I065/000 - Message Type.
Definition: cat065.h:55
void ast_dataitem_065_040_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
Data Item - Service Identification.
Definition: cat_generic.h:134
bool invalid_timesource
Definition: cat065.h:198
ast_dataitem_065_000_t dataitem_065_000
Definition: cat065.h:229
ast_dataitem_065_010_t dataitem_065_010
Definition: cat065.h:230
Definition: cat065.h:188
ast_dataitem_065_040_t ast_dataitem_065_040_decode(const ast_dataitem_t di)
Decode function.
Definition: cat065.h:50
ast_dataitem_service_id_t ast_dataitem_065_015_t
Data Item I065/015 - Service Identification.
Definition: cat065.h:106
Implementation of Dataitem concept defined by ASTERIX.
ast_datarecord_065_t ast_datarecord_065_disassemble(const ast_datarecord_t dr)
Disassemble function.
bool overload
Definition: cat065.h:197
ast_sdps_message_type_t
SDPS message type.
Definition: cat065.h:47
Data Record I065 - SDPS Service Status Messages.
Definition: cat065.h:225
ast_dataitem_065_020_t ast_dataitem_065_020_decode(const ast_dataitem_t di)
Decode function.
Dataitem.
Definition: dataitem.h:421
ast_dataitem_type_t
Definition of data item id in each category.
Definition: dataitem.h:67
ast_dataitem_065_030_t dataitem_065_030
Definition: cat065.h:233
ast_dataitem_data_source_identifier_t ast_dataitem_065_010_t
Data Item I065/010 - Data Source Identifier.
Definition: cat065.h:81
Definition: cat065.h:51
void ast_dataitem_065_040_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
unsigned int batch_number
Definition: cat065.h:133
unsigned int processing_system
0 for N/A, and 1-3 for SDPS number
Definition: cat065.h:199
Datarecord.
Definition: datarecord.h:41
Definition: cat065.h:186
Definition: cat065.h:187
ast_dataitem_065_020_t dataitem_065_020
Definition: cat065.h:232
bool valid
Definition: cat065.h:227
void ast_dataitem_065_000_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
ast_sdps_status_t status
Definition: cat065.h:196
Data Item I065/040 - SDPS Configuration and Status.
Definition: cat065.h:192