cat010.h File Reference

ASTERIX CAT010 - Transmission of Monosensor Surface Movement Data. More...

#include "dataitem.h"
#include "datarecord.h"
#include "cat_generic.h"
#include "subfield.h"
Include dependency graph for cat010.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_010_020_t
 Data Item I010/020 - Target Report Descriptor. More...
 
struct  ast_dataitem_010_040_t
 Data Item I010/040 - Measured Position in Polar Co-ordinates. More...
 
struct  ast_dataitem_010_042_t
 Data Item I010/042 - Calculated Position in Cartesian Co-ordinates. More...
 
struct  ast_dataitem_010_131_t
 Data Item I010/131 - Amplitude of Primary Plot. More...
 
struct  ast_dataitem_010_170_t
 Data Item I010/170 - Track Status. More...
 
struct  ast_dataitem_010_270_t
 Data Item I010/270 - Target Size & Orientation. More...
 

Macros

#define ast_dataitem_010_000_get_size   ast_dataitem_message_type_get_size
 Get size function. More...
 
#define ast_dataitem_010_000_decode   ast_dataitem_message_type_decode
 Decode function. More...
 
#define ast_dataitem_010_000_encode   ast_dataitem_message_type_encode
 Encode function. More...
 
#define ast_dataitem_010_000_get_detail_html   ast_dataitem_get_detail_html_dummy
 Get detail function. More...
 
#define ast_dataitem_010_010_get_size   ast_dataitem_data_source_identifier_get_size
 Get size function. More...
 
#define ast_dataitem_010_010_decode   ast_dataitem_data_source_identifier_decode
 Decode function. More...
 
#define ast_dataitem_010_010_encode   ast_dataitem_data_source_identifier_encode
 Encode function. More...
 
#define ast_dataitem_010_010_get_summary   ast_dataitem_data_source_identifier_get_summary
 Get summary function. More...
 
#define ast_dataitem_010_010_get_detail_html   ast_dataitem_data_source_identifier_get_detail_html
 Get detail function. More...
 
#define ast_dataitem_010_020_get_size   ast_dataitem_get_size_var_3_byte
 Get size function. More...
 
#define ast_dataitem_010_040_get_size   ast_dataitem_get_size_fixed_4_byte
 Get size function. More...
 
#define ast_dataitem_010_042_get_size   ast_dataitem_get_size_fixed_4_byte
 Get size function. More...
 
#define ast_dataitem_010_060_get_size   ast_dataitem_mode_3a_code_get_size
 Get size function. More...
 
#define ast_dataitem_010_060_decode   ast_dataitem_mode_3a_code_decode
 Decode function. More...
 
#define ast_dataitem_010_060_encode   ast_dataitem_mode_3a_code_encode
 Encode function. More...
 
#define ast_dataitem_010_060_get_summary   ast_dataitem_mode_3a_code_get_summary
 Get summary function. More...
 
#define ast_dataitem_010_060_get_detail_html   ast_dataitem_mode_3a_code_get_detail_html
 Get detail function. More...
 
#define ast_dataitem_010_090_get_size   ast_dataitem_mode_c_code_get_size
 Get size function. More...
 
#define ast_dataitem_010_090_decode   ast_dataitem_mode_c_code_decode
 Decode function. More...
 
#define ast_dataitem_010_090_encode   ast_dataitem_mode_c_code_encode
 Encode function. More...
 
#define ast_dataitem_010_090_get_summary   ast_dataitem_mode_c_code_get_summary
 Get summary function. More...
 
#define ast_dataitem_010_090_get_detail_html   ast_dataitem_mode_c_code_get_detail_html
 Get detail function. More...
 
#define ast_dataitem_010_131_get_size   ast_dataitem_get_size_fixed_1_byte
 Get size function. More...
 
#define ast_dataitem_010_140_get_size   ast_dataitem_time_of_day_get_size
 Get size function. More...
 
#define ast_dataitem_010_140_decode   ast_dataitem_time_of_day_decode
 Decode function. More...
 
#define ast_dataitem_010_140_encode   ast_dataitem_time_of_day_encode
 Encode function. More...
 
