Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
cc2500_rx_spi.h
Go to the documentation of this file.
1 #include "cc2500_compat.h"
2 
3 #include "cc2500_settings.h"
4 #include "cc2500_rx.h"
5 
6 // betaflight/src/main/rx/rx_spi.h @ 766c90b
7 /*
8  * This file is part of Cleanflight and Betaflight.
9  *
10  * Cleanflight and Betaflight are free software. You can redistribute
11  * this software and/or modify this software under the terms of the
12  * GNU General Public License as published by the Free Software
13  * Foundation, either version 3 of the License, or (at your option)
14  * any later version.
15  *
16  * Cleanflight and Betaflight are distributed in the hope that they
17  * will be useful, but WITHOUT ANY WARRANTY; without even the implied
18  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19  * See the GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this software.
23  *
24  * If not, see <http://www.gnu.org/licenses/>.
25  */
26 
27 #pragma once
28 
29 //#include "pg/rx.h"
30 //#include "rx/rx.h"
31 //#include "pg/rx_spi.h"
32 
33 // Used in MSP. Append at end.
34 typedef enum {
53 
54 typedef enum {
60 
61 // RC channels in AETR order
62 typedef enum {
82 
83 // RC channels as used by deviation
84 #define RC_CHANNEL_RATE RC_SPI_AUX1
85 #define RC_CHANNEL_FLIP RC_SPI_AUX2
86 #define RC_CHANNEL_PICTURE RC_SPI_AUX3
87 #define RC_CHANNEL_VIDEO RC_SPI_AUX4
88 #define RC_CHANNEL_HEADLESS RC_SPI_AUX5
89 #define RC_CHANNEL_RTH RC_SPI_AUX6 // return to home
90 
rxRuntimeConfig_t rxRuntimeConfig
Definition: cc2500_rx.c:131
rx_spi_protocol_e
Definition: cc2500_rx_spi.h:34
@ RX_SPI_NRF24_INAV
Definition: cc2500_rx_spi.h:42
@ RX_SPI_A7105_FLYSKY_2A
Definition: cc2500_rx_spi.h:46
@ RX_SPI_NRF24_KN
Definition: cc2500_rx_spi.h:47
@ RX_SPI_CYRF6936_DSM
Definition: cc2500_rx_spi.h:49
@ RX_SPI_NRF24_SYMA_X
Definition: cc2500_rx_spi.h:37
@ RX_SPI_NRF24_CX10A
Definition: cc2500_rx_spi.h:40
@ RX_SPI_FRSKY_X
Definition: cc2500_rx_spi.h:44
@ RX_SPI_SFHSS
Definition: cc2500_rx_spi.h:48
@ RX_SPI_NRF24_SYMA_X5C
Definition: cc2500_rx_spi.h:38
@ RX_SPI_NRF24_CX10
Definition: cc2500_rx_spi.h:39
@ RX_SPI_NRF24_H8_3D
Definition: cc2500_rx_spi.h:41
@ RX_SPI_NRF24_V202_1M
Definition: cc2500_rx_spi.h:36
@ RX_SPI_FRSKY_D
Definition: cc2500_rx_spi.h:43
@ RX_SPI_PROTOCOL_COUNT
Definition: cc2500_rx_spi.h:51
@ RX_SPI_FRSKY_X_LBT
Definition: cc2500_rx_spi.h:50
@ RX_SPI_A7105_FLYSKY
Definition: cc2500_rx_spi.h:45
@ RX_SPI_NRF24_V202_250K
Definition: cc2500_rx_spi.h:35
bool rxSpiInit(const rxSpiConfig_t *rxSpiConfig, rxRuntimeConfig_t *rxRuntimeConfig)
rc_spi_aetr_e
Definition: cc2500_rx_spi.h:62
@ RC_SPI_AUX4
Definition: cc2500_rx_spi.h:70
@ RC_SPI_AUX3
Definition: cc2500_rx_spi.h:69
@ RC_SPI_AUX11
Definition: cc2500_rx_spi.h:77
@ RC_SPI_AUX7
Definition: cc2500_rx_spi.h:73
@ RC_SPI_THROTTLE
Definition: cc2500_rx_spi.h:65
@ RC_SPI_AUX12
Definition: cc2500_rx_spi.h:78
@ RC_SPI_YAW
Definition: cc2500_rx_spi.h:66
@ RC_SPI_AUX6
Definition: cc2500_rx_spi.h:72
@ RC_SPI_AUX14
Definition: cc2500_rx_spi.h:80
@ RC_SPI_AUX2
Definition: cc2500_rx_spi.h:68
@ RC_SPI_AUX13
Definition: cc2500_rx_spi.h:79
@ RC_SPI_ROLL
Definition: cc2500_rx_spi.h:63
@ RC_SPI_AUX8
Definition: cc2500_rx_spi.h:74
@ RC_SPI_AUX9
Definition: cc2500_rx_spi.h:75
@ RC_SPI_AUX5
Definition: cc2500_rx_spi.h:71
@ RC_SPI_AUX10
Definition: cc2500_rx_spi.h:76
@ RC_SPI_AUX1
Definition: cc2500_rx_spi.h:67
@ RC_SPI_PITCH
Definition: cc2500_rx_spi.h:64
rx_spi_received_e
Definition: cc2500_rx_spi.h:54
@ RX_SPI_RECEIVED_NONE
Definition: cc2500_rx_spi.h:55
@ RX_SPI_ROCESSING_REQUIRED
Definition: cc2500_rx_spi.h:58
@ RX_SPI_RECEIVED_DATA
Definition: cc2500_rx_spi.h:57
@ RX_SPI_RECEIVED_BIND
Definition: cc2500_rx_spi.h:56
const rxSpiConfig_t * rxSpiConfig(void)