Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
cc2500_rx_spi_common.h
Go to the documentation of this file.
1 #include "cc2500_compat.h"
2 
3 #include "cc2500_rx_spi.h"
4 
5 // betaflight/src/main/rx/rx_spi_common.h @ c88a5a3
6 /*
7  * This file is part of Cleanflight and Betaflight.
8  *
9  * Cleanflight and Betaflight are free software. You can redistribute
10  * this software and/or modify this software under the terms of the
11  * GNU General Public License as published by the Free Software
12  * Foundation, either version 3 of the License, or (at your option)
13  * any later version.
14  *
15  * Cleanflight and Betaflight are distributed in the hope that they
16  * will be useful, but WITHOUT ANY WARRANTY; without even the implied
17  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18  * See the GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this software.
22  *
23  * If not, see <http://www.gnu.org/licenses/>.
24  */
25 
26 #pragma once
27 
28 //#include "rx/rx_spi.h"
29 
30 #define INTERVAL_RX_LOSS_MS 1000
31 #define INTERVAL_RX_BIND_MS 250
32 #define RX_LOSS_COUNT 1000
33 
35 
36 void rxSpiLedOn(void);
37 void rxSpiLedOff(void);
38 void rxSpiLedToggle(void);
39 void rxSpiLedBlink(timeMs_t blinkMs);
41 void rxSpiLedBlinkBind(void);
42 
43 void rxSpiBind(void);
static uint8_t reset[3]
Definition: baro_MS5534A.c:83
uint32_t timeMs_t
Definition: cc2500_compat.h:92
rx_spi_received_e
Definition: cc2500_rx_spi.h:54
void rxSpiLedOn(void)
void rxSpiLedOff(void)
void rxSpiLedBlinkRxLoss(rx_spi_received_e result)
void rxSpiBind(void)
void rxSpiLedToggle(void)
void rxSpiCommonIOInit(const rxSpiConfig_t *rxSpiConfig)
void rxSpiLedBlinkBind(void)
void rxSpiLedBlink(timeMs_t blinkMs)
bool rxSpiCheckBindRequested(bool reset)
const rxSpiConfig_t * rxSpiConfig(void)