#define ast_dataitem_010_140_get_summary   ast_dataitem_time_of_day_get_summary
 Get summary function. More...
 
#define ast_dataitem_010_140_get_detail_html   ast_dataitem_time_of_day_get_detail_html
 Get detail function. More...
 
#define ast_dataitem_010_161_get_size   ast_dataitem_track_number_get_size
 Get size function. More...
 
#define ast_dataitem_010_161_decode   ast_dataitem_track_number_decode
 Decode function. More...
 
#define ast_dataitem_010_161_encode   ast_dataitem_track_number_encode
 Encode function. More...
 
#define ast_dataitem_010_161_get_summary   ast_dataitem_track_number_get_summary
 Get summary function. More...
 
#define ast_dataitem_010_161_get_detail_html   ast_dataitem_track_number_get_detail_html
 Get detail function. More...
 
#define ast_dataitem_010_170_get_size   ast_dataitem_get_size_var_3_byte
 Get size function. More...
 
#define ast_dataitem_010_202_get_size   ast_dataitem_velocity_cartesian_get_size
 Get size function. More...
 
#define ast_dataitem_010_202_decode   ast_dataitem_velocity_cartesian_decode
 Decode function. More...
 
#define ast_dataitem_010_202_get_summary   ast_dataitem_velocity_cartesian_get_summary
 Get summary function. More...
 
#define ast_dataitem_010_202_get_detail_html   ast_dataitem_get_detail_html_dummy
 Get detail function. More...
 
#define ast_dataitem_010_270_get_size   ast_dataitem_get_size_var_3_byte
 Get size function. More...
 
#define ast_datarecord_010_get_callsign   0
 Get callsign function. More...
 
#define ast_datarecord_010_get_icaoaddr   0
 Get ICAO 24-bit address function. More...
 
#define ast_datarecord_010_get_coordinate   0
 Get coordinate function. More...
 
#define ast_datarecord_010_get_polarcoord   0
 Get polar coordinate function. More...
 
#define ast_datarecord_010_get_speed   0
 Get speed function. More...
 

Typedefs

typedef ast_dataitem_message_type_t ast_dataitem_010_000_t
 Data Item I010/000 - Message Type. More...
 
typedef ast_dataitem_data_source_identifier_t ast_dataitem_010_010_t
 Item I010/010 - Data Source Identifier. More...
 
typedef ast_dataitem_mode_3a_code_t ast_dataitem_010_060_t
 Data Item I010/060 - Mode-3/A Code in Octal Representation. More...
 
typedef ast_dataitem_mode_c_code_t ast_dataitem_010_090_t
 Data Item I010/090 - Flight Level in Binary Representation. More...
 
typedef ast_dataitem_time_of_day_t ast_dataitem_010_140_t
 Data Item I010/140 - Time of Day. More...
 
typedef ast_dataitem_track_number_t ast_dataitem_010_161_t
 Data Item I010/161 - Track Number. More...
 
typedef ast_dataitem_velocity_cartesian_t ast_dataitem_010_202_t
 Data Item I010/202 - Calculated Track Velocity in Cartesian Coordinates. More...
 

Enumerations

enum  ast_surface_message_type_t { AST_SURFACE_MESSAGE_TARGET_REPORT = 1, AST_SURFACE_MESSAGE_START_UPDATE_CYCLE = 2, AST_SURFACE_MESSAGE_PERIODIC_STATUS = 3, AST_SURFACE_MESSAGE_EVENT_STATUS = 4 }
 Surface message type. More...
 
enum  ast_surface_target_type_t {
  AST_SFC_TARGET_TYPE_SSR_MLAT = 0, AST_SFC_TARGET_TYPE_MODES_MLAT = 1, AST_SFC_TARGET_TYPE_ADSB = 2, AST_SFC_TARGET_TYPE_PSR = 3,
  AST_SFC_TARGET_TYPE_MAGLOOP = 4, AST_SFC_TARGET_TYPE_HF_MLAT = 5, AST_SFC_TARGET_TYPE_UNDEFINED = 6, AST_SFC_TARGET_TYPE_OTHER = 7
}
 Surface Target Surveillance Type. More...
 
