Paparazzi UAS  v5.17_devel-24-g2ae834f
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
cc2500_rx_spi_common.c File Reference
#include "cc2500_compat.h"
#include "cc2500_rx_spi_common.h"
#include <stdbool.h>
#include <stdint.h>
+ Include dependency graph for cc2500_rx_spi_common.c:

Go to the source code of this file.

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)
 

Variables

static IO_t ledPin
 
static bool ledInversion = false
 
static IO_t bindPin
 
static bool bindRequested
 
static bool lastBindPinStatus
 

Function Documentation

void rxSpiBind ( void  )

Definition at line 123 of file cc2500_rx_spi_common.c.

References bindRequested.

bool rxSpiCheckBindRequested ( bool  reset)

Definition at line 128 of file cc2500_rx_spi_common.c.

References bindRequested, IORead, and lastBindPinStatus.

Referenced by frSkySpiDataReceived(), and frSkyXHandlePacket().

+ Here is the caller graph for this function:

void rxSpiCommonIOInit ( const rxSpiConfig_t rxSpiConfig)

Definition at line 45 of file cc2500_rx_spi_common.c.

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

Referenced by frSkySpiInit().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

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:

void rxSpiLedBlinkRxLoss ( rx_spi_received_e  result)

Definition at line 100 of file cc2500_rx_spi_common.c.

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

+ Here is the call graph for this function:

void rxSpiLedOff ( void  )

Definition at line 74 of file cc2500_rx_spi_common.c.

References IOHi, IOLo, and ledInversion.

Referenced by rxSpiCommonIOInit().

+ Here is the caller graph for this function:

void rxSpiLedOn ( void  )

Definition at line 67 of file cc2500_rx_spi_common.c.

References IOHi, IOLo, and ledInversion.

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

+ Here is the caller graph for this function:

void rxSpiLedToggle ( void  )

Definition at line 81 of file cc2500_rx_spi_common.c.

References IOToggle.

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

+ Here is the caller graph for this function:

Variable Documentation

IO_t bindPin
static

Definition at line 41 of file cc2500_rx_spi_common.c.

bool bindRequested
static

Definition at line 42 of file cc2500_rx_spi_common.c.

Referenced by rxSpiBind(), and rxSpiCheckBindRequested().

bool lastBindPinStatus
static

Definition at line 43 of file cc2500_rx_spi_common.c.

Referenced by rxSpiCheckBindRequested(), and rxSpiCommonIOInit().

bool ledInversion = false
static

Definition at line 39 of file cc2500_rx_spi_common.c.

Referenced by rxSpiCommonIOInit(), rxSpiLedOff(), and rxSpiLedOn().

IO_t ledPin
static

Definition at line 38 of file cc2500_rx_spi_common.c.