Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
cc2500_rx_spi_common.h File Reference
#include "cc2500_compat.h"
#include "cc2500_rx_spi.h"
+ Include dependency graph for cc2500_rx_spi_common.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INTERVAL_RX_LOSS_MS   1000
 
#define INTERVAL_RX_BIND_MS   250
 
#define RX_LOSS_COUNT   1000
 

Functions

void rxSpiCommonIOInit (const rxSpiConfig_t *rxSpiConfig)
 
void rxSpiLedOn (void)
 
void rxSpiLedOff (void)
 
void rxSpiLedToggle (void)
 
void rxSpiLedBlink (timeMs_t blinkMs)
 
void rxSpiLedBlinkRxLoss (rx_spi_received_e result)
 
void rxSpiLedBlinkBind (void)
 
void rxSpiBind (void)
 
bool rxSpiCheckBindRequested (bool reset)
 

Macro Definition Documentation

◆ INTERVAL_RX_BIND_MS

#define INTERVAL_RX_BIND_MS   250

Definition at line 31 of file cc2500_rx_spi_common.h.

◆ INTERVAL_RX_LOSS_MS

#define INTERVAL_RX_LOSS_MS   1000

Definition at line 30 of file cc2500_rx_spi_common.h.

◆ RX_LOSS_COUNT

#define RX_LOSS_COUNT   1000

Definition at line 32 of file cc2500_rx_spi_common.h.

Function Documentation

◆ rxSpiBind()

void rxSpiBind ( void  )

Definition at line 123 of file cc2500_rx_spi_common.c.

References bindRequested.

◆ rxSpiCheckBindRequested()

bool rxSpiCheckBindRequested ( bool  reset)

Definition at line 128 of file cc2500_rx_spi_common.c.

References bindPin, bindRequested, IORead, lastBindPinStatus, and reset().

Referenced by frSkySpiDataReceived(), and frSkyXHandlePacket().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rxSpiCommonIOInit()

void rxSpiCommonIOInit ( const rxSpiConfig_t rxSpiConfig)

Definition at line 45 of file cc2500_rx_spi_common.c.

References rxSpiConfig_s::bindIoTag, bindPin, IO_NONE, IOCFG_IPU, IOCFG_OUT_PP, IOConfigGPIO, IOGetByTag, IOInit, IORead, lastBindPinStatus, ledInversion, rxSpiConfig_s::ledInversion, rxSpiConfig_s::ledIoTag, ledPin, OWNER_LED, OWNER_RX_SPI_BIND, rxSpiConfig(), and rxSpiLedOff().

Referenced by frSkySpiInit().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rxSpiLedBlink()

void rxSpiLedBlink ( timeMs_t  blinkMs)

Definition at line 88 of file cc2500_rx_spi_common.c.

References millis, and rxSpiLedToggle().

Referenced by rxSpiLedBlinkBind(), and rxSpiLedBlinkRxLoss().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rxSpiLedBlinkBind()

void rxSpiLedBlinkBind ( void  )

Definition at line 118 of file cc2500_rx_spi_common.c.

References INTERVAL_RX_BIND_MS, and rxSpiLedBlink().

+ Here is the call graph for this function:

◆ rxSpiLedBlinkRxLoss()

void rxSpiLedBlinkRxLoss ( rx_spi_received_e  result)

Definition at line 100 of file cc2500_rx_spi_common.c.

References INTERVAL_RX_LOSS_MS, ledPin, RX_LOSS_COUNT, RX_SPI_RECEIVED_DATA, rxSpiLedBlink(), and rxSpiLedOn().

+ Here is the call graph for this function:

◆ rxSpiLedOff()

void rxSpiLedOff ( void  )

Definition at line 74 of file cc2500_rx_spi_common.c.

References IOHi, IOLo, ledInversion, and ledPin.

Referenced by rxSpiCommonIOInit().

+ Here is the caller graph for this function:

◆ rxSpiLedOn()

void rxSpiLedOn ( void  )

Definition at line 67 of file cc2500_rx_spi_common.c.

References IOHi, IOLo, ledInversion, and ledPin.

Referenced by frSkySpiDataReceived(), frSkyXHandlePacket(), and rxSpiLedBlinkRxLoss().

+ Here is the caller graph for this function:

◆ rxSpiLedToggle()

void rxSpiLedToggle ( void  )

Definition at line 81 of file cc2500_rx_spi_common.c.

References IOToggle, and ledPin.

Referenced by frSkySpiDataReceived(), frSkyXHandlePacket(), and rxSpiLedBlink().

+ Here is the caller graph for this function: