cat048.h File Reference

ASTERIX CAT048 - Transmission of Monoradar Target Reports. More...

#include "dataitem.h"
#include "datarecord.h"
#include "cat_generic.h"
#include "subfield.h"
#include "bds.h"
Include dependency graph for cat048.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ast_dataitem_048_020_t
 Data Item I048/020 - Target Report Descriptor. More...
 
struct  ast_dataitem_048_030_t
 Data Item I048/030 - Warning/Error Conditions. More...
 
struct  ast_dataitem_048_040_t
 Data Item I048/040 - Measured Position in Polar Co-ordinates. More...
 
struct  ast_dataitem_048_042_t
 Data Item I048/042 - Calculated Position in Cartesian Co-ordinates. More...
 
struct  ast_dataitem_048_110_t
 Data Item I048/110 - Height Measured by a 3D Radar. More...
 
struct  ast_dataitem_048_130_t
 Data Item I048/130 - Radar Plot Characteristics. More...
 
struct  ast_dataitem_048_170_t
 Data Item I048/170 - Track Status. More...
 
struct  ast_dataitem_048_230_t
 Data Item I048/230 - Communications / ACAS Capability and Flight Status. More...
 
struct  ast_dataitem_048_260_t
 Data Item I048/260 - ACAS Resolution Advisory Report. More...
 
struct  ast_datarecord_048_t
 Data Record I048 - Transmission of Monoradar Target Reports. More...
 

Macros

#define ast_dataitem_048_010_get_size   ast_dataitem_data_source_identifier_get_size
 
#define ast_dataitem_048_010_decode   ast_dataitem_data_source_identifier_decode
 
#define ast_dataitem_048_010_encode   ast_dataitem_data_source_identifier_encode
 
#define ast_dataitem_048_010_get_summary   ast_dataitem_data_source_identifier_get_summary
 
#define ast_dataitem_048_010_get_detail_html   ast_dataitem_data_source_identifier_get_detail_html
 
#define ast_dataitem_048_020_get_size   ast_dataitem_get_size_var_2_byte
 Get size function. More...
 
#define AST_MAX_ERROR_CONDITION   23
 
#define ast_dataitem_048_030_get_size   ast_dataitem_get_size_var_23_byte
 Get size function. More...
 
#define ast_dataitem_048_040_get_size   ast_dataitem_get_size_fixed_4_byte
 Get size function. More...
 
#define ast_dataitem_048_042_get_size   ast_dataitem_get_size_fixed_4_byte
 Get size function. More...
 
#define ast_dataitem_048_070_get_size   ast_dataitem_mode_3a_code_get_size
 
#define ast_dataitem_048_070_decode   ast_dataitem_mode_3a_code_decode
 
#define ast_dataitem_048_070_encode   ast_dataitem_mode_3a_code_encode
 
#define ast_dataitem_048_070_get_summary   ast_dataitem_mode_3a_code_get_summary
 
#define ast_dataitem_048_070_get_detail_html   ast_dataitem_mode_3a_code_get_detail_html
 
#define ast_dataitem_048_080_get_size   ast_dataitem_mode_3a_confidence_get_size
 
#define ast_dataitem_048_080_decode   ast_dataitem_mode_3a_confidence_decode
 
#define ast_dataitem_048_080_get_summary   ast_dataitem_mode_3a_confidence_get_summary
 
#define ast_dataitem_048_080_get_detail_html   ast_dataitem_mode_3a_confidence_get_detail_html
 
#define ast_dataitem_048_090_get_size   ast_dataitem_mode_c_code_get_size
 Get size function. More...
 
#define ast_dataitem_048_090_decode   ast_dataitem_mode_c_code_decode
 Decode function. More...
 
#define ast_dataitem_048_090_encode   ast_dataitem_mode_c_code_encode
 Encode function. More...
 
#define ast_dataitem_048_090_get_summary   ast_dataitem_mode_c_code_get_summary
 Get summary function. More...
 
#define ast_dataitem_048_090_get_detail_html   ast_dataitem_mode_c_code_get_detail_html
 Get detail function. More...
 
#define ast_dataitem_048_100_get_size   ast_dataitem_mode_c_confidence_get_size
 
#define ast_dataitem_048_100_decode   ast_dataitem_mode_c_confidence_decode
 
#define ast_dataitem_048_100_get_summary   ast_dataitem_mode_c_confidence_get_summary
 
#define ast_dataitem_048_100_get_detail_html   ast_dataitem_mode_c_confidence_get_detail_html
 
#define ast_dataitem_048_110_get_size   ast_dataitem_get_size_fixed_2_byte
 Get size function. More...
 
#define ast_dataitem_048_120_get_summary   ast_dataitem_subfields_get_summary
 Decode function of dataitem. More...
 
#define ast_dataitem_048_120_get_detail_html   ast_dataitem_subfields_get_detail_html
 Get detail html snippet of dataitem. More...
 
#define ast_dataitem_048_130_get_summary   ast_dataitem_subfields_get_summary
 Get summary of dataitem. More...
 
#define ast_dataitem_048_130_get_detail_html   ast_dataitem_subfields_get_detail_html
 Get detail html snippet of dataitem. More...
 
#define ast_dataitem_048_140_get_size   ast_dataitem_time_of_day_get_size
 
#define ast_dataitem_048_140_decode   ast_dataitem_time_of_day_decode
 
#define ast_dataitem_048_140_encode   ast_dataitem_time_of_day_encode
 
#define ast_dataitem_048_140_get_summary   ast_dataitem_time_of_day_get_summary
 
#define ast_dataitem_048_140_get_detail_html   ast_dataitem_time_of_day_get_detail_html
 
#define ast_dataitem_048_161_get_size   ast_dataitem_track_number_get_size
 
#define ast_dataitem_048_161_decode   ast_dataitem_track_number_decode
 
#define ast_dataitem_048_161_encode   ast_dataitem_track_number_encode
 Encode function. More...
 
#define ast_dataitem_048_161_get_summary   ast_dataitem_track_number_get_summary
 
#define ast_dataitem_048_161_get_detail_html   ast_dataitem_track_number_get_detail_html
 
#define ast_dataitem_048_170_get_size   ast_dataitem_get_size_var_2_byte
 Get size function. More...
 
#define ast_dataitem_048_200_get_size   ast_dataitem_velocity_polar_get_size
 Get size function. More...
 
#define ast_dataitem_048_200_decode   ast_dataitem_velocity_polar_decode
 Decode function. More...
 
#define ast_dataitem_048_200_encode   ast_dataitem_velocity_polar_encode
 Encode function. More...
 
#define ast_dataitem_048_200_get_summary   ast_dataitem_velocity_polar_get_summary
 Get summary function. More...
 
#define ast_dataitem_048_200_get_detail_html   ast_dataitem_velocity_polar_get_detail_html
 Get detail function. More...
 
#define ast_dataitem_048_220_get_size   ast_dataitem_target_address_get_size
 
#define ast_dataitem_048_220_decode   ast_dataitem_target_address_decode
 
#define ast_dataitem_048_220_encode   ast_dataitem_target_address_encode
 
#define ast_dataitem_048_220_get_summary   ast_dataitem_target_address_get_summary
 
#define ast_dataitem_048_220_get_detail_html   ast_dataitem_target_address_get_detail_html
 
#define ast_dataitem_048_230_get_size   ast_dataitem_get_size_fixed_2_byte
 Get size function. More...
 
#define ast_dataitem_048_240_get_size   ast_dataitem_aircraft_id_get_size
 
#define ast_dataitem_048_240_decode   ast_dataitem_aircraft_id_decode
 
