Paparazzi UAS  v5.18.0_stable
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 
RC_SPI_THROTTLE
@ RC_SPI_THROTTLE
Definition: cc2500_rx_spi.h:65
RC_SPI_AUX13
@ RC_SPI_AUX13
Definition: cc2500_rx_spi.h:79
rc_spi_aetr_e
rc_spi_aetr_e
Definition: cc2500_rx_spi.h:62
RX_SPI_SFHSS
@ RX_SPI_SFHSS
Definition: cc2500_rx_spi.h:48
RX_SPI_NRF24_CX10
@ RX_SPI_NRF24_CX10
Definition: cc2500_rx_spi.h:39
RX_SPI_NRF24_INAV
@ RX_SPI_NRF24_INAV
Definition: cc2500_rx_spi.h:42
RX_SPI_NRF24_SYMA_X5C
@ RX_SPI_NRF24_SYMA_X5C
Definition: cc2500_rx_spi.h:38
RX_SPI_FRSKY_D
@ RX_SPI_FRSKY_D
Definition: cc2500_rx_spi.h:43
RX_SPI_ROCESSING_REQUIRED
@ RX_SPI_ROCESSING_REQUIRED
Definition: cc2500_rx_spi.h:58
RC_SPI_AUX5
@ RC_SPI_AUX5
Definition: cc2500_rx_spi.h:71
RX_SPI_A7105_FLYSKY
@ RX_SPI_A7105_FLYSKY
Definition: cc2500_rx_spi.h:45
RX_SPI_RECEIVED_BIND
@ RX_SPI_RECEIVED_BIND
Definition: cc2500_rx_spi.h:56
RC_SPI_AUX10
@ RC_SPI_AUX10
Definition: cc2500_rx_spi.h:76
RC_SPI_AUX3
@ RC_SPI_AUX3
Definition: cc2500_rx_spi.h:69
RX_SPI_FRSKY_X_LBT
@ RX_SPI_FRSKY_X_LBT
Definition: cc2500_rx_spi.h:50
RC_SPI_ROLL
@ RC_SPI_ROLL
Definition: cc2500_rx_spi.h:63
rxRuntimeConfig
rxRuntimeConfig_t rxRuntimeConfig
Definition: cc2500_rx.c:131
RC_SPI_AUX6
@ RC_SPI_AUX6
Definition: cc2500_rx_spi.h:72
RC_SPI_AUX2
@ RC_SPI_AUX2
Definition: cc2500_rx_spi.h:68
RC_SPI_AUX7
@ RC_SPI_AUX7
Definition: cc2500_rx_spi.h:73
rxSpiInit
bool rxSpiInit(const rxSpiConfig_t *rxSpiConfig, rxRuntimeConfig_t *rxRuntimeConfig)
Definition: cc2500_rx_spi.c:228
RX_SPI_NRF24_KN
@ RX_SPI_NRF24_KN
Definition: cc2500_rx_spi.h:47
cc2500_settings.h
RX_SPI_NRF24_SYMA_X
@ RX_SPI_NRF24_SYMA_X
Definition: cc2500_rx_spi.h:37
RX_SPI_NRF24_CX10A
@ RX_SPI_NRF24_CX10A
Definition: cc2500_rx_spi.h:40
rxSpiConfig
const rxSpiConfig_t * rxSpiConfig(void)
Definition: cc2500_settings.c:87
cc2500_rx.h
RX_SPI_RECEIVED_DATA
@ RX_SPI_RECEIVED_DATA
Definition: cc2500_rx_spi.h:57
RX_SPI_NRF24_V202_250K
@ RX_SPI_NRF24_V202_250K
Definition: cc2500_rx_spi.h:35
RC_SPI_AUX9
@ RC_SPI_AUX9
Definition: cc2500_rx_spi.h:75
RC_SPI_PITCH
@ RC_SPI_PITCH
Definition: cc2500_rx_spi.h:64
RC_SPI_AUX11
@ RC_SPI_AUX11
Definition: cc2500_rx_spi.h:77
RC_SPI_AUX14
@ RC_SPI_AUX14
Definition: cc2500_rx_spi.h:80
rxRuntimeConfig_s
Definition: cc2500_rx.h:142
RX_SPI_RECEIVED_NONE
@ RX_SPI_RECEIVED_NONE
Definition: cc2500_rx_spi.h:55
RC_SPI_AUX4
@ RC_SPI_AUX4
Definition: cc2500_rx_spi.h:70
RC_SPI_AUX1
@ RC_SPI_AUX1
Definition: cc2500_rx_spi.h:67
RC_SPI_AUX12
@ RC_SPI_AUX12
Definition: cc2500_rx_spi.h:78
rx_spi_protocol_e
rx_spi_protocol_e
Definition: cc2500_rx_spi.h:34
RX_SPI_PROTOCOL_COUNT
@ RX_SPI_PROTOCOL_COUNT
Definition: cc2500_rx_spi.h:51
RX_SPI_CYRF6936_DSM
@ RX_SPI_CYRF6936_DSM
Definition: cc2500_rx_spi.h:49
RX_SPI_FRSKY_X
@ RX_SPI_FRSKY_X
Definition: cc2500_rx_spi.h:44
rx_spi_received_e
rx_spi_received_e
Definition: cc2500_rx_spi.h:54
rxSpiConfig_s
Definition: cc2500_settings.h:96
RC_SPI_YAW
@ RC_SPI_YAW
Definition: cc2500_rx_spi.h:66
RX_SPI_A7105_FLYSKY_2A
@ RX_SPI_A7105_FLYSKY_2A
Definition: cc2500_rx_spi.h:46
RX_SPI_NRF24_H8_3D
@ RX_SPI_NRF24_H8_3D
Definition: cc2500_rx_spi.h:41
RC_SPI_AUX8
@ RC_SPI_AUX8
Definition: cc2500_rx_spi.h:74
cc2500_compat.h
RX_SPI_NRF24_V202_1M
@ RX_SPI_NRF24_V202_1M
Definition: cc2500_rx_spi.h:36