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
{
35
RX_SPI_NRF24_V202_250K
= 0,
36
RX_SPI_NRF24_V202_1M
,
37
RX_SPI_NRF24_SYMA_X
,
38
RX_SPI_NRF24_SYMA_X5C
,
39
RX_SPI_NRF24_CX10
,
40
RX_SPI_NRF24_CX10A
,
41
RX_SPI_NRF24_H8_3D
,
42
RX_SPI_NRF24_INAV
,
43
RX_SPI_FRSKY_D
,
44
RX_SPI_FRSKY_X
,
45
RX_SPI_A7105_FLYSKY
,
46
RX_SPI_A7105_FLYSKY_2A
,
47
RX_SPI_NRF24_KN
,
48
RX_SPI_SFHSS
,
49
RX_SPI_CYRF6936_DSM
,
50
RX_SPI_FRSKY_X_LBT
,
51
RX_SPI_PROTOCOL_COUNT
52
}
rx_spi_protocol_e
;
53
54
typedef
enum
{
55
RX_SPI_RECEIVED_NONE
= 0,
56
RX_SPI_RECEIVED_BIND
= (1 << 0),
57
RX_SPI_RECEIVED_DATA
= (1 << 1),
58
RX_SPI_ROCESSING_REQUIRED
= (1 << 2),
59
}
rx_spi_received_e
;
60
61
// RC channels in AETR order
62
typedef
enum
{
63
RC_SPI_ROLL
= 0,
64
RC_SPI_PITCH
,
65
RC_SPI_THROTTLE
,
66
RC_SPI_YAW
,
67
RC_SPI_AUX1
,
68
RC_SPI_AUX2
,
69
RC_SPI_AUX3
,
70
RC_SPI_AUX4
,
71
RC_SPI_AUX5
,
72
RC_SPI_AUX6
,
73
RC_SPI_AUX7
,
74
RC_SPI_AUX8
,
75
RC_SPI_AUX9
,
76
RC_SPI_AUX10
,
77
RC_SPI_AUX11
,
78
RC_SPI_AUX12
,
79
RC_SPI_AUX13
,
80
RC_SPI_AUX14
81
}
rc_spi_aetr_e
;
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
91
bool
rxSpiInit
(
const
rxSpiConfig_t
*
rxSpiConfig
,
rxRuntimeConfig_t
*
rxRuntimeConfig
);
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
sw
airborne
subsystems
radio_control
cc2500_frsky
cc2500_rx_spi.h
Generated on Tue Feb 1 2022 13:51:18 for Paparazzi UAS by
1.8.17