Removed unused wrappers for AT1846S and HR_Cx000 drivers
This commit is contained in:
parent
a84d8fe6f0
commit
cfed3ded6c
|
|
@ -1,123 +0,0 @@
|
|||
/***************************************************************************
|
||||
* Copyright (C) 2021 - 2023 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 <http://www.gnu.org/licenses/> *
|
||||
***************************************************************************/
|
||||
|
||||
#include "AT1846S_wrapper.h"
|
||||
#include "AT1846S.h"
|
||||
|
||||
void AT1846S_init()
|
||||
{
|
||||
AT1846S::instance().init();
|
||||
}
|
||||
|
||||
void AT1846S_terminate()
|
||||
{
|
||||
AT1846S::instance().terminate();
|
||||
}
|
||||
|
||||
void AT1846S_setFrequency(const freq_t freq)
|
||||
{
|
||||
AT1846S::instance().setFrequency(freq);
|
||||
}
|
||||
|
||||
void AT1846S_setBandwidth(const AT1846S_bw_t band)
|
||||
{
|
||||
// Conversion is safe: the fields in AT1846S_bw_t enum and in AT1846S_BW
|
||||
// enum class concide.
|
||||
AT1846S::instance().setBandwidth(static_cast< AT1846S_BW >(band));
|
||||
}
|
||||
|
||||
void AT1846S_setOpMode(const AT1846S_op_t mode)
|
||||
{
|
||||
// Conversion is safe: the fields in AT1846S_op_t enum and in AT1846S_OpMode
|
||||
// enum class concide.
|
||||
AT1846S::instance().setOpMode(static_cast< AT1846S_OpMode >(mode));
|
||||
}
|
||||
|
||||
void AT1846S_setFuncMode(const AT1846S_func_t mode)
|
||||
{
|
||||
// Conversion is safe: the fields in AT1846S_func_t enum and in
|
||||
// AT1846S_FuncMode enum class concide.
|
||||
AT1846S::instance().setFuncMode(static_cast< AT1846S_FuncMode >(mode));
|
||||
}
|
||||
|
||||
void AT1846S_enableTxCtcss(tone_t freq)
|
||||
{
|
||||
AT1846S::instance().enableTxCtcss(freq);
|
||||
}
|
||||
|
||||
void AT1846S_disableCtcss()
|
||||
{
|
||||
AT1846S::instance().disableCtcss();
|
||||
}
|
||||
|
||||
int16_t AT1846S_readRSSI()
|
||||
{
|
||||
return AT1846S::instance().readRSSI();
|
||||
}
|
||||
|
||||
void AT1846S_setPgaGain(const uint8_t gain)
|
||||
{
|
||||
AT1846S::instance().setPgaGain(gain);
|
||||
}
|
||||
|
||||
void AT1846S_setMicGain(const uint8_t gain)
|
||||
{
|
||||
AT1846S::instance().setMicGain(gain);
|
||||
}
|
||||
|
||||
void AT1846S_setAgcGain(const uint8_t gain)
|
||||
{
|
||||
AT1846S::instance().setAgcGain(gain);
|
||||
}
|
||||
|
||||
void AT1846S_setTxDeviation(const uint16_t dev)
|
||||
{
|
||||
AT1846S::instance().setTxDeviation(dev);
|
||||
}
|
||||
|
||||
void AT1846S_setRxAudioGain(const uint8_t gainWb, const uint8_t gainNb)
|
||||
{
|
||||
AT1846S::instance().setRxAudioGain(gainWb, gainNb);
|
||||
}
|
||||
|
||||
void AT1846S_setNoise1Thresholds(const uint8_t highTsh, const uint8_t lowTsh)
|
||||
{
|
||||
AT1846S::instance().setNoise1Thresholds(highTsh, lowTsh);
|
||||
}
|
||||
|
||||
void AT1846S_setNoise2Thresholds(const uint8_t highTsh, const uint8_t lowTsh)
|
||||
{
|
||||
AT1846S::instance().setNoise2Thresholds(highTsh, lowTsh);
|
||||
}
|
||||
|
||||
void AT1846S_setRssiThresholds(const uint8_t highTsh, const uint8_t lowTsh)
|
||||
{
|
||||
AT1846S::instance().setRssiThresholds(highTsh, lowTsh);
|
||||
}
|
||||
|
||||
void AT1846S_setPaDrive(const uint8_t value)
|
||||
{
|
||||
AT1846S::instance().setPaDrive(value);
|
||||
}
|
||||
|
||||
void AT1846S_setAnalogSqlThresh(const uint8_t thresh)
|
||||
{
|
||||
AT1846S::instance().setAnalogSqlThresh(thresh);
|
||||
}
|
||||
|
|
@ -1,189 +0,0 @@
|
|||
/***************************************************************************
|
||||
* Copyright (C) 2020 - 2023 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 <http://www.gnu.org/licenses/> *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef AT1846S_WRAPPER_H
|
||||
#define AT1846S_WRAPPER_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <datatypes.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* This file provides a C-callable wrapper for the AT1846S driver, which is
|
||||
* written in C++.
|
||||
*/
|
||||
|
||||
/**
|
||||
* \enum AT1846S_bw_t Enumeration type defining the bandwidth settings supported
|
||||
* by the AT1846S chip.
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
AT1846S_BW_12P5 = 0,
|
||||
AT1846S_BW_25 = 1
|
||||
}
|
||||
AT1846S_bw_t;
|
||||
|
||||
/**
|
||||
* \enum AT1846S_op_t Enumeration type defining the possible operating mode
|
||||
* configurations for the AT1846S chip.
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
AT1846S_OP_FM = 0,
|
||||
AT1846S_OP_DMR = 1
|
||||
}
|
||||
AT1846S_op_t;
|
||||
|
||||
/**
|
||||
* \enum AT1846S_func_t Enumeration type defining the AT1846S functional modes.
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
AT1846S_OFF = 0,
|
||||
AT1846S_RX = 1,
|
||||
AT1846S_TX = 2,
|
||||
}
|
||||
AT1846S_func_t;
|
||||
|
||||
/**
|
||||
* Initialise the AT146S chip.
|
||||
*/
|
||||
void AT1846S_init();
|
||||
|
||||
/**
|
||||
* Shut down the AT146S chip.
|
||||
*/
|
||||
void AT1846S_terminate();
|
||||
|
||||
/**
|
||||
* Set the VCO frequency, either for transmission or reception.
|
||||
* @param freq: VCO frequency.
|
||||
*/
|
||||
void AT1846S_setFrequency(const freq_t freq);
|
||||
|
||||
/**
|
||||
* Set the transmission and reception bandwidth.
|
||||
* @param band: bandwidth, from \enum AT1846S_bw_t.
|
||||
*/
|
||||
void AT1846S_setBandwidth(const AT1846S_bw_t band);
|
||||
|
||||
/**
|
||||
* Set the operating mode.
|
||||
* @param mode: operating mode, from \enum AT1846S_op_t.
|
||||
*/
|
||||
void AT1846S_setOpMode(const AT1846S_op_t mode);
|
||||
|
||||
/**
|
||||
* Set the functional mode.
|
||||
* @param mode: functional mode, from \enum AT1846S_func_t.
|
||||
*/
|
||||
void AT1846S_setFuncMode(const AT1846S_func_t mode);
|
||||
|
||||
/**
|
||||
* Enable the CTCSS tone for transmission.
|
||||
* @param freq: CTCSS tone frequency.
|
||||
*/
|
||||
void AT1846S_enableTxCtcss(const tone_t freq);
|
||||
|
||||
/**
|
||||
* Turn off both transmission CTCSS tone and reception CTCSS tone decoding.
|
||||
*/
|
||||
void AT1846S_disableCtcss();
|
||||
|
||||
/**
|
||||
* Get current RSSI value.
|
||||
* @return current RSSI in dBm.
|
||||
*/
|
||||
int16_t AT1846S_readRSSI();
|
||||
|
||||
/**
|
||||
* Set the gain of internal programmable gain amplifier.
|
||||
* @param gain: PGA gain.
|
||||
*/
|
||||
void AT1846S_setPgaGain(const uint8_t gain);
|
||||
|
||||
/**
|
||||
* Set microphone gain for transmission.
|
||||
* @param gain: microphone gain.
|
||||
*/
|
||||
void AT1846S_setMicGain(const uint8_t gain);
|
||||
|
||||
/**
|
||||
* Set maximum FM transmission deviation.
|
||||
* @param dev: maximum allowed deviation.
|
||||
*/
|
||||
void AT1846S_setTxDeviation(const uint16_t dev);
|
||||
|
||||
/**
|
||||
* Set the gain for internal automatic gain control system.
|
||||
* @param gain: AGC gain.
|
||||
*/
|
||||
void AT1846S_setAgcGain(const uint8_t gain);
|
||||
|
||||
/**
|
||||
* Set audio gain for recepion.
|
||||
* @param gainWb: gain for wideband Rx (25kHz).
|
||||
* @param gainNb: gain for narrowband Rx (12.5kHz).
|
||||
*/
|
||||
void AT1846S_setRxAudioGain(const uint8_t gainWb, const uint8_t gainNb);
|
||||
|
||||
/**
|
||||
* Set noise1 thresholds for squelch opening and closing.
|
||||
* @param highTsh: upper threshold.
|
||||
* @param lowTsh: lower threshold.
|
||||
*/
|
||||
void AT1846S_setNoise1Thresholds(const uint8_t highTsh, const uint8_t lowTsh);
|
||||
|
||||
/**
|
||||
* Set noise2 thresholds for squelch opening and closing.
|
||||
* @param highTsh: upper threshold.
|
||||
* @param lowTsh: lower threshold.
|
||||
*/
|
||||
void AT1846S_setNoise2Thresholds(const uint8_t highTsh, const uint8_t lowTsh);
|
||||
|
||||
/**
|
||||
* Set RSSI thresholds for squelch opening and closing.
|
||||
* @param highTsh: upper threshold.
|
||||
* @param lowTsh: lower threshold.
|
||||
*/
|
||||
void AT1846S_setRssiThresholds(const uint8_t highTsh, const uint8_t lowTsh);
|
||||
|
||||
/**
|
||||
* Set PA drive control bits.
|
||||
* @param value: PA drive value.
|
||||
*/
|
||||
void AT1846S_setPaDrive(const uint8_t value);
|
||||
|
||||
/**
|
||||
* Set threshold for analog FM squelch opening.
|
||||
* @param thresh: squelch threshold.
|
||||
*/
|
||||
void AT1846S_setAnalogSqlThresh(const uint8_t thresh);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* AT1846S_WRAPPER_H */
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
/***************************************************************************
|
||||
* Copyright (C) 2021 - 2023 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 <http://www.gnu.org/licenses/> *
|
||||
***************************************************************************/
|
||||
|
||||
#include "HR_C5000_wrapper.h"
|
||||
#include "HR_C5000.h"
|
||||
|
||||
void C5000_init()
|
||||
{
|
||||
HR_C5000::instance().init();
|
||||
}
|
||||
|
||||
void C5000_terminate()
|
||||
{
|
||||
HR_C5000::instance().terminate();
|
||||
}
|
||||
|
||||
void C5000_setModOffset(uint8_t offset)
|
||||
{
|
||||
HR_C5000::instance().setModOffset(offset);
|
||||
}
|
||||
|
||||
void C5000_setModAmplitude(uint8_t iAmp, uint8_t qAmp)
|
||||
{
|
||||
HR_C5000::instance().setModAmplitude(iAmp, qAmp);
|
||||
}
|
||||
|
||||
void C5000_setModFactor(uint8_t mf)
|
||||
{
|
||||
HR_C5000::instance().setModFactor(mf);
|
||||
}
|
||||
|
||||
void C5000_dmrMode()
|
||||
{
|
||||
HR_C5000::instance().dmrMode();
|
||||
}
|
||||
|
||||
void C5000_fmMode()
|
||||
{
|
||||
HR_C5000::instance().fmMode();
|
||||
}
|
||||
|
||||
void C5000_startAnalogTx()
|
||||
{
|
||||
HR_C5000::instance().startAnalogTx(TxAudioSource::MIC, FmConfig::PREEMPH_EN |
|
||||
FmConfig::BW_25kHz);
|
||||
}
|
||||
|
||||
void C5000_stopAnalogTx()
|
||||
{
|
||||
HR_C5000::instance().stopAnalogTx();
|
||||
}
|
||||
|
|
@ -1,96 +0,0 @@
|
|||
/***************************************************************************
|
||||
* Copyright (C) 2021 - 2023 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 <http://www.gnu.org/licenses/> *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef HRC5000_WRAPPER_H
|
||||
#define HRC5000_WRAPPER_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Driver for HR_C5000 "baseband" chip.
|
||||
*
|
||||
* WARNING: on MD3x0 devices the PLL and DMR chips share the SPI MOSI line,
|
||||
* thus particular care has to be put to avoid them stomping reciprocally.
|
||||
* This driver does not make any check if a SPI transfer is already in progress,
|
||||
* deferring the correct bus management to higher level modules. However,
|
||||
* a function returning true if the bus is currently in use by this driver is
|
||||
* provided.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Initialise the HR_C5000 driver.
|
||||
*/
|
||||
void C5000_init();
|
||||
|
||||
/**
|
||||
* Terminate the HR_C5000 driver.
|
||||
*/
|
||||
void C5000_terminate();
|
||||
|
||||
/**
|
||||
* Set value for two-point modulation offset adjustment. This value usually is
|
||||
* stored in radio calibration data.
|
||||
* @param offset: value for modulation offset adjustment.
|
||||
*/
|
||||
void C5000_setModOffset(uint8_t offset);
|
||||
|
||||
/**
|
||||
* Set values for two-point modulation amplitude adjustment. These values
|
||||
* usually are stored in radio calibration data.
|
||||
* @param iMag: value for modulation offset adjustment.
|
||||
*/
|
||||
void C5000_setModAmplitude(uint8_t iAmp, uint8_t qAmp);
|
||||
|
||||
/**
|
||||
* Set value for FM-mode modulation factor, a value dependent on bandwidth.
|
||||
* @param mf: value for FM modulation factor.
|
||||
*/
|
||||
void C5000_setModFactor(uint8_t mf);
|
||||
|
||||
/**
|
||||
* Configure chipset for DMR operation.
|
||||
*/
|
||||
void C5000_dmrMode();
|
||||
|
||||
/**
|
||||
* Configure chipset for analog FM operation.
|
||||
*/
|
||||
void C5000_fmMode();
|
||||
|
||||
/**
|
||||
* Start analog FM transmission.
|
||||
*/
|
||||
void C5000_startAnalogTx();
|
||||
|
||||
/**
|
||||
* Stop analog FM transmission.
|
||||
*/
|
||||
void C5000_stopAnalogTx();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // HRC5000_WRAPPER_H
|
||||
|
|
@ -1,78 +0,0 @@
|
|||
/***************************************************************************
|
||||
* Copyright (C) 2021 - 2023 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 <http://www.gnu.org/licenses/> *
|
||||
***************************************************************************/
|
||||
|
||||
#include "HR_C6000_wrapper.h"
|
||||
#include "HR_C6000.h"
|
||||
|
||||
void C6000_init()
|
||||
{
|
||||
HR_C6000::instance().init();
|
||||
}
|
||||
|
||||
void C6000_terminate()
|
||||
{
|
||||
HR_C6000::instance().terminate();
|
||||
}
|
||||
|
||||
void C6000_setModOffset(uint16_t offset)
|
||||
{
|
||||
HR_C6000::instance().setModOffset(offset);
|
||||
}
|
||||
|
||||
void C6000_setModAmplitude(uint8_t iAmp, uint8_t qAmp)
|
||||
{
|
||||
HR_C6000::instance().setModAmplitude(iAmp, qAmp);
|
||||
}
|
||||
|
||||
void C6000_setMod2Bias(uint8_t bias)
|
||||
{
|
||||
HR_C6000::instance().writeCfgRegister(0x04, bias);
|
||||
}
|
||||
|
||||
void C6000_setModFactor(uint8_t mf)
|
||||
{
|
||||
HR_C6000::instance().setModFactor(mf);
|
||||
}
|
||||
|
||||
void C6000_setDacGain(uint8_t value)
|
||||
{
|
||||
HR_C6000::instance().setDacGain(value);
|
||||
}
|
||||
|
||||
void C6000_dmrMode()
|
||||
{
|
||||
HR_C6000::instance().dmrMode();
|
||||
}
|
||||
|
||||
void C6000_fmMode()
|
||||
{
|
||||
HR_C6000::instance().fmMode();
|
||||
}
|
||||
|
||||
void C6000_startAnalogTx()
|
||||
{
|
||||
HR_C6000::instance().startAnalogTx(TxAudioSource::MIC, FmConfig::PREEMPH_EN |
|
||||
FmConfig::BW_25kHz);
|
||||
}
|
||||
|
||||
void C6000_stopAnalogTx()
|
||||
{
|
||||
HR_C6000::instance().stopAnalogTx();
|
||||
}
|
||||
|
|
@ -1,97 +0,0 @@
|
|||
/***************************************************************************
|
||||
* Copyright (C) 2021 - 2023 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 <http://www.gnu.org/licenses/> *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef HRC6000_WRAPPER_H
|
||||
#define HRC6000_WRAPPER_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Initialise the HR_C6000 driver.
|
||||
*/
|
||||
void C6000_init();
|
||||
|
||||
/**
|
||||
* Terminate the HR_C6000 driver.
|
||||
*/
|
||||
void C6000_terminate();
|
||||
|
||||
/**
|
||||
* Set value for two-point modulation offset adjustment. This value usually is
|
||||
* stored in radio calibration data.
|
||||
* @param offset: value for modulation offset adjustment.
|
||||
*/
|
||||
void C6000_setModOffset(uint16_t offset);
|
||||
|
||||
/**
|
||||
* Set values for two-point modulation amplitude adjustment. These values
|
||||
* usually are stored in radio calibration data.
|
||||
* @param iMag: value for modulation offset adjustment.
|
||||
*/
|
||||
void C6000_setModAmplitude(uint8_t iAmp, uint8_t qAmp);
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
void C6000_setMod2Bias(uint8_t bias);
|
||||
|
||||
/**
|
||||
* Set value for FM-mode modulation factor, a value dependent on bandwidth.
|
||||
* @param mf: value for FM modulation factor.
|
||||
*/
|
||||
void C6000_setModFactor(uint8_t mf);
|
||||
|
||||
/**
|
||||
* Configure the gain of lineout DAC stage. Allowed range is 1 - 31 and each
|
||||
* step corresponds to a variation of 1.5dB.
|
||||
* @param value: gain for the DAC stage.
|
||||
*/
|
||||
void C6000_setDacGain(uint8_t value);
|
||||
|
||||
/**
|
||||
* Configure chipset for DMR operation.
|
||||
*/
|
||||
void C6000_dmrMode();
|
||||
|
||||
/**
|
||||
* Configure chipset for analog FM operation.
|
||||
*/
|
||||
void C6000_fmMode();
|
||||
|
||||
/**
|
||||
* Start analog FM transmission.
|
||||
*/
|
||||
void C6000_startAnalogTx();
|
||||
|
||||
/**
|
||||
* Stop analog FM transmission.
|
||||
*/
|
||||
void C6000_stopAnalogTx();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // HRC6000_WRAPPER_H
|
||||
Loading…
Reference in New Issue