mbgtools-lx
4.2.8
|
Go to the source code of this file.
Macros | |
#define | _ext extern |
Functions | |
void | swap_double (double *p) |
Swap the bytes of a single variable of type "double". More... | |
void | swap_eph_doubles (EPH *p) |
Swap the "double" fields in an EPH structure. More... | |
void | swap_alm_doubles (ALM *p) |
Swap the "double" fields in an ALM structure. More... | |
void | swap_utc_doubles (UTC *p) |
Swap the "double" fields in a UTC structure. More... | |
void | swap_iono_doubles (IONO *p) |
Swap the "double" fields in a IONO structure. More... | |
void | swap_pos_doubles (POS *p) |
Swap the "double" fields in a POS structure. More... | |
size_t | snprint_dms (char *s, size_t max_len, const DMS *p, int prec) |
Print the DMS part of a geo position into a string buffer. More... | |
size_t | snprint_alt (char *s, size_t max_len, double alt) |
Print the altitude part of a geo position into a string buffer. More... | |
size_t | snprint_pos_geo (char *s, size_t max_len, const POS *p, char sep, int prec) |
Print a geo position in POS format into a string buffer. More... | |
size_t | snprint_fixed_freq (char *s, size_t max_len, FIXED_FREQ_INFO *p_ff) |
Print a formatted FIXED_FREQ_INFO into a string buffer. More... | |
#define _ext extern |
Definition at line 47 of file gpsutils.h.
size_t snprint_alt | ( | char * | s, |
size_t | max_len, | ||
double | alt | ||
) |
Print the altitude part of a geo position into a string buffer.
[out] | s | The string buffer to be filled |
[in] | max_len | Size of the output buffer for 0-terminated string |
[in] | alt | The altitude value to be printed, in [m] |
Referenced by swap_pos_doubles().
size_t snprint_dms | ( | char * | s, |
size_t | max_len, | ||
const DMS * | p, | ||
int | prec | ||
) |
Print the DMS part of a geo position into a string buffer.
[out] | s | The string buffer to be filled |
[in] | max_len | Size of the output buffer for 0-terminated string |
[in] | p | Pointer to a DMS structure to be printed |
[in] | prec | Precision, i.e. number of fractions of the seconds |
Referenced by swap_pos_doubles().
size_t snprint_fixed_freq | ( | char * | s, |
size_t | max_len, | ||
FIXED_FREQ_INFO * | p_ff | ||
) |
Print a formatted FIXED_FREQ_INFO into a string buffer.
[out] | s | The string buffer to be filled |
[in] | max_len | Size of the output buffer for 0-terminated string |
[in] | p_ff | Pointer to a FIXED_FREQ_INFO structure to be printed |
Referenced by swap_pos_doubles().
size_t snprint_pos_geo | ( | char * | s, |
size_t | max_len, | ||
const POS * | p, | ||
char | sep, | ||
int | prec | ||
) |
Print a geo position in POS format into a string buffer.
[out] | s | The string buffer to be filled |
[in] | max_len | Size of the output buffer for 0-terminated string |
[in] | p | Pointer to a POS structure to be printed |
[in] | sep | Separator character for the DMS part |
[in] | prec | Precision, i.e. number of fractions of the seconds of the DMS part |
Referenced by swap_pos_doubles().
void swap_alm_doubles | ( | ALM * | p | ) |
Swap the "double" fields in an ALM structure.
See comments for swap_double
[in,out] | p | Pointer to an ALM structure to be converted |
Definition at line 182 of file gpsutils.c.
References ALM::af0, ALM::af1, ALM::deltai, ALM::e, ALM::M0, ALM::omega, ALM::OMEGA0, ALM::OMEGADOT, ALM::sqrt_A, and swap_double().
void swap_double | ( | double * | p | ) |
Swap the bytes of a single variable of type "double".
The memory layout of a "double" on Meinberg bus level devices and computers usually differs. This function can be used to fix this and is usually called from inside API functions, if required.
[in,out] | p | Pointer to a "double" to be swapped |
Definition at line 101 of file gpsutils.c.
Referenced by mbg_get_utc_parm(), mbg_set_gps_pos_lla(), mbg_set_gps_pos_xyz(), mbg_set_utc_parm(), mbgextio_get_pos_lla(), mbgextio_get_pos_xyz(), mbgextio_set_pos_lla(), swap_alm_doubles(), swap_eph_doubles(), swap_iono_doubles(), swap_pos_doubles(), and swap_utc_doubles().
void swap_eph_doubles | ( | EPH * | p | ) |
Swap the "double" fields in an EPH structure.
See comments for swap_double
[in,out] | p | Pointer to an EPH structure to be converted |
Definition at line 138 of file gpsutils.c.
References EPH::af0, EPH::af1, EPH::af2, EPH::cic, EPH::cis, EPH::crc, EPH::crs, EPH::cuc, EPH::cus, EPH::deltan, EPH::e, EPH::i0, EPH::idot, EPH::M0, EPH::omega, EPH::OMEGA0, EPH::OMEGADOT, EPH::sqrt_A, swap_double(), and EPH::tgd.
void swap_iono_doubles | ( | IONO * | p | ) |
Swap the "double" fields in a IONO structure.
See comments for swap_double
[in,out] | p | Pointer to a IONO structure to be converted |
Definition at line 235 of file gpsutils.c.
References IONO::alpha_0, IONO::alpha_1, IONO::alpha_2, IONO::alpha_3, IONO::beta_0, IONO::beta_1, IONO::beta_2, IONO::beta_3, and swap_double().
void swap_pos_doubles | ( | POS * | p | ) |
Swap the "double" fields in a POS structure.
See comments for swap_double
[in,out] | p | Pointer to a POS structure to be converted |
Definition at line 265 of file gpsutils.c.
References ALT, DMS::deg, DEG, FIXED_FREQ_INFO::khz_val, LAT, POS::latitude, POS::lla, LON, POS::longitude, DMS::min, N_LLA, N_XYZ, DMS::prefix, FIXED_FREQ_INFO::range, DMS::sec, sn_cpy_str_safe(), snprint_alt(), snprint_dms(), snprint_fixed_freq(), snprint_pos_geo(), snprintf_safe(), swap_double(), and POS::xyz.
Referenced by mbg_get_gps_pos().
void swap_utc_doubles | ( | UTC * | p | ) |
Swap the "double" fields in a UTC structure.
See comments for swap_double
[in,out] | p | Pointer to a UTC structure to be converted |
Definition at line 212 of file gpsutils.c.
References UTC::A0, UTC::A1, and swap_double().