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 | * |
Neels Hofmeyr | 7299215 | 2020-09-19 02:36:08 +0200 | [diff] [blame] | 20 | */ |
| 21 | |
| 22 | #pragma once |
| 23 | |
| 24 | #include <stdint.h> |
| 25 | #include <osmocom/core/linuxlist.h> |
| 26 | #include <osmocom/sigtran/sccp_sap.h> |
| 27 | |
| 28 | struct osmo_gad; |
| 29 | |
| 30 | struct cell_location { |
| 31 | struct llist_head entry; |
| 32 | |
| 33 | struct gsm0808_cell_id cell_id; |
| 34 | |
| 35 | /*! latitude in micro degrees (degrees * 1e6) */ |
| 36 | int32_t lat; |
| 37 | /*! longitude in micro degrees (degrees * 1e6) */ |
| 38 | int32_t lon; |
| 39 | }; |
| 40 | |
| 41 | int cell_location_from_ta(struct osmo_gad *location_estimate, |
| 42 | const struct gsm0808_cell_id *cell_id, |
| 43 | uint8_t ta); |
| 44 | |
| 45 | int cell_locations_vty_init(); |