Microchip® Advanced Software Framework

simulator_examples/adpcm/adpcm_example.c File Reference

IMA/DVI ADPCM functions usage.

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

#include <avr32/io.h>
#include "compiler.h"
#include "board.h"
#include "dsp.h"
#include "sysclk.h"
#include "cycle_counter.h"

Macros

#define NSAMPLES   100
 

Functions

int main (int argc, char *argv[])
 The main function. More...
 

Variables

char cbuf [NSAMPLES]
 
short new_sbuf [NSAMPLES]
 
short sbuf [NSAMPLES]
 

#define NSAMPLES   100

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

The main function.

Note
the call to sysclk_init() will disable all non-vital peripheral clocks, except for the peripheral clocks explicitly enabled in conf_clock.h.

References cbuf, DSP16_Q, dsp_adpcm_ima_decode(), dsp_adpcm_ima_encode(), dsp_debug_initialization, FOSC0, Get_sys_count, i, new_sbuf, NSAMPLES, predicted_value, sbuf, step_index, and sysclk_init().

char cbuf[NSAMPLES]
short new_sbuf[NSAMPLES]
short sbuf[NSAMPLES]