/* * Osmo TRX WebSDR API * * Copyright (C) 2026 Wavelet Lab * * SPDX-License-Identifier: LGPL-2.1+ * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. */ #ifndef OSMO_TRX_WEBSDR_API_H #define OSMO_TRX_WEBSDR_API_H #include #ifdef __cplusplus extern "C" { #endif int osmotrxlib_init(); void osmotrxlib_deinit(); int osmotrxlib_process_command(const char *buffer, char *response, size_t response_size); // RX path int osmotrxlib_push_rx_short_vector(short *buffers, int samples, int underrun, unsigned ts, unsigned samples_skipped); int osmotrxlib_get_rx_burst(char *buf, int maxLen); // TX path int osmotrxlib_get_tx_short_vector(); int osmotrxlib_put_tx_burst(char *buffer, int msgLen); #ifdef __cplusplus } #endif #endif