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
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
);
reset
static uint8_t reset[3]
Definition:
baro_MS5534A.c:83
cc2500_compat.h
timeMs_t
uint32_t timeMs_t
Definition:
cc2500_compat.h:92
cc2500_rx_spi.h
rx_spi_received_e
rx_spi_received_e
Definition:
cc2500_rx_spi.h:54
rxSpiLedOn
void rxSpiLedOn(void)
Definition:
cc2500_rx_spi_common.c:67
rxSpiLedOff
void rxSpiLedOff(void)
Definition:
cc2500_rx_spi_common.c:74
rxSpiLedBlinkRxLoss
void rxSpiLedBlinkRxLoss(rx_spi_received_e result)
Definition:
cc2500_rx_spi_common.c:100
rxSpiBind
void rxSpiBind(void)
Definition:
cc2500_rx_spi_common.c:123
rxSpiLedToggle
void rxSpiLedToggle(void)
Definition:
cc2500_rx_spi_common.c:81
rxSpiCommonIOInit
void rxSpiCommonIOInit(const rxSpiConfig_t *rxSpiConfig)
Definition:
cc2500_rx_spi_common.c:45
rxSpiLedBlinkBind
void rxSpiLedBlinkBind(void)
Definition:
cc2500_rx_spi_common.c:118
rxSpiLedBlink
void rxSpiLedBlink(timeMs_t blinkMs)
Definition:
cc2500_rx_spi_common.c:88
rxSpiCheckBindRequested
bool rxSpiCheckBindRequested(bool reset)
Definition:
cc2500_rx_spi_common.c:128
rxSpiConfig
const rxSpiConfig_t * rxSpiConfig(void)
Definition:
cc2500_settings.c:87
rxSpiConfig_s
Definition:
cc2500_settings.h:96
sw
airborne
modules
radio_control
cc2500_frsky
cc2500_rx_spi_common.h
Generated on Thu Dec 5 2024 13:05:31 for Paparazzi UAS by
1.9.1