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)
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/>.
23 #include "drivers/exti.h"
26 #include "pg/rx_spi.h"
30 // Used in MSP. Append at end.
32 RX_SPI_NRF24_V202_250K
= 0,
35 RX_SPI_NRF24_SYMA_X5C
,
43 RX_SPI_A7105_FLYSKY_2A
,
50 RX_SPI_FRSKY_X_LBT_V2
,
56 RX_SPI_RECEIVED_NONE
= 0,
57 RX_SPI_RECEIVED_BIND
= (1 << 0),
58 RX_SPI_RECEIVED_DATA
= (1 << 1),
59 RX_SPI_ROCESSING_REQUIRED
= (1 << 2),
62 // RC channels in AETR order
86 extiTrigger_t trigger
;
89 // RC channels as used by deviation
90 #define RC_CHANNEL_RATE RC_SPI_AUX1
91 #define RC_CHANNEL_FLIP RC_SPI_AUX2
92 #define RC_CHANNEL_PICTURE RC_SPI_AUX3
93 #define RC_CHANNEL_VIDEO RC_SPI_AUX4
94 #define RC_CHANNEL_HEADLESS RC_SPI_AUX5
95 #define RC_CHANNEL_RTH RC_SPI_AUX6 // return to home
97 bool rxSpiInit(const rxSpiConfig_t
*rxSpiConfig
, rxRuntimeState_t
*rxRuntimeState
);