Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
cc2500_frsky_x.h
Go to the documentation of this file.
1 #include "cc2500_compat.h"
2 
3 // betaflight/src/main/rx/cc2500_frsky_x.h @ 766c90b
4 /*
5  * This file is part of Cleanflight and Betaflight.
6  *
7  * Cleanflight and Betaflight are free software. You can redistribute
8  * this software and/or modify this software under the terms of the
9  * GNU General Public License as published by the Free Software
10  * Foundation, either version 3 of the License, or (at your option)
11  * any later version.
12  *
13  * Cleanflight and Betaflight are distributed in the hope that they
14  * will be useful, but WITHOUT ANY WARRANTY; without even the implied
15  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this software.
20  *
21  * If not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 #pragma once
25 
26 //#include "rx/rx.h"
27 //#include "rx/rx_spi.h"
28 
29 #define RC_CHANNEL_COUNT_FRSKY_X 16
30 
31 void frSkyXSetRcData(uint16_t *rcData, const uint8_t *payload);
32 
static uint8_t protocolState
static rx_spi_protocol_e spiProtocol
void frSkyXInit(const rx_spi_protocol_e spiProtocol)
rx_spi_received_e frSkyXHandlePacket(uint8_t *const packet, uint8_t *const protocolState)
rx_spi_received_e frSkyXProcessFrame(uint8_t *const packet)
void frSkyXSetRcData(uint16_t *rcData, const uint8_t *payload)
int16_t rcData[MAX_SUPPORTED_RC_CHANNEL_COUNT]
Definition: cc2500_rx.c:118
rx_spi_protocol_e
Definition: cc2500_rx_spi.h:34
rx_spi_received_e
Definition: cc2500_rx_spi.h:54
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
Definition: vl53l1_types.h:88
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98