cat240.h File Reference

ASTERIX CAT240 - Radar Video Transmission. More...

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

Go to the source code of this file.

Data Structures

struct  ast_videocell_t
 Video cell. More...
 
struct  ast_videocells_t
 Video cells. More...
 
struct  ast_dataitem_240_020_t
 Data Item I240/020 - Video Record Header. More...
 
struct  ast_dataitem_240_030_t
 Data Item I240/030 - Video Summary. More...
 
struct  ast_dataitem_240_048_t
 Data Item I240/048 - Video Cells Resolution & Data Compression Indicator. More...
 
struct  ast_dataitem_240_049_t
 Data Item I240/049 - Video Octets & Video Cells Counters. More...
 
struct  ast_dataitem_240_050_t
 Data Item I240/050 - Video Block Low Data Volume. More...
 
struct  ast_dataitem_240_051_t
 Data Item I240/051 - Video Block Medium Data Volume. More...
 
struct  ast_dataitem_240_052_t
 Data Item I240/052 - Video Block High Data Volume. More...
 

Macros

#define ast_datarecord_240_get_tracknum   0
 Get track number function. More...
 
#define ast_datarecord_240_get_squawk   0
 Get Mode-3/A code function. More...
 
#define ast_datarecord_240_get_callsign   0
 Get callsign function. More...
 
#define ast_datarecord_240_get_icaoaddr   0
 Get ICAO 24-bit address function. More...
 
#define ast_datarecord_240_get_coordinate   0
 Get coordinate function. More...
 
#define ast_datarecord_240_get_flightlevel   0
 Get flight level function. More...
 
#define ast_datarecord_240_get_polarcoord   0
 Get polar coordinate function. More...
 
#define ast_datarecord_240_get_heading   0
 Get heading function. More...
 
#define ast_datarecord_240_get_speed   0
 Get speed function. More...
 
#define AST_MAX_VIDEO_CELLS   1024
 Max number of non-empty video cells. More...
 
#define ast_dataitem_240_000_get_size   ast_dataitem_message_type_get_size
 Get size function. More...
 
#define ast_dataitem_240_000_decode   ast_dataitem_message_type_decode
 Decode function. More...
 
#define ast_dataitem_240_000_encode   ast_dataitem_message_type_encode
 Encode function. More...
 
#define ast_dataitem_240_000_get_detail_html   ast_dataitem_get_detail_html_dummy
 Get detail function. More...
 
#define ast_dataitem_240_010_get_size   ast_dataitem_data_source_identifier_get_size
 Get size function. More...
 
#define ast_dataitem_240_010_decode   ast_dataitem_data_source_identifier_decode
 Decode function. More...
 
#define ast_dataitem_240_010_encode   ast_dataitem_data_source_identifier_encode
 Encode function. More...
 
#define ast_dataitem_240_010_get_summary   ast_dataitem_data_source_identifier_get_summary
 Get summary function. More...
 
#define ast_dataitem_240_010_get_detail_html   ast_dataitem_data_source_identifier_get_detail_html
 Get detail function. More...
 
#define ast_dataitem_240_020_get_size   ast_dataitem_get_size_fixed_4_byte
 Get size function. More...
 
#define ast_dataitem_240_020_get_detail_html   ast_dataitem_get_detail_html_dummy
 Get detail function. More...
 
#define AST_VIDEO_SUMMARY_MAX_CHARS   257
 Max number of chars in video summary. More...
 
#define ast_dataitem_240_030_get_size   ast_dataitem_get_size_rep_1_byte
 Get size function. More...
 
#define ast_dataitem_240_040_get_size   ast_dataitem_video_header_get_size
 Get size function. More...
 
#define ast_dataitem_240_041_get_size   ast_dataitem_video_header_get_size
 Get size function. More...
 
#define ast_dataitem_240_048_get_size   ast_dataitem_get_size_fixed_2_byte
 Get size function. More...
 
#define ast_dataitem_240_049_get_size   ast_dataitem_get_size_fixed_5_byte
 Get size function. More...
 
#define ast_dataitem_240_050_get_size   ast_dataitem_get_size_rep_4_byte
 Get size function. More...
 
#define ast_dataitem_240_051_get_size   ast_dataitem_get_size_rep_64_byte
 Get size function. More...
 