#define ast_dataitem_048_240_encode   ast_dataitem_aircraft_id_encode
 
#define ast_dataitem_048_240_get_summary   ast_dataitem_aircraft_id_get_summary
 
#define ast_dataitem_048_240_get_detail_html   ast_dataitem_aircraft_id_get_detail_html
 
#define ast_dataitem_048_250_get_size   ast_dataitem_modes_mb_get_size
 
#define ast_dataitem_048_250_decode   ast_dataitem_modes_mb_decode
 
#define ast_dataitem_048_250_get_summary   ast_dataitem_modes_mb_get_summary
 
#define ast_dataitem_048_250_get_detail_html   ast_dataitem_modes_mb_get_detail_html
 
#define ast_dataitem_048_260_get_size   ast_dataitem_get_size_fixed_7_byte
 Get size function. More...
 
#define ast_dataitem_048_SPF_get_size   ast_dataitem_special_purpose_field_get_size
 Get size function. More...
 
#define ast_dataitem_048_SPF_get_summary   ast_dataitem_special_purpose_field_get_summary
 Decode function. More...
 
#define ast_dataitem_048_SPF_get_detail_html   ast_dataitem_special_purpose_field_get_detail_html
 Get detail function. More...
 
#define ast_datarecord_048_get_coordinate   0
 Get coordinate function. More...
 
#define ast_datarecord_048_get_speed   0
 Get speed function. More...
 

Typedefs

typedef ast_dataitem_data_source_identifier_t ast_dataitem_048_010_t
 
typedef ast_dataitem_mode_3a_code_t ast_dataitem_048_070_t
 
typedef ast_dataitem_mode_3a_confidence_t ast_dataitem_048_080_t
 
typedef ast_dataitem_mode_c_code_t ast_dataitem_048_090_t
 Data Item I048/090 - Flight Level in Binary Representation. More...
 
typedef ast_dataitem_mode_c_confidence_t ast_dataitem_048_100_t
 
typedef ast_dataitem_time_of_day_t ast_dataitem_048_140_t
 
typedef ast_dataitem_track_number_t ast_dataitem_048_161_t
 
typedef ast_dataitem_velocity_polar_t ast_dataitem_048_200_t
 Data Item I048/200 - Calculated Track Track Velocity in Polar Co-ordinates. More...
 
typedef ast_dataitem_target_address_t ast_dataitem_048_220_t
 
typedef ast_dataitem_aircraft_id_t ast_dataitem_048_240_t
 
typedef ast_dataitem_modes_mb_t ast_dataitem_048_250_t
 

Enumerations

enum  ast_radar_target_type_t {
  AST_RADAR_TARGET_TYPE_NO_DETECTION = 0, AST_RADAR_TARGET_TYPE_PSR = 1, AST_RADAR_TARGET_TYPE_SSR = 2, AST_RADAR_TARGET_TYPE_PSR_SSR = 3,
  AST_RADAR_TARGET_TYPE_MODES_ALL_CALL = 4, AST_RADAR_TARGET_TYPE_MODES_ROLL_CALL = 5, AST_RADAR_TARGET_TYPE_PSR_MODES_ALL_CALL = 6, AST_RADAR_TARGET_TYPE_PSR_MODES_ROLL_CALL = 7
}
 
enum  ast_radar_target_friend_t { AST_RADAR_TARGET_FOE_NO_MODE4 = 0, AST_RADAR_TARGET_FOE_FRIEND = 1, AST_RADAR_TARGET_FOE_UNKNOWN = 2, AST_RADAR_TARGET_FOE_NO_REPLY = 3 }
 
enum  ast_radar_track_type_t { AST_RADAR_TRACK_TYPE_COMBINED = 0, AST_RADAR_TRACK_TYPE_PSR = 1, AST_RADAR_TRACK_TYPE_SSR = 2, AST_RADAR_TRACK_TYPE_INVALID = 3 }
 
