⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ssi.c

📁 Freescale MCF5445evb 参考测试代码
💻 C
字号:
/*! * \file   ssi_test.c * \brief   Test the SSI and codec on Jamaica * \version $Revision: 1.1 $ * \author  Adam Sochacki * * Test the ssi and codec on Jamaica known as "ssi" */ #include "common.h"#include "ssi.h"#include "jamaica_tests.h"uint16 b =9;uint32 rx_offset_l =0;uint32 rx_offset_r =0;uint32 tx_offset_l =0;uint32 tx_offset_r =0;uint32 delta =  0;uint8 a = 0;uint8 status;/* buffers with right and left samples *//* default data are 1 and 2 sine waves : 1 and 2 kHz at 48Khz sampling freq. *///static int tx_frame_l[SSI_BUFFER_SIZE]={0,4277,8481,12539,16384,19947,23170,25996,28377,30273,31650,32487,32767,32487,31650,30273,28377,25996,23170,19947,16384,12539,8481,4277,0,-4277,-8481,-12539,-16384,-19947,-23170,-25996,-28377,-30273,-31650,-32487,-32767,-32487,-31650,-30273,-28377,-25996,-23170,-19947,-16384,-12539,-8481,-4277};//static int tx_frame_r[SSI_BUFFER_SIZE]={0,8481,16384,23170,28377,31650,32767,31650,28377,23170,16384,8481,0,-8481,-16384,-23170,-28377,-31650,-32767,-31650,-28377,-23170,-16384,-8481,0,8481,16384,23170,28377,31650,32767,31650,28377,23170,16384,8481,0,-8481,-16384,-23170,-28377,-31650,-32767,-31650,-28377,-23170,-16384,-8481,};uint32 tx_frame_l[SSI_BUFFER_SIZE];uint32 tx_frame_r[SSI_BUFFER_SIZE];uint32 rx_frame_l[SSI_BUFFER_SIZE];uint32 rx_frame_r[SSI_BUFFER_SIZE];/************************************************************************************//* int ssi_test(void)												*//* 															*//* 															*//* Parameters: 												*//* 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -