Paparazzi UAS
v5.18.0_stable
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
34
void
rxSpiCommonIOInit
(
const
rxSpiConfig_t
*
rxSpiConfig
);
35
36
void
rxSpiLedOn
(
void
);
37
void
rxSpiLedOff
(
void
);
38
void
rxSpiLedToggle
(
void
);
39
void
rxSpiLedBlink
(
timeMs_t
blinkMs);
40
void
rxSpiLedBlinkRxLoss
(
rx_spi_received_e
result);
41
void
rxSpiLedBlinkBind
(
void
);
42
43
void
rxSpiBind
(
void
);
44
bool
rxSpiCheckBindRequested
(
bool
reset
);
rxSpiCheckBindRequested
bool rxSpiCheckBindRequested(bool reset)
Definition:
cc2500_rx_spi_common.c:128
cc2500_rx_spi.h
rxSpiLedBlink
void rxSpiLedBlink(timeMs_t blinkMs)
Definition:
cc2500_rx_spi_common.c:88
rxSpiLedOn
void rxSpiLedOn(void)
Definition:
cc2500_rx_spi_common.c:67
rxSpiConfig
const rxSpiConfig_t * rxSpiConfig(void)
Definition:
cc2500_settings.c:87
rxSpiCommonIOInit
void rxSpiCommonIOInit(const rxSpiConfig_t *rxSpiConfig)
Definition:
cc2500_rx_spi_common.c:45
rxSpiLedToggle
void rxSpiLedToggle(void)
Definition:
cc2500_rx_spi_common.c:81
rxSpiLedOff
void rxSpiLedOff(void)
Definition:
cc2500_rx_spi_common.c:74
rxSpiLedBlinkBind
void rxSpiLedBlinkBind(void)
Definition:
cc2500_rx_spi_common.c:118
reset
void reset(void)
rxSpiBind
void rxSpiBind(void)
Definition:
cc2500_rx_spi_common.c:123
rxSpiLedBlinkRxLoss
void rxSpiLedBlinkRxLoss(rx_spi_received_e result)
Definition:
cc2500_rx_spi_common.c:100
rx_spi_received_e
rx_spi_received_e
Definition:
cc2500_rx_spi.h:54
rxSpiConfig_s
Definition:
cc2500_settings.h:96
cc2500_compat.h
timeMs_t
uint32_t timeMs_t
Definition:
cc2500_compat.h:92
sw
airborne
subsystems
radio_control
cc2500_frsky
cc2500_rx_spi_common.h
Generated on Tue Feb 1 2022 13:51:18 for Paparazzi UAS by
1.8.17