enum  ast_radar_track_v_manoeuvre_t { AST_RADAR_TRACK_V_MAINTAINING = 0, AST_RADAR_TRACK_V_CLIMBING = 1, AST_RADAR_TRACK_V_DESCENDING = 2, AST_RADAR_TRACK_V_INVALID = 3 }
 
enum  ast_radar_transponder_comm_t {
  AST_RADAR_TRANSPONDER_COMM_NO = 0, AST_RADAR_TRANSPONDER_COMM_AB = 1, AST_RADAR_TRANSPONDER_COMM_AB_UELM = 2, AST_RADAR_TRANSPONDER_COMM_AB_UELM_DELM = 3,
  AST_RADAR_TRANSPONDER_COMM_L5 = 4, AST_RADAR_TRANSPONDER_COMM_UNKNOWN = 8
}
 
enum  ast_radar_flight_status_t {
  AST_RADAR_FS_AIRBONE = 0, AST_RADAR_FS_GROUND = 1, AST_RADAR_FS_ALERT_AIRBONE = 2, AST_RADAR_FS_ALERT_GROUND = 3,
  AST_RADAR_FS_ALERT_SPI = 4, AST_RADAR_FS_SPI = 5, AST_RADAR_FS_UNKNOWN = 8
}
 

Functions

const char * ast_dataitem_048_get_name (const ast_dataitem_type_t type)
 Get name function. More...
 
ast_dataitem_048_020_t ast_dataitem_048_020_decode (const ast_dataitem_t di)
 Decode function. More...
 
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. More...
 
void ast_dataitem_048_020_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_048_020_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_048_030_t ast_dataitem_048_030_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_048_030_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_048_030_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_048_040_t ast_dataitem_048_040_decode (const ast_dataitem_t di)
 Decode function. More...
 
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. More...
 
void ast_dataitem_048_040_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_048_040_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_048_042_t ast_dataitem_048_042_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_048_042_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_048_042_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_048_110_t ast_dataitem_048_110_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_048_110_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_048_110_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
size_t ast_dataitem_048_120_get_size (const unsigned char *buffer, const size_t bufsize)
 Get size of dataitem. More...
 
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. More...
 
const char * ast_subfield_048_120_get_id (const ast_subfield_type_t type)
 Get id string of subfield. More...
 
const char * ast_subfield_048_120_get_name (const ast_subfield_type_t type)
 Get name of subfield. More...
 
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. More...
 
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. More...
 
size_t ast_dataitem_048_130_get_size (const unsigned char *buffer, const size_t bufsize)
 Get size of dataitem. More...
 
ast_dataitem_048_130_t ast_dataitem_048_130_decode (const ast_dataitem_t di)
 Decode function of dataitem. More...
 
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. More...
 
const char * ast_subfield_048_130_get_id (const ast_subfield_type_t type)
 Get id string of subfield. More...
 
const char * ast_subfield_048_130_get_name (const ast_subfield_type_t type)
 Get name of subfield. More...
 
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. More...
 
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. More...
 
ast_dataitem_048_170_t ast_dataitem_048_170_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_048_170_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_048_170_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_048_230_t ast_dataitem_048_230_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_048_230_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_048_230_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_048_260_t ast_dataitem_048_260_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_048_260_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_048_260_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_sacsic_t ast_datarecord_048_get_sacsic (const ast_datarecord_t dr)
 Get SAC/SIC function. More...
 
ast_timeofday_t ast_datarecord_048_get_timeofday (const ast_datarecord_t dr)
 Get time of day function. More...
 
ast_msgtype_t ast_datarecord_048_get_msgtype (const ast_datarecord_t dr)
 Get message type function. More...
 
ast_tracknum_t ast_datarecord_048_get_tracknum (const ast_datarecord_t dr)
 Get track number function. More...
 
ast_squawk_t ast_datarecord_048_get_squawk (const ast_datarecord_t dr)
 Get Mode-3/A code function. More...
 