enum  ast_loop_status_t { AST_LOOP_UNDETERMINED = 0, AST_LOOP_START = 1, AST_LOOP_FINISH = 2 }
 Loop Status. More...
 
enum  ast_surface_target_t { AST_SFC_TARGET_UNDETERMINED = 0, AST_SFC_TARGET_AIRCRAFT = 1, AST_SFC_TARGET_GROUND_VEHICLE = 2, AST_SFC_TARGET_HELICOPTER = 3 }
 Surface Target Type. More...
 
enum  ast_sfc_track_coast_type_t { AST_SFC_TRACK_COAST_TYPE_NO_EXTRAPOLATION = 0, AST_SFC_TRACK_COAST_TYPE_SENSOR_REFRESH = 1, AST_SFC_TRACK_COAST_TYPE_MASKED_AREA = 2, AST_SFC_TRACK_COAST_TYPE_ABSENCE_DETECTION = 3 }
 Surface Track Cost Type. More...
 
enum  ast_sfc_track_movement_type_t { AST_SFC_TRACK_MOVE_TYPE_UNKNOWN = 0, AST_SFC_TRACK_MOVE_TYPE_TAKIGOFF = 1, AST_SFC_TRACK_MOVE_TYPE_LANDING = 2, AST_SFC_TRACK_MOVE_TYPE_OTHER = 3 }
 Surface Track Movement Type. More...
 
enum  ast_sfc_track_doubt_type_t {
  AST_SFC_TRACK_DOUBT_TYPE_NODOUBT = 0, AST_SFC_TRACK_DOUBT_TYPE_CORRELATION = 1, AST_SFC_TRACK_DOUBT_TYPE_CORRELATION_CLUTTER = 2, AST_SFC_TRACK_DOUBT_TYPE_ACCURACY = 3,
  AST_SFC_TRACK_DOUBT_TYPE_ACCURACY_CLUTTER = 4, AST_SFC_TRACK_DOUBT_TYPE_UNSTABLE = 5, AST_SFC_TRACK_DOUBT_TYPE_COAST = 6
}
 Surface Track Doubt Type. More...
 
enum  ast_sfc_track_merge_type_t { AST_SFC_TRACK_MERGE_TYPE_UNDETERMINED = 0, AST_SFC_TRACK_MERGE_TYPE_PLOT = 1, AST_SFC_TRACK_MERGE_TYPE_NO_PLOT = 2, AST_SFC_TRACK_MERGE_TYPE_SPLIT = 3 }
 Surface Track Merge Type. More...
 

Functions

const char * ast_dataitem_010_get_name (const ast_dataitem_type_t type)
 Get name function. More...
 
void ast_dataitem_010_000_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
ast_dataitem_010_020_t ast_dataitem_010_020_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_010_020_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Encode function. More...
 
void ast_dataitem_010_020_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_010_040_t ast_dataitem_010_040_decode (const ast_dataitem_t di)
 Decode function. More...
 
