Neels Hofmeyr | 7299215 | 2020-09-19 02:36:08 +0200 | [diff] [blame^] | 1 | /* OsmoSMLC cell locations configuration */ |
| 2 | /* |
| 3 | * (C) 2020 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de> |
| 4 | * All Rights Reserved |
| 5 | * |
| 6 | * Author: Neels Hofmeyr <neels@hofmeyr.de> |
| 7 | * |
| 8 | * SPDX-License-Identifier: GPL-2.0+ |
| 9 | * |
| 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation; either version 2 of the License, or |
| 13 | * (at your option) any later version. |
| 14 | * |
| 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
| 19 | * |
| 20 | * You should have received a copy of the GNU General Public License along |
| 21 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 22 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 23 | * |
| 24 | */ |
| 25 | |
| 26 | #pragma once |
| 27 | |
| 28 | #include <stdint.h> |
| 29 | #include <osmocom/core/linuxlist.h> |
| 30 | #include <osmocom/sigtran/sccp_sap.h> |
| 31 | |
| 32 | struct osmo_gad; |
| 33 | |
| 34 | struct cell_location { |
| 35 | struct llist_head entry; |
| 36 | |
| 37 | struct gsm0808_cell_id cell_id; |
| 38 | |
| 39 | /*! latitude in micro degrees (degrees * 1e6) */ |
| 40 | int32_t lat; |
| 41 | /*! longitude in micro degrees (degrees * 1e6) */ |
| 42 | int32_t lon; |
| 43 | }; |
| 44 | |
| 45 | int cell_location_from_ta(struct osmo_gad *location_estimate, |
| 46 | const struct gsm0808_cell_id *cell_id, |
| 47 | uint8_t ta); |
| 48 | |
| 49 | int cell_locations_vty_init(); |