ast_callsign_t ast_datarecord_048_get_callsign (const ast_datarecord_t dr)
 Get callsign function. More...
 
ast_icaoaddr_t ast_datarecord_048_get_icaoaddr (const ast_datarecord_t dr)
 Get ICAO 24-bit address function. More...
 
ast_altitude_t ast_datarecord_048_get_flightlevel (const ast_datarecord_t dr)
 Get flight level function. More...
 
ast_polar_coordinate_t ast_datarecord_048_get_polarcoord (const ast_datarecord_t dr)
 Get polar coordinate function. More...
 
ast_heading_t ast_datarecord_048_get_heading (const ast_datarecord_t dr)
 Get heading function. More...
 
ast_datarecord_048_t ast_datarecord_048_disassemble (const ast_datarecord_t dr)
 Disassemble function. More...
 
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. More...
 

Detailed Description

ASTERIX CAT048 - Transmission of Monoradar Target Reports.

Note
This implementation is based on ASTERIX CAT048 version 1.15

Macro Definition Documentation

◆ ast_dataitem_048_SPF_get_detail_html

#define ast_dataitem_048_SPF_get_detail_html   ast_dataitem_special_purpose_field_get_detail_html

Get detail function.

◆ ast_dataitem_048_SPF_get_size

#define ast_dataitem_048_SPF_get_size   ast_dataitem_special_purpose_field_get_size

Get size function.

◆ ast_dataitem_048_SPF_get_summary

#define ast_dataitem_048_SPF_get_summary   ast_dataitem_special_purpose_field_get_summary

Decode function.

Get Summary function

◆ ast_datarecord_048_get_coordinate

#define ast_datarecord_048_get_coordinate   0

Get coordinate function.

◆ ast_datarecord_048_get_speed

#define ast_datarecord_048_get_speed   0

Get speed function.

Function Documentation

◆ ast_dataitem_048_get_name()

const char* ast_dataitem_048_get_name ( const ast_dataitem_type_t  type)

Get name function.

◆ ast_datarecord_048_get_callsign()

ast_callsign_t ast_datarecord_048_get_callsign ( const ast_datarecord_t  dr)

Get callsign function.

◆ ast_datarecord_048_get_flightlevel()

ast_altitude_t ast_datarecord_048_get_flightlevel ( const ast_datarecord_t  dr)

Get flight level function.

◆ ast_datarecord_048_get_heading()

ast_heading_t ast_datarecord_048_get_heading ( const ast_datarecord_t  dr)

Get heading function.

◆ ast_datarecord_048_get_icaoaddr()

ast_icaoaddr_t ast_datarecord_048_get_icaoaddr ( const ast_datarecord_t  dr)

Get ICAO 24-bit address function.

◆ ast_datarecord_048_get_msgtype()

ast_msgtype_t ast_datarecord_048_get_msgtype ( const ast_datarecord_t  dr)

Get message type function.

◆ ast_datarecord_048_get_polarcoord()

ast_polar_coordinate_t ast_datarecord_048_get_polarcoord ( const ast_datarecord_t  dr)

Get polar coordinate function.

◆ ast_datarecord_048_get_sacsic()

ast_sacsic_t ast_datarecord_048_get_sacsic ( const ast_datarecord_t  dr)

Get SAC/SIC function.

◆ ast_datarecord_048_get_squawk()

ast_squawk_t ast_datarecord_048_get_squawk ( const ast_datarecord_t  dr)

Get Mode-3/A code function.

◆ ast_datarecord_048_get_timeofday()

ast_timeofday_t ast_datarecord_048_get_timeofday ( const ast_datarecord_t  dr)

Get time of day function.

◆ ast_datarecord_048_get_tracknum()

ast_tracknum_t ast_datarecord_048_get_tracknum ( const ast_datarecord_t  dr)

Get track number function.