Loading...
Searching...
No Matches
gsm0808_lcs.h
Go to the documentation of this file.
/*
* (C) 2020 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#pragma once
#include <osmocom/gsm/gsm0808.h>
#include <osmocom/gsm/bssmap_le.h>
struct gsm0808_perform_location_request {
struct bssmap_le_location_type location_type;
struct osmo_mobile_identity imsi;
bool more_items;
};
struct msgb *gsm0808_create_perform_location_request(const struct gsm0808_perform_location_request *params);
struct gsm0808_perform_location_response {
bool location_estimate_present;
union gad_raw location_estimate;
struct lcs_cause_ie lcs_cause;
};
struct msgb *gsm0808_create_perform_location_response(const struct gsm0808_perform_location_response *params);
int gsm0808_enc_lcs_cause(struct msgb *msg, const struct lcs_cause_ie *lcs_cause);
struct msgb *gsm0808_create_perform_location_abort(const struct lcs_cause_ie *lcs_cause);
bssmap_le.h
Message encoding and decoding for 3GPP TS 49.031 BSSMAP-LE.
lcs_cause
lcs_cause
3GPP TS 49.031 10.13 LCS Cause, also in 3GPP TS 48.008 3.2.2.66, which simply refers to the former.
Definition gsm_49_031.h:36
gsm0808_create_perform_location_abort
struct msgb * gsm0808_create_perform_location_abort(const struct lcs_cause_ie *lcs_cause)
Definition gsm0808.c:1500
gsm0808_enc_lcs_cause
int gsm0808_enc_lcs_cause(struct msgb *msg, const struct lcs_cause_ie *lcs_cause)
Definition gsm0808.c:1490
gsm0808_create_perform_location_response
struct msgb * gsm0808_create_perform_location_response(const struct gsm0808_perform_location_response *params)
Definition gsm0808.c:1453
gsm0808_create_perform_location_request
struct msgb * gsm0808_create_perform_location_request(const struct gsm0808_perform_location_request *params)
Definition gsm0808.c:1419
gsm0808.h
msg
uint8_t msg[0]
Definition gsm_08_08.h:8
params
uint8_t params[0]
Definition gsm_08_58.h:6
bssmap_le_location_type
Definition gsm_49_031.h:159
gsm0808_perform_location_request
Definition gsm0808_lcs.h:29
gsm0808_perform_location_request::imsi
struct osmo_mobile_identity imsi
Definition gsm0808_lcs.h:31
gsm0808_perform_location_request::location_type
struct bssmap_le_location_type location_type
Definition gsm0808_lcs.h:30
gsm0808_perform_location_request::more_items
bool more_items
always set this to false
Definition gsm0808_lcs.h:33
gsm0808_perform_location_response
Definition gsm0808_lcs.h:37
gsm0808_perform_location_response::location_estimate_present
bool location_estimate_present
Definition gsm0808_lcs.h:38
gsm0808_perform_location_response::location_estimate
union gad_raw location_estimate
Definition gsm0808_lcs.h:39
gsm0808_perform_location_response::lcs_cause
struct lcs_cause_ie lcs_cause
Definition gsm0808_lcs.h:41
lcs_cause_ie
3GPP TS 49.031 10.13 LCS Cause, also in 3GPP TS 48.008 3.2.2.66, which simply refers to the former.
Definition gsm_49_031.h:56
msgb
gad_raw
GAD PDU in network-byte-order according to 3GPP TS 23.032 GAD: Universal Geographical Area Descriptio...
Definition gsm_23_032.h:239