libosmogsm 1.10.0.57-8972
Osmocom GSM library
|
Message encoding and decoding for 3GPP TS 23.032 GAD: Universal Geographical Area Description. More...
Go to the source code of this file.
Data Structures | |
struct | osmo_gad_ell_point |
struct | osmo_gad_ell_point_unc_circle |
struct | osmo_gad_ell_point_unc_ellipse |
struct | osmo_gad_polygon |
struct | osmo_gad_ell_point_alt |
struct | osmo_gad_ell_point_alt_unc_ell |
struct | osmo_gad_ell_arc |
struct | osmo_gad_ha_ell_point_alt_unc_ell |
struct | osmo_gad |
struct | osmo_gad_err |
Functions | |
static const char * | osmo_gad_type_name (enum gad_type val) |
int | osmo_gad_raw_write (struct msgb *msg, const union gad_raw *gad_raw) |
Append a GAD PDU to the msgb. More... | |
int | osmo_gad_raw_read (union gad_raw *gad_raw, struct osmo_gad_err **err, void *err_ctx, const uint8_t *data, uint8_t len) |
Read a GAD PDU and validate structure. More... | |
int | osmo_gad_enc (union gad_raw *gad_raw, const struct osmo_gad *gad) |
Write GAD values with consistent units to raw GAD PDU representation. More... | |
int | osmo_gad_dec (struct osmo_gad *gad, struct osmo_gad_err **err, void *err_ctx, const union gad_raw *raw) |
Decode GAD raw PDU to values with consistent units. More... | |
int | osmo_gad_to_str_buf (char *buf, size_t buflen, const struct osmo_gad *gad) |
Return a human readable representation of GAD (location estimate) values. More... | |
char * | osmo_gad_to_str_c (void *ctx, const struct osmo_gad *gad) |
Return a human readable representation of GAD (location estimate) values. More... | |
uint32_t | osmo_gad_enc_lat (int32_t deg_1e6) |
Encode a latitude value according to 3GPP TS 23.032. More... | |
int32_t | osmo_gad_dec_lat (uint32_t lat) |
Decode a latitude value according to 3GPP TS 23.032. More... | |
uint32_t | osmo_gad_enc_lon (int32_t deg_1e6) |
Encode a longitude value according to 3GPP TS 23.032. More... | |
int32_t | osmo_gad_dec_lon (uint32_t lon) |
Decode a longitude value according to 3GPP TS 23.032. More... | |
uint8_t | osmo_gad_enc_unc (uint32_t mm) |
Encode an uncertainty circle value according to 3GPP TS 23.032. More... | |
uint32_t | osmo_gad_dec_unc (uint8_t unc) |
Decode an uncertainty circle value according to 3GPP TS 23.032. More... | |
Variables | |
const struct value_string | osmo_gad_type_names [] |
Message encoding and decoding for 3GPP TS 23.032 GAD: Universal Geographical Area Description.