cat048.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_CAT048_H
25 #define LIBASTERIX_CAT048_H
26 
27 #include "dataitem.h"
28 #include "datarecord.h"
29 #include "cat_generic.h"
30 #include "subfield.h"
31 #include "bds.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 // Data Item
38 
41 
48 #define ast_dataitem_048_010_get_size ast_dataitem_data_source_identifier_get_size
49 #define ast_dataitem_048_010_decode ast_dataitem_data_source_identifier_decode
50 #define ast_dataitem_048_010_encode ast_dataitem_data_source_identifier_encode
51 #define ast_dataitem_048_010_get_summary ast_dataitem_data_source_identifier_get_summary
52 #define ast_dataitem_048_010_get_detail_html ast_dataitem_data_source_identifier_get_detail_html
53 
62 typedef enum _ast_radar_target_type_t
63 {
73 
74 
75 typedef enum _ast_radar_target_friend_t
76 {
82 
83 
85 typedef struct _ast_dataitem_048_020_t
86 {
87  bool valid;
88 
90  bool simulated;
91  int chain;
92  bool spi;
94  bool test;
99 
101 #define ast_dataitem_048_020_get_size ast_dataitem_get_size_var_2_byte
102 
105 
107 AST_API ast_dataitem_t ast_dataitem_048_020_encode(unsigned char* const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi);
108 
110 AST_API void ast_dataitem_048_020_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
111 
113 AST_API void ast_dataitem_048_020_get_detail_html(char* detail, const size_t detail_size, const ast_dataitem_t di);
114 
123 #define AST_MAX_ERROR_CONDITION 23
124 
126 typedef struct _ast_dataitem_048_030_t
127 {
128  bool valid;
129 
130  int number;
133 
135 #define ast_dataitem_048_030_get_size ast_dataitem_get_size_var_23_byte
136 
139 
141 AST_API void ast_dataitem_048_030_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
142 
144 AST_API void ast_dataitem_048_030_get_detail_html(char* detail, const size_t detail_size, const ast_dataitem_t di);
145 
154 typedef struct _ast_dataitem_048_040_t
156 {
157  bool valid;
158 
159  int raw_rho;
160  int raw_theta;
161 
162  double rho;
163  double theta;
165 
167 #define ast_dataitem_048_040_get_size ast_dataitem_get_size_fixed_4_byte
168 
171 
173 AST_API ast_dataitem_t ast_dataitem_048_040_encode(unsigned char* const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi);
174 
176 AST_API void ast_dataitem_048_040_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
177 
179 AST_API void ast_dataitem_048_040_get_detail_html(char* detail, const size_t detail_size, const ast_dataitem_t di);
180 
189 typedef struct _ast_dataitem_048_042_t
191 {
192  bool valid;
193 
194  int raw_x;
195  int raw_y;
197 
199 #define ast_dataitem_048_042_get_size ast_dataitem_get_size_fixed_4_byte
200 
203 
205 AST_API void ast_dataitem_048_042_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
206 
208 AST_API void ast_dataitem_048_042_get_detail_html(char* detail, const size_t detail_size, const ast_dataitem_t di);
209 
219 #define ast_dataitem_048_070_get_size ast_dataitem_mode_3a_code_get_size
220 #define ast_dataitem_048_070_decode ast_dataitem_mode_3a_code_decode
221 #define ast_dataitem_048_070_encode ast_dataitem_mode_3a_code_encode
222 #define ast_dataitem_048_070_get_summary ast_dataitem_mode_3a_code_get_summary
223 #define ast_dataitem_048_070_get_detail_html ast_dataitem_mode_3a_code_get_detail_html
224 
234 #define ast_dataitem_048_080_get_size ast_dataitem_mode_3a_confidence_get_size
235 #define ast_dataitem_048_080_decode ast_dataitem_mode_3a_confidence_decode
236 #define ast_dataitem_048_080_get_summary ast_dataitem_mode_3a_confidence_get_summary
237 #define ast_dataitem_048_080_get_detail_html ast_dataitem_mode_3a_confidence_get_detail_html
238 
248 
250 #define ast_dataitem_048_090_get_size ast_dataitem_mode_c_code_get_size
251 
253 #define ast_dataitem_048_090_decode ast_dataitem_mode_c_code_decode
254 
256 #define ast_dataitem_048_090_encode ast_dataitem_mode_c_code_encode
257 
259 #define ast_dataitem_048_090_get_summary ast_dataitem_mode_c_code_get_summary
260 
262 #define ast_dataitem_048_090_get_detail_html ast_dataitem_mode_c_code_get_detail_html
263 
273 #define ast_dataitem_048_100_get_size ast_dataitem_mode_c_confidence_get_size
274 #define ast_dataitem_048_100_decode ast_dataitem_mode_c_confidence_decode
275 #define ast_dataitem_048_100_get_summary ast_dataitem_mode_c_confidence_get_summary
276 #define ast_dataitem_048_100_get_detail_html ast_dataitem_mode_c_confidence_get_detail_html
277 
286 typedef struct _ast_dataitem_048_110_t
288 {
289  bool valid;
290 
291  int height;
293 
295 #define ast_dataitem_048_110_get_size ast_dataitem_get_size_fixed_2_byte
296 
299 
301 AST_API void ast_dataitem_048_110_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
302 
304 AST_API void ast_dataitem_048_110_get_detail_html(char* detail, const size_t detail_size, const ast_dataitem_t di);
305 
306 
315 size_t ast_dataitem_048_120_get_size(const unsigned char *buffer, const size_t bufsize);
317 
319 //ast_dataitem_048_120_t ast_dataitem_048_120_decode(const ast_dataitem_t di);
320 
322 #define ast_dataitem_048_120_get_summary ast_dataitem_subfields_get_summary
323 
325 #define ast_dataitem_048_120_get_detail_html ast_dataitem_subfields_get_detail_html
326 
328 AST_API size_t ast_subfield_048_120_get_size(const unsigned char* buffer, const size_t bufsize, const ast_subfield_type_t type);
329 
332 
335 
337 AST_API void ast_subfield_048_120_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di, const ast_subfield_type_t type);
338 
340 AST_API void ast_subfield_048_120_get_detail_html(char* detail, const size_t detail_size, const ast_dataitem_t di, const ast_subfield_type_t type);
341 
350 typedef struct _ast_dataitem_048_130_t
352 {
353  bool valid;
354 
356  size_t n_subfields;
357 
358  //subfield #1
360  unsigned int srl_raw_runlength;
361  double srl_runlength;
362 
363  //subfield #2
365  unsigned int srr_num_replies;
366 
367  //subfield #3
369  unsigned int sam_amplitude;
370 
372 
374 AST_API size_t ast_dataitem_048_130_get_size(const unsigned char *buffer, const size_t bufsize);
375 
378 
380 #define ast_dataitem_048_130_get_summary ast_dataitem_subfields_get_summary
381 
383 #define ast_dataitem_048_130_get_detail_html ast_dataitem_subfields_get_detail_html
384 
386 AST_API size_t ast_subfield_048_130_get_size(const unsigned char* buffer, const size_t bufsize, const ast_subfield_type_t type);
387 
390 
393 
395 AST_API void ast_subfield_048_130_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di, const ast_subfield_type_t type);
396 
398 AST_API void ast_subfield_048_130_get_detail_html(char* detail, const size_t detail_size, const ast_dataitem_t di, const ast_subfield_type_t type);
399 
409 #define ast_dataitem_048_140_get_size ast_dataitem_time_of_day_get_size
410 #define ast_dataitem_048_140_decode ast_dataitem_time_of_day_decode
411 #define ast_dataitem_048_140_encode ast_dataitem_time_of_day_encode
412 #define ast_dataitem_048_140_get_summary ast_dataitem_time_of_day_get_summary
413 #define ast_dataitem_048_140_get_detail_html ast_dataitem_time_of_day_get_detail_html
414 
424 #define ast_dataitem_048_161_get_size ast_dataitem_track_number_get_size
425 #define ast_dataitem_048_161_decode ast_dataitem_track_number_decode
426 
428 #define ast_dataitem_048_161_encode ast_dataitem_track_number_encode
429 
430 #define ast_dataitem_048_161_get_summary ast_dataitem_track_number_get_summary
431 #define ast_dataitem_048_161_get_detail_html ast_dataitem_track_number_get_detail_html
432 
441 typedef enum _ast_radar_track_type_t
442 {
448 
449 typedef enum _ast_radar_track_v_manoeuvre_t
450 {
456 
458 typedef struct _ast_dataitem_048_170
459 {
460  bool valid;
461 
462  bool tentative;
468 
470 #define ast_dataitem_048_170_get_size ast_dataitem_get_size_var_2_byte
471 
474 
476 AST_API void ast_dataitem_048_170_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
477 
479 AST_API void ast_dataitem_048_170_get_detail_html(char* detail, const size_t detail_size, const ast_dataitem_t di);
480 
491 
493 #define ast_dataitem_048_200_get_size ast_dataitem_velocity_polar_get_size
494 
496 #define ast_dataitem_048_200_decode ast_dataitem_velocity_polar_decode
497 
499 #define ast_dataitem_048_200_encode ast_dataitem_velocity_polar_encode
500 
502 #define ast_dataitem_048_200_get_summary ast_dataitem_velocity_polar_get_summary
503 
505 #define ast_dataitem_048_200_get_detail_html ast_dataitem_velocity_polar_get_detail_html
506 
516 #define ast_dataitem_048_220_get_size ast_dataitem_target_address_get_size
517 #define ast_dataitem_048_220_decode ast_dataitem_target_address_decode
518 #define ast_dataitem_048_220_encode ast_dataitem_target_address_encode
519 #define ast_dataitem_048_220_get_summary ast_dataitem_target_address_get_summary
520 #define ast_dataitem_048_220_get_detail_html ast_dataitem_target_address_get_detail_html
521 
530 typedef enum _ast_radar_transponder_comm_t
531 {
539 
540 typedef enum _ast_radar_flight_status_t
541 {
550 
552 typedef struct _ast_dataitem_048_230_t
553 {
554  bool valid;
555 
564 
566 #define ast_dataitem_048_230_get_size ast_dataitem_get_size_fixed_2_byte
567 
570 
572 AST_API void ast_dataitem_048_230_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
573 
575 AST_API void ast_dataitem_048_230_get_detail_html(char* detail, const size_t detail_size, const ast_dataitem_t di);
576 
586 #define ast_dataitem_048_240_get_size ast_dataitem_aircraft_id_get_size
587 #define ast_dataitem_048_240_decode ast_dataitem_aircraft_id_decode
588 #define ast_dataitem_048_240_encode ast_dataitem_aircraft_id_encode
589 #define ast_dataitem_048_240_get_summary ast_dataitem_aircraft_id_get_summary
590 #define ast_dataitem_048_240_get_detail_html ast_dataitem_aircraft_id_get_detail_html
591 
601 #define ast_dataitem_048_250_get_size ast_dataitem_modes_mb_get_size
602 #define ast_dataitem_048_250_decode ast_dataitem_modes_mb_decode
603 #define ast_dataitem_048_250_get_summary ast_dataitem_modes_mb_get_summary
604 #define ast_dataitem_048_250_get_detail_html ast_dataitem_modes_mb_get_detail_html
605 
614 typedef struct _ast_dataitem_048_260_t
616 {
617  bool valid;
618 
621 
623 #define ast_dataitem_048_260_get_size ast_dataitem_get_size_fixed_7_byte
624 
627 
629 AST_API void ast_dataitem_048_260_get_summary(char* summary, const size_t summary_size, const ast_dataitem_t di);
630 
632 AST_API void ast_dataitem_048_260_get_detail_html(char* detail, const size_t detail_size, const ast_dataitem_t di);
633 
643 #define ast_dataitem_048_SPF_get_size ast_dataitem_special_purpose_field_get_size
645 
647 //ast_dataitem_048_998_t ast_dataitem_048_998_decode(const ast_dataitem_t di);
648 
650 #define ast_dataitem_048_SPF_get_summary ast_dataitem_special_purpose_field_get_summary
651 
653 #define ast_dataitem_048_SPF_get_detail_html ast_dataitem_special_purpose_field_get_detail_html
654 
657 // Data Record
658 
661 
664 
667 
670 
673 
676 
679 
681 #define ast_datarecord_048_get_coordinate 0
682 
685 
688 
691 
693 #define ast_datarecord_048_get_speed 0
694 
700 typedef struct _ast_datarecord_048_t
702 {
703  bool valid;
704 
725 
727 
730 
732 AST_API ast_datarecord_t ast_datarecord_048_assemble(unsigned char* const buffer, const size_t bufsize, const ast_datarecord_048_t dr, const ast_uap_t uap);
733 
734 
738 #ifdef __cplusplus
739  }
740 #endif // extern "C"
741 
742 #endif //LIBASTERIX_CAT048_H
743 
744 // vim:set ft=c.doxygen sw=2 sts=2 fenc=utf8:
ast_dataitem_velocity_polar_t ast_dataitem_048_200_t
Data Item I048/200 - Calculated Track Track Velocity in Polar Co-ordinates.
Definition: cat048.h:490
ast_dataitem_048_020_t dataitem_048_020
Definition: cat048.h:706
Altitude.
Definition: type.h:111
Data Item I048/040 - Measured Position in Polar Co-ordinates.
Definition: cat048.h:155
Definition: cat048.h:77
Definition: cat048.h:64
Definition: cat048.h:542
int raw_rho
Raw format as defined in doc, resolution 1/256 nm.
Definition: cat048.h:159
ast_dataitem_mode_c_code_t ast_dataitem_048_090_t
Data Item I048/090 - Flight Level in Binary Representation.
Definition: cat048.h:247
bool spi
Definition: cat048.h:92
bool fixed_transponder
Definition: cat048.h:93
ast_callsign_t ast_datarecord_048_get_callsign(const ast_datarecord_t dr)
Get callsign function.
bool test
Definition: cat048.h:94
Extracted dataitem.
Definition: dataitem.h:433
Heading.
Definition: type.h:137
Definition: cat048.h:546
ast_dataitem_048_220_t dataitem_048_220
Definition: cat048.h:720
void ast_dataitem_048_020_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
const char * ast_subfield_048_120_get_name(const ast_subfield_type_t type)
Get name of subfield.
Definition: cat048.h:65
ast_subfield_type_t
Definition of subfield id in each dataitem.
Definition: subfield.h:52
void ast_dataitem_048_260_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
Implementation of Datarecord concept defined by ASTERIX.
ast_radar_target_friend_t target_friend
Definition: cat048.h:97
bool sam_existing
Definition: cat048.h:368
Data Source Identifier (aka SAC/SIC)
Definition: type.h:35
bool military_emergency
Definition: cat048.h:95
void ast_dataitem_048_260_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
Definition: uap.h:36
void ast_dataitem_048_042_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
const char * ast_dataitem_048_get_name(const ast_dataitem_type_t type)
Get name function.
Definition: cat048.h:444
ast_dataitem_048_042_t dataitem_048_042
Definition: cat048.h:709
Data Item Itrack_number - Track Number.
Definition: cat_generic.h:727
bool valid
Definition: cat048.h:128
ast_dataitem_mode_3a_confidence_t ast_dataitem_048_080_t
Definition: cat048.h:233
void ast_dataitem_048_020_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
ast_dataitem_mode_c_confidence_t ast_dataitem_048_100_t
Definition: cat048.h:272
Definition: cat048.h:446
void ast_dataitem_048_110_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
double rho
Rho, in nm.
Definition: cat048.h:162
#define AST_API
Definition: platform.h:63
Definition: cat048.h:451
ast_dataitem_048_170_t ast_dataitem_048_170_decode(const ast_dataitem_t di)
Decode function.
Data Item - Data Source Identifier.
Definition: cat_generic.h:93
size_t ast_dataitem_048_130_get_size(const unsigned char *buffer, const size_t bufsize)
Get size of dataitem.
bool valid
Definition: cat048.h:617
ast_dataitem_048_140_t dataitem_048_140
Definition: cat048.h:716
ast_radar_track_v_manoeuvre_t v_manoeuvre
Definition: cat048.h:466
Data Item I048/020 - Target Report Descriptor.
Definition: cat048.h:85
Definition: cat048.h:547
bool valid
Definition: cat048.h:353
char bds_10_b_16
Definition: cat048.h:561
Data Item - Time of Day.
Definition: cat_generic.h:219
ast_dataitem_data_source_identifier_t ast_dataitem_048_010_t
Definition: cat048.h:47
bool valid
Definition: cat048.h:460
Definition: cat048.h:452
int chain
Definition: cat048.h:91
Binary Data Source (BDS)
Definition: bds.h:86
Data Item I048/130 - Radar Plot Characteristics.
Definition: cat048.h:351
bool valid
Definition: cat048.h:289
Data Item I048/042 - Calculated Position in Cartesian Co-ordinates.
Definition: cat048.h:190
void ast_dataitem_048_170_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
Definition: cat048.h:67
ast_dataitem_048_042_t ast_dataitem_048_042_decode(const ast_dataitem_t di)
Decode function.
Data Item - Mode-3/A Code Confidence Indicator.
Definition: cat_generic.h:524
ast_radar_track_type_t
Definition: cat048.h:441
ast_timeofday_t ast_datarecord_048_get_timeofday(const ast_datarecord_t dr)
Get time of day function.
Data Record I048 - Transmission of Monoradar Target Reports.
Definition: cat048.h:701
ast_dataitem_048_161_t dataitem_048_161
Definition: cat048.h:717
const char * ast_subfield_048_130_get_name(const ast_subfield_type_t type)
Get name of subfield.
This file includes the common used data items shares by different categories.
void ast_dataitem_048_170_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
ast_dataitem_048_130_t ast_dataitem_048_130_decode(const ast_dataitem_t di)
Decode function of dataitem.
ast_bds_t bds
Definition: cat048.h:619
Polar Coordinate.
Definition: type.h:129
ast_dataitem_mode_3a_code_t ast_dataitem_048_070_t
Definition: cat048.h:218
Data Item - Mode S MB Data.
Definition: cat_generic.h:965
unsigned int sam_amplitude
Definition: cat048.h:369
Definition: type.h:66
ast_dataitem_048_080_t dataitem_048_080
Definition: cat048.h:711
size_t ast_subfield_048_130_get_size(const unsigned char *buffer, const size_t bufsize, const ast_subfield_type_t type)
Get size of subfield.
bool alt_25ft_capability
Definition: cat048.h:559
ast_dataitem_048_070_t dataitem_048_070
Definition: cat048.h:710
char bds_10_b_37_40
Definition: cat048.h:562
ast_sacsic_t ast_datarecord_048_get_sacsic(const ast_datarecord_t dr)
Get SAC/SIC function.
Definition: cat048.h:443
Definition: cat048.h:545
Definition: cat048.h:534
Definition: cat048.h:537
void ast_subfield_048_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.
Subfield struct.
Definition: subfield.h:292
Data Item - Mode-C Code.
Definition: cat_generic.h:562
ast_radar_target_type_t type
Definition: cat048.h:89
ast_radar_flight_status_t flight_status
Definition: cat048.h:557
void ast_dataitem_048_110_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
Data Item I048/110 - Height Measured by a 3D Radar.
Definition: cat048.h:287
ast_msgtype_t ast_datarecord_048_get_msgtype(const ast_datarecord_t dr)
Get message type function.
Definition: cat048.h:533
Definition: cat048.h:78
int raw_y
Raw format as defined in doc, resolution 1/128nm.
Definition: cat048.h:195
ast_datarecord_048_t ast_datarecord_048_disassemble(const ast_datarecord_t dr)
Disassemble function.
void ast_dataitem_048_040_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
ast_squawk_t ast_datarecord_048_get_squawk(const ast_datarecord_t dr)
Get Mode-3/A code function.
ast_radar_flight_status_t
Definition: cat048.h:540
const char * ast_subfield_048_130_get_id(const ast_subfield_type_t type)
Get id string of subfield.
ast_dataitem_048_250_t dataitem_048_250
Definition: cat048.h:723
ast_dataitem_048_110_t dataitem_048_110
Definition: cat048.h:714
size_t n_subfields
Definition: cat048.h:356
double theta
Theta, in degree.
Definition: cat048.h:163
size_t ast_subfield_048_120_get_size(const unsigned char *buffer, const size_t bufsize, const ast_subfield_type_t type)
Get size of subfield.
ast_dataitem_048_100_t dataitem_048_100
Definition: cat048.h:713
bool low_confidence
Definition: cat048.h:464
ast_radar_target_friend_t
Definition: cat048.h:75
Definition: cat048.h:453
void ast_dataitem_048_230_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
ast_dataitem_048_030_t dataitem_048_030
Definition: cat048.h:707
Squawk (aka Mode-3/A Code)
Definition: type.h:80
ast_heading_t ast_datarecord_048_get_heading(const ast_datarecord_t dr)
Get heading function.
bool srr_existing
SSR plot runlength, LSB=1deg.
Definition: cat048.h:364
Implementation of Dataitem concept defined by ASTERIX.
Definition: cat048.h:532
bool valid
Definition: cat048.h:703
ast_radar_track_v_manoeuvre_t
Definition: cat048.h:449
void ast_dataitem_048_030_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
Data Item I048/030 - Warning/Error Conditions.
Definition: cat048.h:126
Data Item I048/170 - Track Status.
Definition: cat048.h:458
Data Item - Target Address.
Definition: cat_generic.h:807
ast_radar_target_type_t
Definition: cat048.h:62
ast_dataitem_048_110_t ast_dataitem_048_110_decode(const ast_dataitem_t di)
Decode function.
ast_altitude_t ast_datarecord_048_get_flightlevel(const ast_datarecord_t dr)
Get flight level function.
bool valid
Definition: cat048.h:157
ast_dataitem_track_number_t ast_dataitem_048_161_t
Definition: cat048.h:423
unsigned int srl_raw_runlength
Definition: cat048.h:360
Data Item I048/260 - ACAS Resolution Advisory Report.
Definition: cat048.h:615
bool simulated
Definition: cat048.h:90
ast_radar_track_type_t type
Definition: cat048.h:463
Data Item - Calculated Track Track Velocity in Polar Co-ordinates.
Definition: cat_generic.h:765
Dataitem.
Definition: dataitem.h:422
ast_dataitem_aircraft_id_t ast_dataitem_048_240_t
Definition: cat048.h:585
Definition: cat048.h:79
bool aircraft_id_capability
Definition: cat048.h:560
void ast_subfield_048_130_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_048_120_get_id(const ast_subfield_type_t type)
Get id string of subfield.
Data Item - Mode-3/A Code in Octal Representation.
Definition: cat_generic.h:478
Data Item I048/230 - Communications / ACAS Capability and Flight Status.
Definition: cat048.h:552
Data Item - Mode-C Code and Code Confidence Indicator.
Definition: cat_generic.h:605
Definition: cat048.h:66
unsigned int srr_num_replies
Definition: cat048.h:365
ast_datarecord_t ast_datarecord_048_assemble(unsigned char *const buffer, const size_t bufsize, const ast_datarecord_048_t dr, const ast_uap_t uap)
Assemble function.
ast_icaoaddr_t ast_datarecord_048_get_icaoaddr(const ast_datarecord_t dr)
Get ICAO 24-bit address function.
double srl_runlength
Raw SSR plot runlength as defined in doc, LSB=360/2^13~=0.044deg.
Definition: cat048.h:361
Callsign.
Definition: type.h:89
ast_dataitem_type_t
Definition of data item id in each category.
Definition: dataitem.h:67
ast_dataitem_048_260_t dataitem_048_260
Definition: cat048.h:724
ast_dataitem_048_170_t dataitem_048_170
Definition: cat048.h:718
void ast_subfield_048_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.
bool valid
Definition: cat048.h:192
bool tentative
Definition: cat048.h:462
ast_dataitem_048_020_t ast_dataitem_048_020_decode(const ast_dataitem_t di)
Decode function.
bool valid
Definition: cat048.h:554
void ast_dataitem_048_230_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
Definition: cat048.h:454
void ast_dataitem_048_042_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
Definition: cat048.h:536
int number
Definition: cat048.h:130
bool modes_capability
Definition: cat048.h:558
ast_polar_coordinate_t ast_datarecord_048_get_polarcoord(const ast_datarecord_t dr)
Get polar coordinate function.
Definition: cat048.h:80
ast_tracknum_t ast_datarecord_048_get_tracknum(const ast_datarecord_t dr)
Get track number function.
#define AST_MAX_SUBFIELDS
Definition: subfield.h:362
ast_radar_transponder_comm_t
Definition: cat048.h:530
Time of day.
Definition: type.h:43
ast_dataitem_048_240_t dataitem_048_240
Definition: cat048.h:722
ast_dataitem_modes_mb_t ast_dataitem_048_250_t
Definition: cat048.h:600
ast_dataitem_048_260_t ast_dataitem_048_260_decode(const ast_dataitem_t di)
Decode function.
ast_dataitem_048_200_t dataitem_048_200
Definition: cat048.h:719
Data Item - Target Identification.
Definition: cat_generic.h:846
bool h_manoeuvre
Definition: cat048.h:465
Datarecord.
Definition: datarecord.h:40
void ast_dataitem_048_040_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
int raw_theta
Raw format as defined in doc, resolution 360/2^16 degree.
Definition: cat048.h:160
#define AST_MAX_ERROR_CONDITION
Definition: cat048.h:123
Definition: cat048.h:548
Definition: cat048.h:544
bool srl_existing
Definition: cat048.h:359
void ast_dataitem_048_030_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
ast_dataitem_048_090_t dataitem_048_090
Definition: cat048.h:712
int height
3D height, unit 1 ft
Definition: cat048.h:291
bool military_identification
Definition: cat048.h:96
ast_dataitem_048_030_t ast_dataitem_048_030_decode(const ast_dataitem_t di)
Decode function.
ast_dataitem_time_of_day_t ast_dataitem_048_140_t
Definition: cat048.h:408
ast_dataitem_t ast_dataitem_048_020_encode(unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
void ast_subfield_048_130_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.
int raw_x
Raw format as defined in doc, resolution 1/128nm.
Definition: cat048.h:194
ast_dataitem_048_040_t ast_dataitem_048_040_decode(const ast_dataitem_t di)
Decode function.
ast_dataitem_048_040_t dataitem_048_040
Definition: cat048.h:708
ast_dataitem_048_010_t dataitem_048_010
Definition: cat048.h:705
ast_dataitem_048_230_t dataitem_048_230
Definition: cat048.h:721
Definition: cat048.h:445
ast_dataitem_048_230_t ast_dataitem_048_230_decode(const ast_dataitem_t di)
Decode function.
ast_dataitem_048_130_t dataitem_048_130
Definition: cat048.h:715
ast_dataitem_t ast_dataitem_048_040_encode(unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
Implementation of Mode-S transponder Binary Data Source (BDS) register.
size_t ast_dataitem_048_120_get_size(const unsigned char *buffer, const size_t bufsize)
Get size of dataitem.
bool valid
Definition: cat048.h:87
Implementation of Subfield concept defined by ASTERIX.
ast_dataitem_target_address_t ast_dataitem_048_220_t
Definition: cat048.h:515
ICAO 24-bit Address.
Definition: type.h:96
ast_radar_transponder_comm_t comm_capability
Definition: cat048.h:556
Track Number.
Definition: type.h:73
Definition: cat048.h:543