NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
transponder_ir.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TRANSPONDER_BITS_PER_BYTE   10
 
#define TRANSPONDER_DATA_LENGTH   6
 
#define TRANSPONDER_TOGGLES_PER_BIT   11
 
#define TRANSPONDER_GAP_TOGGLES   1
 
#define TRANSPONDER_TOGGLES   (TRANSPONDER_TOGGLES_PER_BIT + TRANSPONDER_GAP_TOGGLES)
 
#define TRANSPONDER_DMA_BUFFER_SIZE   ((TRANSPONDER_TOGGLES_PER_BIT + 1) * TRANSPONDER_BITS_PER_BYTE * TRANSPONDER_DATA_LENGTH)
 
#define BIT_TOGGLE_1   78
 
#define BIT_TOGGLE_0   0
 

Functions

void transponderIrInit (void)
 
void transponderIrDisable (void)
 
void transponderIrHardwareInit (void)
 
void transponderIrDMAEnable (void)
 
void transponderIrWaitForTransmitComplete (void)
 
void transponderIrUpdateData (const uint8_t *transponderData)
 
void transponderIrTransmit (void)
 
bool isTransponderIrReady (void)
 

Variables

uint8_t transponderIrDMABuffer [TRANSPONDER_DMA_BUFFER_SIZE]
 
volatile uint8_t transponderIrDataTransferInProgress
 

Macro Definition Documentation

#define BIT_TOGGLE_0   0
#define BIT_TOGGLE_1   78
#define TRANSPONDER_BITS_PER_BYTE   10
#define TRANSPONDER_DATA_LENGTH   6
#define TRANSPONDER_DMA_BUFFER_SIZE   ((TRANSPONDER_TOGGLES_PER_BIT + 1) * TRANSPONDER_BITS_PER_BYTE * TRANSPONDER_DATA_LENGTH)
#define TRANSPONDER_GAP_TOGGLES   1
#define TRANSPONDER_TOGGLES   (TRANSPONDER_TOGGLES_PER_BIT + TRANSPONDER_GAP_TOGGLES)
#define TRANSPONDER_TOGGLES_PER_BIT   11

Function Documentation

bool isTransponderIrReady ( void  )
void transponderIrDisable ( void  )

Here is the call graph for this function:

void transponderIrDMAEnable ( void  )

Here is the call graph for this function:

void transponderIrHardwareInit ( void  )

Here is the call graph for this function:

void transponderIrInit ( void  )

Here is the call graph for this function:

void transponderIrTransmit ( void  )

Here is the call graph for this function:

void transponderIrUpdateData ( const uint8_t *  transponderData)

Here is the call graph for this function:

void transponderIrWaitForTransmitComplete ( void  )

Variable Documentation

volatile uint8_t transponderIrDataTransferInProgress
uint8_t transponderIrDMABuffer[TRANSPONDER_DMA_BUFFER_SIZE]