/* Osmo BTS TRX WebSDR API * * Copyright (C) 2026 Wavelet Lab * * All Rights Reserved * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation; either version 3 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 Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * */ #ifndef OSMO_BTS_TRX_WEBSDR_H #define OSMO_BTS_TRX_WEBSDR_H #include #include #include "l1_if.h" struct burstinfo { uint32_t fn; uint8_t tn; uint8_t att; uint16_t len; const uint8_t *burst; }; /* Call to the TRX */ int apitrx_init(struct trx_l1h *l1h); int apitrx_cmd_call(const char *command, char *response, size_t response_size); int apitrx_tx_call(unsigned phyid, char *pdu_buffer, size_t pdu_len); int apitrx_tx_call_fn(unsigned phyid, const struct burstinfo *pbi); /* Called from TRX */ int apibts_clock_ind(struct trx_l1h *l1h, unsigned fn); #endif /* OSMO_BTS_TRX_WEBSDR_H */