Paparazzi UAS  v7.0_unstable
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);
int32_t timeDelta_t
Definition: cc2500_compat.h:91
timeDelta_t timeoutUs
uint32_t missingPackets
uint8_t listLength
@ STATE_BIND_BINDING1
@ STATE_BIND_BINDING2
@ STATE_DATA
@ STATE_BIND_COMPLETE
@ STATE_TELEMETRY
@ STATE_INIT
@ STATE_STARTING
@ STATE_RESUME
@ STATE_UPDATE
@ STATE_BIND_TUNING
@ STATE_BIND
void nextChannel(uint8_t skip)
void initialiseData(bool inBindState)
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
Definition: vl53l1_types.h:78
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98