/*************************************************************************** * Copyright (C) 2020 by Federico Amedeo Izzo IU2NUO, * * Niccolò Izzo IU2KIN * * Frederik Saraci IU2NRO * * Silvano Seva IU2KWO * * * * 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 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 General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, see * ***************************************************************************/ #ifndef RADIO_H #define RADIO_H #include #include #include /** * This file provides a common interface for the platform-dependent low-level * rtx driver. Top level application code normally does not have to call directly * the API functions provided here, since all the transceiver managment, comprised * the handling of digital protocols is done by the 'rtx' module. */ /** * Initialise low-level radio transceiver. */ void radio_init(); /** * Shut down low-level radio transceiver. */ void radio_terminate(); /** * */ void radio_setBandwidth(const enum bandwidth bw); /** * */ void radio_setOpmode(const enum opmode mode); /** * */ void radio_setVcoFrequency(const freq_t frequency, const bool isTransmitting); /** * */ void radio_setCSS(const tone_t rxCss, const tone_t txCss); /** * */ bool radio_checkRxDigitalSquelch(); /** * */ void radio_enableRx(); /** * */ void radio_enableTx(const float txPower, const bool enableCss); /** * */ void radio_disableRtx(); /** * */ void radio_updateCalibrationParams(const rtxStatus_t *rtxCfg); /** * */ float radio_getRssi(const freq_t rxFreq); #endif /* RADIO_H */