#define ast_dataitem_240_052_get_size   ast_dataitem_get_size_rep_256_byte
 Get size function. More...
 
#define ast_dataitem_240_140_get_size   ast_dataitem_time_of_day_get_size
 Get size function. More...
 
#define ast_dataitem_240_140_decode   ast_dataitem_time_of_day_decode
 Decode function. More...
 
#define ast_dataitem_240_140_encode   ast_dataitem_time_of_day_encode
 Encode function. More...
 
#define ast_dataitem_240_140_get_summary   ast_dataitem_time_of_day_get_summary
 Get summary function. More...
 
#define ast_dataitem_240_140_get_detail_html   ast_dataitem_time_of_day_get_detail_html
 Get detail function. More...
 
#define ast_dataitem_240_REF_get_size   ast_dataitem_reserved_expansion_field_get_size
 Get size funciton. More...
 
#define ast_dataitem_240_REF_get_summary   ast_dataitem_reserved_expansion_field_get_summary
 Decode function. More...
 
#define ast_dataitem_240_REF_get_detail_html   ast_dataitem_reserved_expansion_field_get_detail_html
 Get detail function. More...
 
#define ast_dataitem_240_SPF_get_size   ast_dataitem_special_purpose_field_get_size
 Get size function. More...
 
#define ast_dataitem_240_SPF_get_summary   ast_dataitem_special_purpose_field_get_summary
 Decode function. More...
 
#define ast_dataitem_240_SPF_get_detail_html   ast_dataitem_special_purpose_field_get_detail_html
 Get detail function. More...
 

Typedefs

typedef ast_dataitem_message_type_t ast_dataitem_240_000_t
 Data Item I240/000 - Message Type. More...
 
typedef ast_dataitem_data_source_identifier_t ast_dataitem_240_010_t
 Data Item I240/010 - Data Source Identifier. More...
 
typedef ast_dataitem_video_header_t ast_dataitem_240_040_t
 Data Item I240/040 - Video Header Femto. More...
 
typedef ast_dataitem_video_header_t ast_dataitem_240_041_t
 Data Item I240/041 - Video Header Femto. More...
 
typedef ast_dataitem_time_of_day_t ast_dataitem_240_140_t
 Data Item I240/140 - Time of Day. More...
 

Enumerations

enum  ast_video_resolution_type_t {
  AST_VIDEO_RES_UNDEFINED = 0, AST_VIDEO_RES_MONO = 1, AST_VIDEO_RES_LOW = 2, AST_VIDEO_RES_MEDIUM = 3,
  AST_VIDEO_RES_HIGH = 4, AST_VIDEO_RES_VERY_HIGH = 5, AST_VIDEO_RES_ULTRA_HIGH = 6
}
 Video Resolution Type. More...
 
enum  ast_video_message_type_t { AST_VIDEO_SUMMARY = 1, AST_VIDEO_MESSAGE = 2 }
 Video message type. More...
 

Functions

ast_sacsic_t ast_datarecord_240_get_sacsic (const ast_datarecord_t dr)
 Get SAC/SIC function. More...
 
ast_timeofday_t ast_datarecord_240_get_timeofday (const ast_datarecord_t dr)
 Get time of day function. More...
 
ast_msgtype_t ast_datarecord_240_get_msgtype (const ast_datarecord_t dr)
 Get message type function. More...
 
unsigned int ast_video_resolution_get_bits (const ast_video_resolution_type_t t)
 Get video resolution bits. More...
 
ast_videocells_t ast_videocell_decode (const unsigned char *video, const size_t video_size, const ast_video_resolution_type_t resolution, const unsigned int start_range, double cell_duration)
 Decode function. More...
 
void ast_videocells_get_detail_html (char *detail, const size_t detail_size, const ast_videocells_t vc)
 Get detail function. More...
 
const char * ast_dataitem_240_get_name (const ast_dataitem_type_t type)
 Get name function. More...
 
void ast_dataitem_240_000_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
ast_dataitem_240_020_t ast_dataitem_240_020_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_240_020_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Encode function. More...
 
ast_dataitem_240_030_t ast_dataitem_240_030_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_240_030_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Encode function. More...
 
