2017-05-12 06:55:59 +00:00
|
|
|
/*!
|
|
|
|
* \file rtklib_rtcm.h
|
|
|
|
* \brief RTCM functions headers
|
|
|
|
* \authors <ul>
|
|
|
|
* <li> 2007-2013, T. Takasu
|
|
|
|
* <li> 2017, Javier Arribas
|
|
|
|
* <li> 2017, Carles Fernandez
|
|
|
|
* </ul>
|
|
|
|
*
|
|
|
|
* This is a derived work from RTKLIB http://www.rtklib.com/
|
|
|
|
* The original source code at https://github.com/tomojitakasu/RTKLIB is
|
|
|
|
* released under the BSD 2-clause license with an additional exclusive clause
|
|
|
|
* that does not apply here. This additional clause is reproduced below:
|
|
|
|
*
|
|
|
|
* " The software package includes some companion executive binaries or shared
|
|
|
|
* libraries necessary to execute APs on Windows. These licenses succeed to the
|
|
|
|
* original ones of these software. "
|
|
|
|
*
|
|
|
|
* Neither the executive binaries nor the shared libraries are required by, used
|
|
|
|
* or included in GNSS-SDR.
|
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2017-05-12 06:55:59 +00:00
|
|
|
* Copyright (C) 2007-2013, T. Takasu
|
|
|
|
* Copyright (C) 2017, Javier Arribas
|
|
|
|
* Copyright (C) 2017, Carles Fernandez
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
2020-02-08 00:20:02 +00:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2017-05-12 06:55:59 +00:00
|
|
|
*
|
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
|
|
|
*/
|
2017-05-12 06:55:59 +00:00
|
|
|
|
|
|
|
|
2020-02-08 09:10:46 +00:00
|
|
|
#ifndef GNSS_SDR_RTKLIB_RTCM_H
|
|
|
|
#define GNSS_SDR_RTKLIB_RTCM_H
|
2017-05-12 06:55:59 +00:00
|
|
|
|
2017-05-15 16:13:26 +00:00
|
|
|
#include "rtklib.h"
|
|
|
|
#include "rtklib_rtcm2.h"
|
|
|
|
#include "rtklib_rtcm3.h"
|
|
|
|
|
2018-03-03 01:03:39 +00:00
|
|
|
#define RTCM2PREAMB 0x66 /* rtcm ver.2 frame preamble */
|
|
|
|
#define RTCM3PREAMB 0xD3 /* rtcm ver.3 frame preamble */
|
2017-05-12 06:55:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
int init_rtcm(rtcm_t *rtcm);
|
|
|
|
void free_rtcm(rtcm_t *rtcm);
|
|
|
|
int input_rtcm2(rtcm_t *rtcm, unsigned char data);
|
|
|
|
int input_rtcm3(rtcm_t *rtcm, unsigned char data);
|
|
|
|
int input_rtcm2f(rtcm_t *rtcm, FILE *fp);
|
|
|
|
int input_rtcm3f(rtcm_t *rtcm, FILE *fp);
|
|
|
|
int gen_rtcm2(rtcm_t *rtcm, int type, int sync);
|
2019-08-18 20:16:13 +00:00
|
|
|
// int gen_rtcm3(rtcm_t *rtcm, int type, int sync);
|
2017-05-12 06:55:59 +00:00
|
|
|
|
|
|
|
|
2020-02-08 09:10:46 +00:00
|
|
|
#endif // GNSS_SDR_RTKLIB_RTCM_H
|