Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
audio_telemetry.h File Reference
#include "inttypes.h"
#include "generated/airframe.h"
#include "audio_telemetry_hw.h"
+ Include dependency graph for audio_telemetry.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TX_BUF_SIZE   255
 
#define AudioTelemetrySendMessage()   AUDIO_TELEMETRY_CHECK_RUNNING()
 
#define UPDATE_HEAD()
 
#define AudioTelemetryCheckFreeSpace(_space)   (tx_head>=tx_tail? _space < (TX_BUF_SIZE - (tx_head - tx_tail)) : _space < (tx_tail - tx_head))
 
#define AudioTelemetryPut1Byte(_byte)
 
#define AUDIO_TELEMETRY_LOAD_NEXT_BYTE()
 
#define AudioTelemetryTransmit(_x)   Audio_TelemetryPut1Byte(_x)
 

Variables

uint8_t audio_telemetry_nb_ovrn
 
uint8_t tx_head
 
volatile uint8_t tx_tail
 
uint8_t tx_buf [TX_BUF_SIZE]
 
uint8_t tx_byte
 
uint8_t tx_byte_idx
 

Macro Definition Documentation

#define AUDIO_TELEMETRY_LOAD_NEXT_BYTE ( )
Value:
{ \
tx_tail = 0; \
}
uint8_t tx_byte
uint8_t tx_byte_idx
#define TX_BUF_SIZE
volatile uint8_t tx_tail
uint8_t tx_buf[TX_BUF_SIZE]

Definition at line 67 of file audio_telemetry.h.

#define AudioTelemetryCheckFreeSpace (   _space)    (tx_head>=tx_tail? _space < (TX_BUF_SIZE - (tx_head - tx_tail)) : _space < (tx_tail - tx_head))

Definition at line 60 of file audio_telemetry.h.

#define AudioTelemetryPut1Byte (   _byte)
Value:
{ \
tx_buf[tx_head] = _byte; \
}
uint8_t tx_head
#define UPDATE_HEAD()
uint8_t tx_buf[TX_BUF_SIZE]

Definition at line 62 of file audio_telemetry.h.

#define AudioTelemetrySendMessage ( )    AUDIO_TELEMETRY_CHECK_RUNNING()

Definition at line 47 of file audio_telemetry.h.

#define AudioTelemetryTransmit (   _x)    Audio_TelemetryPut1Byte(_x)

Definition at line 75 of file audio_telemetry.h.

#define TX_BUF_SIZE   255

Definition at line 38 of file audio_telemetry.h.

Referenced by get_next_bit().

#define UPDATE_HEAD ( )
Value:
{ \
if (tx_head >= TX_BUF_SIZE) tx_head = 0; \
}
uint8_t tx_head
#define TX_BUF_SIZE

Definition at line 54 of file audio_telemetry.h.

Variable Documentation

uint8_t audio_telemetry_nb_ovrn

Definition at line 5 of file audio_telemetry_hw.c.

Definition at line 8 of file audio_telemetry_hw.c.

Referenced by get_next_bit().

uint8_t tx_byte

Definition at line 10 of file audio_telemetry_hw.c.

Referenced by get_next_bit().

uint8_t tx_byte_idx
uint8_t tx_head

Definition at line 6 of file audio_telemetry_hw.c.

Referenced by get_next_bit().

volatile uint8_t tx_tail

Definition at line 7 of file audio_telemetry_hw.c.

Referenced by get_next_bit().