Mode-2 code as received from the transponder. More...

Collaboration diagram for Data Item I048/050 - Mode-2 Code in Octal Representation:

Data Structures

struct  ast_dataitem_048_050_t
 Data Item I048/050 - Mode-2 Code in Octal Representation. More...

Macros

#define ast_dataitem_048_050_get_size   ast_dataitem_get_size_fixed_2_byte
 Get size function for I048/050.

Functions

ast_dataitem_048_050_t ast_dataitem_048_050_decode (const ast_dataitem_t di)
 Decode function for I048/050.
ast_dataitem_t ast_dataitem_048_050_encode (unsigned char *const buffer, const size_t buf_size, const ast_dataitem_ex_t xdi)
 Encode function for I048/050.
void ast_dataitem_048_050_get_summary (char *summary, const size_t summary_size, const ast_dataitem_t di)
 Get summary function for I048/050.
void ast_dataitem_048_050_get_detail_html (char *detail, const size_t detail_size, const ast_dataitem_t di)
 Get detail function for I048/050.

Detailed Description

Mode-2 code as received from the transponder.

Format:
Two-octet fixed length Data Item
Structure:
  • Bit 16 (V): Validated (0=Validated, 1=Not validated)
  • Bit 15 (G): Garbled (0=Default, 1=Garbled)
  • Bit 14 (L): Smoothed (0=Default, 1=Smoothed)
  • Bits 13-1: Mode-2 Code (12-bit code in octal representation)
Code Structure:
  • Bits 13-12 (A): First octal digit
  • Bits 11-9 (B): Second octal digit
  • Bits 8-6 (C): Third octal digit
  • Bits 5-3 (D): Fourth octal digit
  • Bits 2-1: Spare

Macro Definition Documentation

◆ ast_dataitem_048_050_get_size

#define ast_dataitem_048_050_get_size   ast_dataitem_get_size_fixed_2_byte

Get size function for I048/050.

Function Documentation

◆ ast_dataitem_048_050_decode()

ast_dataitem_048_050_t ast_dataitem_048_050_decode ( const ast_dataitem_t di)

Decode function for I048/050.

◆ ast_dataitem_048_050_encode()

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

Encode function for I048/050.

◆ ast_dataitem_048_050_get_detail_html()

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

Get detail function for I048/050.

◆ ast_dataitem_048_050_get_summary()

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

Get summary function for I048/050.