ast_dataitem_t ast_dataitem_010_040_encode (unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
 Encode function. More...
 
void ast_dataitem_010_040_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_010_040_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_010_042_t ast_dataitem_010_042_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_010_042_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_010_042_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_010_131_t ast_dataitem_010_131_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_010_131_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_010_131_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_010_170_t ast_dataitem_010_170_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_010_170_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_010_170_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_010_270_t ast_dataitem_010_270_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_010_270_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_010_270_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_sacsic_t ast_datarecord_010_get_sacsic (const ast_datarecord_t dr)
 Get SAC/SIC function. More...
 
ast_timeofday_t ast_datarecord_010_get_timeofday (const ast_datarecord_t dr)
 Get time of day function. More...
 
ast_msgtype_t ast_datarecord_010_get_msgtype (const ast_datarecord_t dr)
 Get message type function. More...
 
ast_tracknum_t ast_datarecord_010_get_tracknum (const ast_datarecord_t dr)
 Get track number function. More...
 
ast_squawk_t ast_datarecord_010_get_squawk (const ast_datarecord_t dr)
 Get Mode-3/A code function. More...
 
ast_altitude_t ast_datarecord_010_get_flightlevel (const ast_datarecord_t dr)
 Get flight level function. More...
 
ast_heading_t ast_datarecord_010_get_heading (const ast_datarecord_t dr)
 Get heading function. More...
 

Detailed Description

ASTERIX CAT010 - Transmission of Monosensor Surface Movement Data.

This file includes implementation of ASTERIX CAT010.

Note
This implementation is based on ASTERIX CAT010 version 1.1.

Macro Definition Documentation

◆ ast_dataitem_010_040_get_size

#define ast_dataitem_010_040_get_size   ast_dataitem_get_size_fixed_4_byte

Get size function.

◆ ast_dataitem_010_270_get_size

#define ast_dataitem_010_270_get_size   ast_dataitem_get_size_var_3_byte

Get size function.

◆ ast_datarecord_010_get_callsign

#define ast_datarecord_010_get_callsign   0

Get callsign function.

◆ ast_datarecord_010_get_coordinate

#define ast_datarecord_010_get_coordinate   0

Get coordinate function.

◆ ast_datarecord_010_get_icaoaddr

#define ast_datarecord_010_get_icaoaddr   0

Get ICAO 24-bit address function.

◆ ast_datarecord_010_get_polarcoord

#define ast_datarecord_010_get_polarcoord   0

Get polar coordinate function.

◆ ast_datarecord_010_get_speed

#define ast_datarecord_010_get_speed   0

Get speed function.

Function Documentation

◆ ast_dataitem_010_040_decode()

ast_dataitem_010_040_t ast_dataitem_010_040_decode ( const ast_dataitem_t  di)

Decode function.

◆ ast_dataitem_010_040_encode()

ast_dataitem_t ast_dataitem_010_040_encode ( unsigned char *const  buffer,
const size_t  buf_size,
const ast_dataitem_ex_t  xdi 
)

Encode function.

◆ ast_dataitem_010_040_get_detail_html()

void ast_dataitem_010_040_get_detail_html ( char *  detail,
const size_t  detail_size,
const ast_dataitem_t  di 
)

Get detail function.

◆ ast_dataitem_010_040_get_summary()

void ast_dataitem_010_040_get_summary ( char *  summary,
const size_t  summary_size,
const ast_dataitem_t  di 
)

Get summary function.

◆ ast_dataitem_010_270_decode()

ast_dataitem_010_270_t ast_dataitem_010_270_decode ( const ast_dataitem_t  di)

Decode function.

◆ ast_dataitem_010_270_get_detail_html()

void ast_dataitem_010_270_get_detail_html ( char *  detail,
const size_t  detail_size,
const ast_dataitem_t  di 
)

Get detail function.

◆ ast_dataitem_010_270_get_summary()

void ast_dataitem_010_270_get_summary ( char *  summary,
const size_t  summary_size,
const ast_dataitem_t  di 
)

Get summary function.

◆ ast_dataitem_010_get_name()

const char* ast_dataitem_010_get_name ( const ast_dataitem_type_t  type)

Get name function.

◆ ast_datarecord_010_get_flightlevel()

ast_altitude_t ast_datarecord_010_get_flightlevel ( const ast_datarecord_t  dr)

Get flight level function.

◆ ast_datarecord_010_get_heading()

ast_heading_t ast_datarecord_010_get_heading ( const ast_datarecord_t  dr)

Get heading function.

◆ ast_datarecord_010_get_msgtype()

ast_msgtype_t ast_datarecord_010_get_msgtype ( const ast_datarecord_t  dr)

Get message type function.

◆ ast_datarecord_010_get_sacsic()

ast_sacsic_t ast_datarecord_010_get_sacsic ( const ast_datarecord_t  dr)

Get SAC/SIC function.

◆ ast_datarecord_010_get_squawk()

ast_squawk_t ast_datarecord_010_get_squawk ( const ast_datarecord_t  dr)

Get Mode-3/A code function.

◆ ast_datarecord_010_get_timeofday()

ast_timeofday_t ast_datarecord_010_get_timeofday ( const ast_datarecord_t  dr)

Get time of day function.

◆ ast_datarecord_010_get_tracknum()

ast_tracknum_t ast_datarecord_010_get_tracknum ( const ast_datarecord_t  dr)

Get track number function.