void ast_dataitem_240_030_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_video_header_t ast_dataitem_240_040_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_240_040_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_240_040_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_video_header_t ast_dataitem_240_041_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_240_041_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_240_041_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_240_048_t ast_dataitem_240_048_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_240_048_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_240_048_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_240_049_t ast_dataitem_240_049_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_240_049_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_240_049_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_240_050_t ast_dataitem_240_050_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_240_050_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_240_050_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_240_051_t ast_dataitem_240_051_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_240_051_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_240_051_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 
ast_dataitem_240_052_t ast_dataitem_240_052_decode (const ast_dataitem_t di)
 Decode function. More...
 
void ast_dataitem_240_052_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function. More...
 
void ast_dataitem_240_052_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function. More...
 

Detailed Description

ASTERIX CAT240 - Radar Video Transmission.

Note
This implementation is based on ASTERIX CAT240 version 1.3

Macro Definition Documentation

◆ ast_dataitem_240_SPF_get_detail_html

#define ast_dataitem_240_SPF_get_detail_html   ast_dataitem_special_purpose_field_get_detail_html

Get detail function.

◆ ast_dataitem_240_SPF_get_size

#define ast_dataitem_240_SPF_get_size   ast_dataitem_special_purpose_field_get_size

Get size function.

◆ ast_dataitem_240_SPF_get_summary

#define ast_dataitem_240_SPF_get_summary   ast_dataitem_special_purpose_field_get_summary

Decode function.

Get Summary function

◆ ast_datarecord_240_get_callsign

#define ast_datarecord_240_get_callsign   0

Get callsign function.

◆ ast_datarecord_240_get_coordinate

#define ast_datarecord_240_get_coordinate   0

Get coordinate function.

◆ ast_datarecord_240_get_flightlevel

#define ast_datarecord_240_get_flightlevel   0

Get flight level function.

◆ ast_datarecord_240_get_heading

#define ast_datarecord_240_get_heading   0

Get heading function.

◆ ast_datarecord_240_get_icaoaddr

#define ast_datarecord_240_get_icaoaddr   0

Get ICAO 24-bit address function.

◆ ast_datarecord_240_get_polarcoord

#define ast_datarecord_240_get_polarcoord   0

Get polar coordinate function.

◆ ast_datarecord_240_get_speed

#define ast_datarecord_240_get_speed   0

Get speed function.

◆ ast_datarecord_240_get_squawk

#define ast_datarecord_240_get_squawk   0

Get Mode-3/A code function.

◆ ast_datarecord_240_get_tracknum

#define ast_datarecord_240_get_tracknum   0

Get track number function.

◆ AST_MAX_VIDEO_CELLS

#define AST_MAX_VIDEO_CELLS   1024

Max number of non-empty video cells.

Enumeration Type Documentation

◆ ast_video_resolution_type_t

Video Resolution Type.

Enumerator
AST_VIDEO_RES_UNDEFINED 
AST_VIDEO_RES_MONO 
AST_VIDEO_RES_LOW 
AST_VIDEO_RES_MEDIUM 
AST_VIDEO_RES_HIGH 
AST_VIDEO_RES_VERY_HIGH 
AST_VIDEO_RES_ULTRA_HIGH 

Function Documentation

◆ ast_dataitem_240_get_name()

const char* ast_dataitem_240_get_name ( const ast_dataitem_type_t  type)

Get name function.

◆ ast_datarecord_240_get_msgtype()

ast_msgtype_t ast_datarecord_240_get_msgtype ( const ast_datarecord_t  dr)

Get message type function.

◆ ast_datarecord_240_get_sacsic()

ast_sacsic_t ast_datarecord_240_get_sacsic ( const ast_datarecord_t  dr)

Get SAC/SIC function.

◆ ast_datarecord_240_get_timeofday()

ast_timeofday_t ast_datarecord_240_get_timeofday ( const ast_datarecord_t  dr)

Get time of day function.

◆ ast_video_resolution_get_bits()

unsigned int ast_video_resolution_get_bits ( const ast_video_resolution_type_t  t)

Get video resolution bits.

◆ ast_videocell_decode()

ast_videocells_t ast_videocell_decode ( const unsigned char *  video,
const size_t  video_size,
const ast_video_resolution_type_t  resolution,
const unsigned int  start_range,
double  cell_duration 
)

Decode function.

◆ ast_videocells_get_detail_html()

void ast_videocells_get_detail_html ( char *  detail,
const size_t  detail_size,
const ast_videocells_t  vc 
)

Get detail function.