24 #ifndef LIBASTERIX_CAT_GENERIC_H 25 #define LIBASTERIX_CAT_GENERIC_H 50 typedef struct AST_API _ast_dataitem_message_type_t
59 #define ast_dataitem_message_type_get_size ast_dataitem_get_size_fixed_1_byte 92 typedef struct _ast_dataitem_data_source_identifier_t
102 #define ast_dataitem_data_source_identifier_get_size ast_dataitem_get_size_fixed_2_byte 132 typedef struct AST_API _ast_dataitem_service_id_t
141 #define ast_dataitem_service_id_get_size ast_dataitem_get_size_fixed_1_byte 153 #define ast_dataitem_service_id_get_detail_html ast_dataitem_get_detail_html_dummy; 170 typedef struct _ast_dataitem_sector_number_t
180 #define ast_dataitem_sector_number_get_size ast_dataitem_get_size_fixed_1_byte 218 typedef struct _ast_dataitem_time_of_day_t
232 #define ast_dataitem_time_of_day_get_size ast_dataitem_get_size_fixed_3_byte 260 typedef struct _ast_dataitem_time_of_day_high_t
271 #define ast_dataitem_time_of_day_high_get_size ast_dataitem_get_size_fixed_4_byte 298 typedef struct _ast_dataitem_position_wgs84_low_t
311 #define ast_dataitem_position_wgs84_low_get_size ast_dataitem_get_size_fixed_6_byte 342 typedef struct _ast_dataitem_position_wgs84_t
355 #define ast_dataitem_position_wgs84_get_size ast_dataitem_get_size_fixed_8_byte 383 typedef struct _ast_dataitem_position_cartesian_t
396 #define ast_dataitem_position_cartesian_get_size ast_dataitem_get_size_fixed_6_byte 405 #define ast_dataitem_position_cartesian_get_detail_html ast_dataitem_get_detail_html_dummy 422 typedef struct _ast_dataitem_velocity_cartesian_t
435 #define ast_dataitem_velocity_cartesian_get_size ast_dataitem_get_size_fixed_4_byte; 444 #define ast_dataitem_velocity_cartesian_get_detail_html ast_dataitem_get_detail_html_dummy 457 #define ast_dataitem_mode_2_code_get_size ast_dataitem_get_size_fixed_2_byte 477 typedef struct _ast_dataitem_mode_3a_code_t
493 #define ast_dataitem_mode_3a_code_get_size ast_dataitem_get_size_fixed_2_byte 523 typedef struct _ast_dataitem_mode_3a_confidence_t
528 bool pulse_quality_low[4][3];
532 #define ast_dataitem_mode_3a_confidence_get_size ast_dataitem_get_size_fixed_2_byte 561 typedef struct _ast_dataitem_mode_c_code_t
574 #define ast_dataitem_mode_c_code_get_size ast_dataitem_get_size_fixed_2_byte 604 typedef struct _ast_dataitem_mode_c_confidence_t
614 bool pulse_quality_low[4][3];
618 #define ast_dataitem_mode_c_confidence_get_size ast_dataitem_get_size_fixed_4_byte 643 typedef struct _ast_dataitem_height_t
652 #define ast_dataitem_height_get_size ast_dataitem_get_size_fixed_2_byte 677 typedef struct _ast_dataitem_vertical_rate_t
688 #define ast_dataitem_vertical_rate_get_size ast_dataitem_get_size_fixed_2_byte 726 typedef struct _ast_dataitem_track_number_t
735 #define ast_dataitem_track_number_get_size ast_dataitem_get_size_fixed_2_byte 747 #define ast_dataitem_track_number_get_detail_html ast_dataitem_get_detail_html_dummy; 764 typedef struct _ast_dataitem_velocity_polar_t
777 #define ast_dataitem_velocity_polar_get_size ast_dataitem_get_size_fixed_4_byte 806 typedef struct _ast_dataitem_target_address_t
811 unsigned char raw_address[3];
816 #define ast_dataitem_target_address_get_size ast_dataitem_get_size_fixed_3_byte 845 typedef struct _ast_dataitem_aircraft_id_t
854 #define ast_dataitem_aircraft_id_get_size ast_dataitem_get_size_fixed_6_byte 883 typedef enum _ast_target_id_type_t
893 typedef struct _ast_dataitem_target_id_t
902 #define ast_dataitem_target_id_get_size ast_dataitem_get_size_fixed_7_byte 926 typedef struct _ast_dataitem_signal_amplitude_t
935 #define ast_dataitem_signal_amplitude_get_size ast_dataitem_get_size_fixed_1_byte 947 #define ast_dataitem_signal_amplitude_get_detail_html ast_dataitem_get_detail_html_dummy 964 typedef struct _ast_dataitem_modes_mb_t
975 #define ast_dataitem_modes_mb_get_size ast_dataitem_get_size_rep_8_byte 1000 typedef struct _ast_dataitem_video_header_t
1018 #define ast_dataitem_video_header_get_size ast_dataitem_get_size_fixed_12_byte 1059 #define ast_dataitem_reserved_expansion_field_get_detail_html ast_dataitem_get_detail_html_dummy 1085 #define ast_dataitem_special_purpose_field_get_detail_html ast_dataitem_get_detail_html_dummy 1092 #endif // extern "C" 1094 #endif //LIBASTERIX_CAT_GENERIC_H bool valid
Definition: cat_generic.h:564
int raw_y
Raw format as defined in doc, resolution 0.5m.
Definition: cat_generic.h:389
unsigned int hour
Raw format as defined in doc, reset zero at mid night, resolution 1/128s.
Definition: cat_generic.h:225
bool changed
Mode 3/A has changed, valid only in I062/060.
Definition: cat_generic.h:486
ast_dataitem_t ast_dataitem_track_number_encode(unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
void ast_dataitem_mode_c_confidence_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
unsigned int icao_address
Definition: cat_generic.h:812
Data Item - Vertical Rate.
Definition: cat_generic.h:678
ast_dataitem_t ast_dataitem_position_wgs84_low_encode(unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
Data Item - Message Type.
Definition: cat_generic.h:51
double azimuth
Definition: cat_generic.h:176
bool valid
Definition: cat_generic.h:53
ast_dataitem_time_of_day_high_t ast_dataitem_time_of_day_high_decode(const ast_dataitem_t di)
Decode function.
Data Item - Time of Day High Precision.
Definition: cat_generic.h:261
Extracted dataitem.
Definition: dataitem.h:433
void ast_dataitem_height_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
bool valid
Definition: cat_generic.h:480
ast_dataitem_velocity_cartesian_t ast_dataitem_velocity_cartesian_decode(const ast_dataitem_t di)
Decode function.
int raw_latitude
Raw format as defined in doc, resolution 180/2^23 degree.
Definition: cat_generic.h:303
void ast_dataitem_target_address_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
void ast_dataitem_special_purpose_field_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get Summary function.
unsigned int raw_time
Full Second Indication.
Definition: cat_generic.h:266
size_t n_bds
Definition: cat_generic.h:969
int amplitude
Definition: cat_generic.h:931
bool valid
Definition: cat_generic.h:263
bool valid
Definition: cat_generic.h:301
void ast_dataitem_sector_number_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail funciton.
Data Item Itrack_number - Track Number.
Definition: cat_generic.h:727
bool garbled
Definition: cat_generic.h:567
double latitude
Latitude in degree.
Definition: cat_generic.h:350
int raw_vy
Raw format as defined in doc, resolution 0.25 m/s.
Definition: cat_generic.h:428
double longitude
Longitude in degree.
Definition: cat_generic.h:307
void ast_dataitem_position_cartesian_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
ast_dataitem_position_wgs84_low_t ast_dataitem_position_wgs84_low_decode(const ast_dataitem_t di)
Decode function.
size_t ast_dataitem_special_purpose_field_get_size(const unsigned char *buffer, const size_t bufsize)
Get size function.
ast_dataitem_time_of_day_t ast_dataitem_time_of_day_decode(const ast_dataitem_t di)
Decode function.
Data Item - Position in Cartesian Coordinates.
Definition: cat_generic.h:384
#define AST_MAX_BDS
Max number of BDS in one data item.
Definition: bds.h:83
ast_dataitem_t ast_dataitem_position_wgs84_encode(unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
unsigned int msg_type
Definition: cat_generic.h:55
Data Item - Data Source Identifier.
Definition: cat_generic.h:93
void ast_dataitem_mode_3a_code_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
ast_dataitem_mode_c_code_t ast_dataitem_mode_c_code_decode(const ast_dataitem_t di)
Decode function.
unsigned int code
Definition: cat_generic.h:612
bool valid
Definition: cat_generic.h:809
void ast_dataitem_mode_c_confidence_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
ast_dataitem_t ast_dataitem_aircraft_id_encode(unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
Definition: cat_generic.h:888
ast_dataitem_mode_c_confidence_t ast_dataitem_mode_c_confidence_decode(const ast_dataitem_t di)
Decode function.
bool valid
Definition: cat_generic.h:221
ast_target_id_type_t
Target identification type.
Definition: cat_generic.h:884
void ast_dataitem_sector_number_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary funciton.
ast_dataitem_t ast_dataitem_signal_amplitude_encode(unsigned char *buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
ast_dataitem_t ast_dataitem_sector_number_encode(unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
Data Item - Time of Day.
Definition: cat_generic.h:219
void ast_dataitem_reserved_expansion_field_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
Binary Data Source (BDS)
Definition: bds.h:86
ast_dataitem_track_number_t ast_dataitem_track_number_decode(const ast_dataitem_t di)
Decode function.
ast_dataitem_t ast_dataitem_time_of_day_encode(unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
bool valid
Definition: cat_generic.h:680
int fsi
Definition: cat_generic.h:265
Definition: cat_generic.h:887
Data Item - Mode-3/A Code Confidence Indicator.
Definition: cat_generic.h:524
ast_dataitem_message_type_t ast_dataitem_message_type_decode(const ast_dataitem_t di)
Decode function.
bool valid
Definition: cat_generic.h:729
bool valid
Definition: cat_generic.h:967
ast_dataitem_service_id_t ast_dataitem_service_id_decode(const ast_dataitem_t di)
Decode function.
ast_dataitem_height_t ast_dataitem_height_decode(const ast_dataitem_t di)
Decode function.
ast_dataitem_target_address_t ast_dataitem_target_address_decode(const ast_dataitem_t di)
Decode function.
int raw_ground_speed
Raw format as defined in doc, resolution 2^-14 nm/s.
Definition: cat_generic.h:769
double y
Y in meter.
Definition: cat_generic.h:392
int raw_height
Raw height, LSB=6.25ft.
Definition: cat_generic.h:648
ast_dataitem_target_id_t ast_dataitem_target_id_decode(const ast_dataitem_t di)
Decode function.
void ast_dataitem_mode_c_code_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
Data Item - Mode S MB Data.
Definition: cat_generic.h:965
ast_dataitem_t ast_dataitem_mode_3a_code_encode(unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
int code
Definition: cat_generic.h:569
ast_dataitem_sector_number_t ast_dataitem_sector_number_decode(const ast_dataitem_t di)
Decode function.
double vx
Vx in m/s.
Definition: cat_generic.h:430
ast_dataitem_t ast_dataitem_data_source_identifier_encode(unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
void ast_dataitem_signal_amplitude_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get Summary function.
void ast_dataitem_mode_3a_code_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
unsigned int track_num
Definition: cat_generic.h:731
double heading
Heading, LSB = degree.
Definition: cat_generic.h:773
Data Item - Service Identification.
Definition: cat_generic.h:133
bool valid
Definition: cat_generic.h:345
Data Item - Target Identification.
Definition: cat_generic.h:893
ast_dataitem_t ast_dataitem_message_type_encode(unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
Data Item - Mode-C Code.
Definition: cat_generic.h:562
unsigned int sec
Definition: cat_generic.h:227
void ast_dataitem_position_wgs84_low_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
void ast_dataitem_mode_3a_confidence_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
void ast_dataitem_track_number_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
bool validated
Definition: cat_generic.h:609
void ast_dataitem_binary_data_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
void ast_dataitem_mode_c_code_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
void ast_dataitem_mode_3a_confidence_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
Data Item - Position in WGS84 Coordinates.
Definition: cat_generic.h:343
int raw_longitude
Raw format as defined in doc, resolution 180/2^23 degree.
Definition: cat_generic.h:304
size_t ast_dataitem_reserved_expansion_field_get_size(const unsigned char *buffer, const size_t bufsize)
Get size function.
bool valid
Definition: cat_generic.h:173
unsigned int sic
Definition: cat_generic.h:98
void ast_dataitem_time_of_day_high_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Encode function.
bool valid
Definition: cat_generic.h:386
ast_dataitem_modes_mb_t ast_dataitem_modes_mb_decode(const ast_dataitem_t di)
Decode function.
void ast_dataitem_target_id_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
bool valid
Definition: cat_generic.h:848
Data Item - Sector Number.
Definition: cat_generic.h:171
bool valid
Definition: cat_generic.h:929
int raw_x
Raw format as defined in doc, resolution 0.5m.
Definition: cat_generic.h:388
int raw_latitude
Raw format as defined in doc, resolution 180/2^n degree (n varies in different data item)
Definition: cat_generic.h:347
bool valid
Definition: cat_generic.h:526
void ast_dataitem_velocity_cartesian_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary funciton.
bool valid
Definition: cat_generic.h:646
Data Item - Calculated Track Velocity in Cartesian Coordinates.
Definition: cat_generic.h:423
void ast_dataitem_time_of_day_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary funciton.
bool smoothed
Definition: cat_generic.h:484
Implementation of Dataitem concept defined by ASTERIX.
bool garbled
Definition: cat_generic.h:610
ast_dataitem_signal_amplitude_t ast_dataitem_signal_amplitude_decode(const ast_dataitem_t di)
Decode function.
void ast_dataitem_modes_mb_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
void ast_dataitem_vertical_rate_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get Summary function.
int raw_vr
Vertical rate, LSB=6.25 feet/minute.
Definition: cat_generic.h:683
ast_dataitem_t ast_dataitem_velocity_polar_encode(unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
int raw_longitude
Raw format as defined in doc, resolution 180/2^n degree (n varies in different data item)
Definition: cat_generic.h:348
bool validated
Definition: cat_generic.h:566
void ast_dataitem_time_of_day_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
Data Item - Target Address.
Definition: cat_generic.h:807
ast_dataitem_aircraft_id_t ast_dataitem_aircraft_id_decode(const ast_dataitem_t di)
Decode function.
unsigned int raw_time
Definition: cat_generic.h:223
ast_dataitem_mode_3a_code_t ast_dataitem_mode_3a_code_decode(const ast_dataitem_t di)
Decode function.
void ast_dataitem_position_wgs84_low_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
double vr
Vertical rate, LSB=1 feet/minute.
Definition: cat_generic.h:684
void ast_dataitem_position_wgs84_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
Data Item - Calculated Track Track Velocity in Polar Co-ordinates.
Definition: cat_generic.h:765
void ast_dataitem_service_id_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
unsigned int raw_azimuth
Raw format as defined in doc, resolution 360/2^8 ~= 1.14 degree.
Definition: cat_generic.h:175
Not sure downlinked is callsign or registration.
Definition: cat_generic.h:886
Dataitem.
Definition: dataitem.h:422
void ast_dataitem_time_of_day_high_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
Data Item - Mode-3/A Code in Octal Representation.
Definition: cat_generic.h:478
bool valid
Definition: cat_generic.h:135
double longitude
Longitude in degree.
Definition: cat_generic.h:351
Data Item - Mode-C Code and Code Confidence Indicator.
Definition: cat_generic.h:605
unsigned int service_id
Definition: cat_generic.h:137
ast_dataitem_t ast_dataitem_service_id_encode(unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
double second_fraction
Raw format as defined in doc, expressed as fraction of the second of the UTC Time,...
Definition: cat_generic.h:267
void ast_dataitem_modes_mb_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
ast_target_id_type_t type
Definition: cat_generic.h:897
unsigned int sac
Definition: cat_generic.h:97
bool valid
Definition: cat_generic.h:607
bool range_exceeded
Range exceeded indicator.
Definition: cat_generic.h:682
Definition: cat_generic.h:889
ast_dataitem_position_cartesian_t ast_dataitem_position_cartesian_decode(const ast_dataitem_t di)
Decode function.
Data Item - Signal Amplitude.
Definition: cat_generic.h:927
double vy
Vy in m/s.
Definition: cat_generic.h:431
void ast_dataitem_aircraft_id_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get Summary function.
bool validated
Definition: cat_generic.h:482
bool valid
Definition: cat_generic.h:895
void ast_dataitem_target_id_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
int raw_vx
Raw format as defined in doc, resolution 0.25 m/s.
Definition: cat_generic.h:427
ast_dataitem_data_source_identifier_t ast_dataitem_data_source_identifier_decode(const ast_dataitem_t di)
Decode function.
ast_dataitem_vertical_rate_t ast_dataitem_vertical_rate_decode(const ast_dataitem_t di)
Decode function.
double x
X in meter.
Definition: cat_generic.h:391
void ast_dataitem_velocity_polar_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
double ground_speed
Ground speed, LSB = knot.
Definition: cat_generic.h:772
bool valid
Definition: cat_generic.h:425
Data Item - Target Identification.
Definition: cat_generic.h:846
unsigned int msec
Definition: cat_generic.h:228
ast_dataitem_t ast_dataitem_mode_c_code_encode(unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
ast_dataitem_velocity_polar_t ast_dataitem_velocity_polar_decode(const ast_dataitem_t di)
Decode function.
Data Item - Position in WGS84 Coordinates (Low Reslution)
Definition: cat_generic.h:299
void ast_dataitem_height_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get Summary function.
ast_dataitem_t ast_dataitem_vertical_rate_encode(unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
ast_dataitem_mode_3a_confidence_t ast_dataitem_mode_3a_confidence_decode(const ast_dataitem_t di)
Decode function.
bool valid
Definition: cat_generic.h:767
void ast_dataitem_position_wgs84_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
void ast_dataitem_data_source_identifier_get_summary(char *summary, const size_t summary_size, const ast_dataitem_t di)
Get summary function.
bool valid
Definition: cat_generic.h:95
void ast_dataitem_vertical_rate_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
bool garbled
Definition: cat_generic.h:483
void ast_dataitem_aircraft_id_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
Data Item - Height.
Definition: cat_generic.h:644
unsigned int min
Definition: cat_generic.h:226
void ast_dataitem_target_address_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
Implementation of Mode-S transponder Binary Data Source (BDS) register.
int raw_heading
Raw format as defined in doc, resolution 360/2^16 degree.
Definition: cat_generic.h:770
void ast_dataitem_data_source_identifier_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.
ast_dataitem_t ast_dataitem_target_address_encode(unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
Encode function.
double latitude
Latitude in degree.
Definition: cat_generic.h:306
int code
Original code in octal.
Definition: cat_generic.h:488
ast_dataitem_position_wgs84_t ast_dataitem_position_wgs84_decode(const ast_dataitem_t di)
Decode function.
void ast_dataitem_velocity_polar_get_detail_html(char *detail, const size_t detail_size, const ast_dataitem_t di)
Get detail function.