Removed excess trailing spaces before new lines on licenses.
[betaflight.git] / src / main / io / vtx_tramp.h
blob83500165604f6847d0d1d7896c489b0d96fb4579
1 /*
2 * This file is part of Cleanflight and Betaflight.
4 * Cleanflight and Betaflight are free software. You can redistribute
5 * this software and/or modify this software under the terms of the
6 * GNU General Public License as published by the Free Software
7 * Foundation, either version 3 of the License, or (at your option)
8 * any later version.
10 * Cleanflight and Betaflight are distributed in the hope that they
11 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
12 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this software.
18 * If not, see <http://www.gnu.org/licenses/>.
21 #pragma once
23 #include <stdint.h>
25 #define VTX_TRAMP_MIN_BAND 1
26 #define VTX_TRAMP_MAX_BAND 5
27 #define VTX_TRAMP_MIN_CHANNEL 1
28 #define VTX_TRAMP_MAX_CHANNEL 8
30 #define VTX_TRAMP_BAND_COUNT (VTX_TRAMP_MAX_BAND - VTX_TRAMP_MIN_BAND + 1)
31 #define VTX_TRAMP_CHANNEL_COUNT (VTX_TRAMP_MAX_CHANNEL - VTX_TRAMP_MIN_CHANNEL + 1)
33 #define VTX_TRAMP_POWER_COUNT 5
34 #define VTX_TRAMP_DEFAULT_POWER 1
36 #define VTX_TRAMP_MIN_FREQUENCY_MHZ 5000 //min freq in MHz
37 #define VTX_TRAMP_MAX_FREQUENCY_MHZ 5999 //max freq in MHz
39 extern const uint16_t trampPowerTable[VTX_TRAMP_POWER_COUNT];
40 extern const char * const trampPowerNames[VTX_TRAMP_POWER_COUNT+1];
42 extern uint8_t trampBand;
43 extern uint8_t trampChannel;
44 extern uint16_t trampPower; // Actual transmitting power
45 extern uint8_t trampPitMode;
46 extern uint32_t trampCurFreq;
47 extern uint16_t trampConfiguredPower; // Configured transmitting power
48 extern int16_t trampTemperature;
50 bool vtxTrampInit(void);
51 bool trampCommitChanges(void);
52 void trampSetPitMode(uint8_t onoff);
53 void trampSetBandAndChannel(uint8_t band, uint8_t channel);
54 void trampSetRFPower(uint16_t level);