cat065.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 
24 #ifndef LIBASTERIX_CAT065_H
25 #define LIBASTERIX_CAT065_H
26 
27 #include "dataitem.h"
28 #include "datarecord.h"
29 #include "cat_generic.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 //Data Item
36 
39 
45 typedef enum _ast_sdps_message_type_t
47 {
52 
55 
57 #define ast_dataitem_065_000_get_size ast_dataitem_message_type_get_size
58 
60 #define ast_dataitem_065_000_decode ast_dataitem_message_type_decode
61 
63 #define ast_dataitem_065_000_encode ast_dataitem_message_type_encode
64 
66 AST_API void ast_dataitem_065_000_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
67 
69 #define ast_dataitem_065_000_get_detail_html ast_dataitem_get_detail_html_dummy
70 
81 
83 #define ast_dataitem_065_010_get_size ast_dataitem_data_source_identifier_get_size
84 
86 #define ast_dataitem_065_010_decode ast_dataitem_data_source_identifier_decode
87 
89 #define ast_dataitem_065_010_encode ast_dataitem_data_source_identifier_encode
90 
92 #define ast_dataitem_065_010_get_summary ast_dataitem_data_source_identifier_get_summary
93 
95 #define ast_dataitem_065_010_get_detail_html ast_dataitem_data_source_identifier_get_detail_html
96 
106 
108 #define ast_dataitem_065_015_get_size ast_dataitem_service_id_get_size
109 
111 #define ast_dataitem_065_015_decode ast_dataitem_service_id_decode
112 
114 #define ast_dataitem_065_015_encode ast_dataitem_service_id_encode
115 
117 #define ast_dataitem_065_015_get_summary ast_dataitem_service_id_get_summary
118 
120 #define ast_dataitem_065_015_get_detail_html ast_dataitem_service_id_get_detail_html
121 
130 typedef struct _ast_dataitem_065_020_t
132 {
133  bool valid;
134 
135  unsigned int batch_number;
137 
139 #define ast_dataitem_065_020_get_size ast_dataitem_get_size_fixed_1_byte
140 
143 
145 AST_API void ast_dataitem_065_020_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
146 
148 #define ast_dataitem_065_020_get_detail_html ast_dataitem_get_detail_html_dummy
149 
160 
162 #define ast_dataitem_065_030_get_size ast_dataitem_time_of_day_get_size
163 
165 #define ast_dataitem_065_030_decode ast_dataitem_time_of_day_decode
166 
168 #define ast_dataitem_065_030_encode ast_dataitem_time_of_day_encode
169 
171 #define ast_dataitem_065_030_get_summary ast_dataitem_time_of_day_get_summary
172 
174 #define ast_dataitem_065_030_get_detail_html ast_dataitem_time_of_day_get_detail_html
175 
184 typedef enum _ast_sdps_status_t
186 {
192 
194 typedef struct _ast_dataitem_065_040_t
195 {
196  bool valid;
197 
199  bool overload;
201  unsigned int processing_system;
203 
205 #define ast_dataitem_065_040_get_size ast_dataitem_get_size_fixed_1_byte
206 
209 
211 AST_API void ast_dataitem_065_040_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
212 
214 void ast_dataitem_065_040_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di);
215 
219 //Data Record
220 
226 typedef struct _ast_datarecord_065_t
228 {
229  bool valid;
230 
238 
241 
243 //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);
244 
245 
248 #ifdef __cplusplus
249  }
250 #endif // extern "C"
251 
252 #endif //LIBASTERIX_CAT065_H
253 
254 // 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:51
ast_dataitem_065_040_t dataitem_065_040
Definition: cat065.h:236
Implementation of Datarecord concept defined by ASTERIX.
Data Item I065/020 - Batch Number.
Definition: cat065.h:131
#define AST_API
Definition: platform.h:63
bool valid
Definition: cat065.h:133
Data Item - Data Source Identifier.
Definition: cat_generic.h:93
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:187
ast_sdps_status_t
SDPS status.
Definition: cat065.h:185
Definition: cat065.h:48
Data Item - Time of Day.
Definition: cat_generic.h:219
bool valid
Definition: cat065.h:196
ast_dataitem_065_015_t dataitem_065_015
Definition: cat065.h:233
ast_dataitem_time_of_day_t ast_dataitem_065_030_t
Data Item I065/030 - Time of Message.
Definition: cat065.h:159
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:54
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:133
bool invalid_timesource
Definition: cat065.h:200
ast_dataitem_065_000_t dataitem_065_000
Definition: cat065.h:231
ast_dataitem_065_010_t dataitem_065_010
Definition: cat065.h:232
Definition: cat065.h:190
ast_dataitem_065_040_t ast_dataitem_065_040_decode(const ast_dataitem_t di)
Decode function.
Definition: cat065.h:49
ast_dataitem_service_id_t ast_dataitem_065_015_t
Data Item I065/015 - Service Identification.
Definition: cat065.h:105
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:199
ast_sdps_message_type_t
SDPS message type.
Definition: cat065.h:46
Data Record I065 - SDPS Service Status Messages.
Definition: cat065.h:227
ast_dataitem_065_020_t ast_dataitem_065_020_decode(const ast_dataitem_t di)
Decode function.
Dataitem.
Definition: dataitem.h:422
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:235
ast_dataitem_data_source_identifier_t ast_dataitem_065_010_t
Data Item I065/010 - Data Source Identifier.
Definition: cat065.h:80
Definition: cat065.h:50
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:135
unsigned int processing_system
0 for N/A, and 1-3 for SDPS number
Definition: cat065.h:201
Datarecord.
Definition: datarecord.h:40
Definition: cat065.h:188
Definition: cat065.h:189
ast_dataitem_065_020_t dataitem_065_020
Definition: cat065.h:234
bool valid
Definition: cat065.h:229
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:198
Data Item I065/040 - SDPS Configuration and Status.
Definition: cat065.h:194