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_hw.c File Reference
#include "audio_telemetry.h"
#include "types.h"
#include "armVIC.h"
+ Include dependency graph for audio_telemetry_hw.c:

Go to the source code of this file.

Macros

#define NB_STATE   2
 
#define NB_PHASE   2
 

Functions

static uint8_t get_next_bit (void)
 
void TIMER1_ISR (void)
 

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 ck_a
 
uint8_t ck_b
 
uint8_t tx_byte
 
uint8_t tx_bit_idx
 
static const uint16_t audio_telemetry_sample [NB_STATE][NB_PHASE][SAMPLES_PER_PERIOD]
 
static uint8_t audio_telemetry_sample_idx = 0
 
static uint8_t audio_telemetry_phase = 0
 

Macro Definition Documentation

#define NB_PHASE   2

Definition at line 15 of file audio_telemetry_hw.c.

#define NB_STATE   2

Definition at line 14 of file audio_telemetry_hw.c.

Function Documentation

static uint8_t get_next_bit ( void  )
inlinestatic

Definition at line 29 of file audio_telemetry_hw.c.

References tx_bit_idx, tx_buf, TX_BUF_SIZE, tx_byte, tx_head, and tx_tail.

Referenced by TIMER1_ISR().

+ Here is the caller graph for this function:

void TIMER1_ISR ( void  )

Definition at line 62 of file audio_telemetry_hw.c.

References audio_telemetry_phase, audio_telemetry_sample, audio_telemetry_sample_idx, DACR, get_next_bit(), ISR_ENTRY, ISR_EXIT, SAMPLES_PER_PERIOD, T1IR, TIR_MR0I, and VICVectAddr.

Referenced by audio_telemetry_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

uint8_t audio_telemetry_nb_ovrn

Definition at line 5 of file audio_telemetry_hw.c.

uint8_t audio_telemetry_phase = 0
static

Definition at line 26 of file audio_telemetry_hw.c.

Referenced by TIMER1_ISR().

const uint16_t audio_telemetry_sample[NB_STATE][NB_PHASE][SAMPLES_PER_PERIOD]
static
Initial value:
=
{
{{512, 1023, 512, 1},
{512 ,1 , 512 , 1023}},
{{512, 874, 1023, 874},
{512 ,150 ,1 , 150}}
}

Definition at line 17 of file audio_telemetry_hw.c.

Referenced by TIMER1_ISR().

uint8_t audio_telemetry_sample_idx = 0
static

Definition at line 25 of file audio_telemetry_hw.c.

Referenced by TIMER1_ISR().

uint8_t ck_a

Definition at line 9 of file audio_telemetry_hw.c.

uint8_t ck_b

Definition at line 9 of file audio_telemetry_hw.c.

uint8_t tx_bit_idx

Definition at line 11 of file audio_telemetry_hw.c.

Referenced by get_next_bit().

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_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().