Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
cc2500_frsky_shared.h
Go to the documentation of this file.
1 // betaflight/src/main/rx/cc2500_frsky_shared.h @ cb66ee0
2 /*
3  * This file is part of Cleanflight and Betaflight.
4  *
5  * Cleanflight and Betaflight are free software. You can redistribute
6  * this software and/or modify this software under the terms of the
7  * GNU General Public License as published by the Free Software
8  * Foundation, either version 3 of the License, or (at your option)
9  * any later version.
10  *
11  * Cleanflight and Betaflight are distributed in the hope that they
12  * will be useful, but WITHOUT ANY WARRANTY; without even the implied
13  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14  * See the GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this software.
18  *
19  * If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #pragma once
23 
24 //#include "rx/rx_spi.h"
25 
26 #define MAX_MISSING_PKT 100
27 
28 #define DEBUG_DATA_ERROR_COUNT 0
29 #define DEBUG_DATA_MISSING_PACKETS 1
30 #define DEBUG_DATA_BAD_FRAME 2
31 
32 
33 #define SYNC_DELAY_MAX 9000
34 
35 #define MAX_MISSING_PKT 100
36 
37 enum {
49 };
50 
51 extern uint8_t listLength;
53 extern timeDelta_t timeoutUs;
54 
55 void initialiseData(bool inBindState);
56 
57 void nextChannel(uint8_t skip);
STATE_INIT
@ STATE_INIT
Definition: cc2500_frsky_shared.h:38
missingPackets
uint32_t missingPackets
Definition: cc2500_frsky_shared.c:67
STATE_BIND_BINDING2
@ STATE_BIND_BINDING2
Definition: cc2500_frsky_shared.h:42
timeDelta_t
int32_t timeDelta_t
Definition: cc2500_compat.h:91
uint32_t
unsigned long uint32_t
Definition: types.h:18
STATE_STARTING
@ STATE_STARTING
Definition: cc2500_frsky_shared.h:44
listLength
uint8_t listLength
Definition: cc2500_frsky_shared.c:72
STATE_BIND_BINDING1
@ STATE_BIND_BINDING1
Definition: cc2500_frsky_shared.h:41
timeoutUs
timeDelta_t timeoutUs
Definition: cc2500_frsky_shared.c:68
STATE_BIND_COMPLETE
@ STATE_BIND_COMPLETE
Definition: cc2500_frsky_shared.h:43
uint8_t
unsigned char uint8_t
Definition: types.h:14
nextChannel
void nextChannel(uint8_t skip)
Definition: cc2500_frsky_shared.c:412
STATE_DATA
@ STATE_DATA
Definition: cc2500_frsky_shared.h:46
STATE_TELEMETRY
@ STATE_TELEMETRY
Definition: cc2500_frsky_shared.h:47
STATE_UPDATE
@ STATE_UPDATE
Definition: cc2500_frsky_shared.h:45
STATE_RESUME
@ STATE_RESUME
Definition: cc2500_frsky_shared.h:48
STATE_BIND_TUNING
@ STATE_BIND_TUNING
Definition: cc2500_frsky_shared.h:40
STATE_BIND
@ STATE_BIND
Definition: cc2500_frsky_shared.h:39
initialiseData
void initialiseData(bool inBindState)
Definition: cc2500_frsky_shared.c:169