資源簡介
一款可以傳輸CD音質的2.4G數傳無線方案,該方案傳輸的效果非常好

代碼片段和文件信息
/*============================================================================
PROJECT...............:?Wireless?Headset
FILE..................:?audio.c
INITIAL?AUTHOR........:?Nordic?Semiconductor
INITIAL?DATE..........:?15.04.2005
COMPILER..............:?avr-gcc?(GCC)?3.4.3
Description?:?Functions?for?initialization?and?interaction?with?audio?codec
??XE3005?and?USB?audio?controller?SN11220ACF.
Modification?history:
DATE?????? VERSION COMMENT
-----------------------------------------------------------------------------
03.11.2006 1.0 Initial?version
06.11.2006 1.1 Included?function?reset_codec().
21.11.2006 1.2 Changed?reset_codec?function ??
============================================================================*/
/***************************************************************************
*?Library?Includes
***************************************************************************/
#include?
#include?
#include?
#include?
/***************************************************************************
*?Local?Includes
***************************************************************************/
#include?“audio.h“
#include?“main.h“
#include?“mcu.h“
#include?“protocol.h“
/***************************************************************************
*?Constants
***************************************************************************/
/***************************************************************************
*?Types?
***************************************************************************/
/***************************************************************************
*?Variables?
***************************************************************************/
char?sample_counter;
/***************************************************************************
*?Macros?
***************************************************************************/
/***************************************************************************
*?Prototypes
***************************************************************************/
void?write_codec_reg(char?addresschar?data_byte);
/***************************************************************************
Interrupt:?SIGNAL?(SIG_OUTPUT_COMPARE2B)
Function?:?Interrupt?routine?that?is?called?when?USART?databuffer?is?empty.
???One?byte?of?data?is?transmitted/received?to/from?the?Codec.
***************************************************************************/
#ifndef?USB
SIGNAL?(SIG_OUTPUT_COMPARE2B)
{
*input_write_ptr++?=?UDR0;
*input_write_ptr++?=?UDR0;
UDR0?=?*output_read_ptr++;
UDR0?=?*output_read_ptr++;
if(input_write_ptr?>=?&input[AUDIO_BUFFER_LENGTH])
input_write_ptr?=?&input[0];
if(output_read_ptr?>=?&output[AUDIO_BUFFER_LENGTH])
output_read_ptr?=?&output[0];
}
#endif
/***************************************************************************
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????3087514??2007-03-22?09:52??nRF24V1\Release?1.0\atmega48_atmega88_atmega168[1].pdf
?????文件??????83288??2006-12-15?10:14??nRF24V1\Release?1.0\Documentation\nRD24V1?Getting?Started?Guide?v1.0.pdf
?????文件??????70694??2006-12-15?13:13??nRF24V1\Release?1.0\Documentation\nRD24V1?SW?Developer?Guide?v1.0.pdf
?????文件?????167156??2006-12-11?09:31??nRF24V1\Release?1.0\Documentation\nRD24V1?USB?Qualification?Test?Report.pdf
?????文件?????415191??2006-12-18?09:39??nRF24V1\Release?1.0\Documentation\nRD24V1?User?Guide?v1.0.pdf
?????文件???????1365??2007-03-28?16:06??nRF24V1\Release?1.0\Firmware\Code\.dep\main.o.d
?????文件???????1563??2007-03-28?17:12??nRF24V1\Release?1.0\Firmware\Code\.dep\mcu.o.d
?????文件???????1175??2007-03-28?16:06??nRF24V1\Release?1.0\Firmware\Code\.dep\protocol.o.d
?????文件????????325??2006-12-06?12:40??nRF24V1\Release?1.0\Firmware\Code\application.h
?????文件???????6216??2007-03-28?15:48??nRF24V1\Release?1.0\Firmware\Code\audio.c
?????文件???????2420??2006-12-14?10:22??nRF24V1\Release?1.0\Firmware\Code\audio.h
?????文件????????431??2006-11-01?11:09??nRF24V1\Release?1.0\Firmware\Code\headset.pnproj
?????文件??????10865??2006-12-14?10:22??nRF24V1\Release?1.0\Firmware\Code\main.c
?????文件???????3050??2006-12-14?10:22??nRF24V1\Release?1.0\Firmware\Code\main.h
?????文件??????17153??2007-03-28?16:06??nRF24V1\Release?1.0\Firmware\Code\main.lst
?????文件???????9360??2007-03-28?16:06??nRF24V1\Release?1.0\Firmware\Code\main.o
?????文件???????2944??2007-03-26?16:20??nRF24V1\Release?1.0\Firmware\Code\main_elf.aps
?????文件??????14220??2006-11-01?11:03??nRF24V1\Release?1.0\Firmware\Code\makefile
?????文件??????10375??2006-12-14?10:21??nRF24V1\Release?1.0\Firmware\Code\mcu.c
?????文件???????5563??2007-09-08?08:49??nRF24V1\Release?1.0\Firmware\Code\mcu.h
?????文件??????32076??2006-12-14?10:21??nRF24V1\Release?1.0\Firmware\Code\protocol.c
?????文件???????5787??2006-12-14?10:09??nRF24V1\Release?1.0\Firmware\Code\protocol.h
?????文件?????130167??2007-03-28?16:06??nRF24V1\Release?1.0\Firmware\Code\protocol.lst
?????文件??????23744??2007-03-28?16:06??nRF24V1\Release?1.0\Firmware\Code\protocol.o
?????文件???????9675??2006-12-14?10:20??nRF24V1\Release?1.0\Firmware\Code\radio.c
?????文件???????3279??2006-12-14?10:23??nRF24V1\Release?1.0\Firmware\Code\radio.h
?????文件??????17007??2006-12-06?12:43??nRF24V1\Release?1.0\Firmware\Compiled\audio_dongle_1_4.hex
?????文件??????17289??2006-12-06?12:44??nRF24V1\Release?1.0\Firmware\Compiled\headset_1_4.hex
?????文件??????17318??2006-12-06?12:41??nRF24V1\Release?1.0\Firmware\Compiled\usb_dongle_1_4.hex
?????文件???????1453??2007-03-21?10:02??nRF24V1\Release?1.0\Firmware\EEPROM\nRD24V1_EE_D1.hex
............此處省略86個文件信息
評論
共有 條評論