|
MRTKLIB 0.7.14
Modernized GNSS Positioning Library
|
#include "mrtklib/mrtk_l6.h"#include <stddef.h>#include <stdio.h>#include <stdlib.h>#include <string.h>Go to the source code of this file.
Functions | |
| int | l6_is_null (const uint8_t *frame) |
| Test whether an L6 frame is a null message. | |
| int | l6_parse_header (const uint8_t *frame, l6_header_t *h) |
| Parse the header of one L6 frame and classify its service. | |
| const l6_prn_info_t * | l6_prn_info (int prn) |
| Look up the auxiliary information of an L6 PRN. | |
| int | l6_service_expected (const l6_header_t *h) |
| Test whether a classified frame matches the nominal assignment of its PRN. | |
| l6_file_type_t | l6_file_type (const char *file) |
| Classify a file name by its QZSS L6 extension (case-insensitive). | |
| l6_service_t | l6_file_service (const char *file) |
| Service of an L6 frame file, from the first non-null frame header. | |
| const char * | l6_service_name (l6_service_t svc) |
| Short name of an L6 service, for logs. | |
Variables | |
| static const l6_prn_info_t | l6_prn_table [] |
|
extern |
Service of an L6 frame file, from the first non-null frame header.
Scans the start of the file (concatenated 218- or 250-byte frames, as written by receivers and archives) for the preamble and classifies the first frame that is not a null message.
| [in] | file | File path (no keyword expansion). |
Definition at line 120 of file mrtk_l6.c.
References free, L6_FILE_SCAN_BYTES, L6_FRAME_LEN, l6_parse_header(), L6_SVC_NULL, L6_SVC_UNKNOWN, malloc, and l6_header_t::svc.
Referenced by readpreceph().
|
extern |
Classify a file name by its QZSS L6 extension (case-insensitive).
| [in] | file | File path or name. |
Definition at line 100 of file mrtk_l6.c.
References L6_FILE_L6, and L6_FILE_NONE.
Referenced by postpos(), readobsnav(), and readpreceph().
|
extern |
Test whether an L6 frame is a null message.
Null message [1] 4.1.2.3: message type ID 0, alert flag 1, data part "0101010"b followed by repeated "10101010"b, i.e. bytes 6..217 all 0xAA.
| [in] | frame | L6 frame starting at the preamble; at least L6_FRAME_LEN bytes. |
Definition at line 29 of file mrtk_l6.c.
References L6_FRAME_LEN.
Referenced by l6_parse_header().
|
extern |
Parse the header of one L6 frame and classify its service.
| [in] | frame | L6 frame starting at the preamble; at least L6_FRAME_LEN bytes. |
| [out] | h | Decoded header. All fields are filled even when the preamble is invalid. |
Definition at line 44 of file mrtk_l6.c.
References l6_header_t::alert, l6_header_t::anme, l6_header_t::csid, l6_header_t::fac, l6_is_null(), L6_PREAMBLE, L6_SVC_CLAS, L6_SVC_MADOCA, L6_SVC_MADOCA_IONO, L6_SVC_NULL, L6_SVC_QZNMA, L6_SVC_UNKNOWN, L6_VID_CLAS, L6_VID_MADOCA, L6_VID_QZNMA, l6_header_t::msgid, l6_header_t::preamble, l6_header_t::prn, l6_header_t::ptn, l6_header_t::sf_ind, l6_header_t::svc, and l6_header_t::vid.
Referenced by clas_input_cssr(), decode_qzss_l6dmsg(), decode_qzss_l6emsg(), decode_qzss_l6frame(), decoderaw(), and l6_file_service().
|
extern |
Look up the auxiliary information of an L6 PRN.
| [in] | prn | L6 PRN (header byte 4). |
Definition at line 74 of file mrtk_l6.c.
References l6_prn_table.
Referenced by decode_qzss_l6dmsg(), decoderaw(), and l6_service_expected().
|
extern |
Test whether a classified frame matches the nominal assignment of its PRN.
Null messages always match; on L6E PRNs both MADOCA and QZNMA match.
| [in] | h | Parsed header. |
Definition at line 85 of file mrtk_l6.c.
References l6_prn_info(), L6_SVC_MADOCA, L6_SVC_NULL, L6_SVC_QZNMA, l6_prn_info_t::l6e, l6_header_t::prn, l6_header_t::svc, and l6_prn_info_t::svc.
Referenced by decode_qzss_l6frame().
|
extern |
Short name of an L6 service, for logs.
| [in] | svc | Service. |
Definition at line 162 of file mrtk_l6.c.
References L6_SVC_CLAS, L6_SVC_MADOCA, L6_SVC_MADOCA_IONO, L6_SVC_NULL, and L6_SVC_QZNMA.
Referenced by clas_input_cssr(), and decode_qzss_l6frame().
|
static |
Definition at line 18 of file mrtk_l6.c.
Referenced by l6_prn_info().