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

📄 iis.h

📁 基于2410的一个iis总线测试程序 声音控制芯片是飞利浦的UTS1341 可通过xmodem发送声音文件(WAV)到内存
💻 H
字号:
//=================================
//File name: iis.h
//Discription:provide some iis test method use by the main.c file
//Author: Decell.Zhou
//version
//=================================
#include <stdlib.h>
#include <string.h>

#include "def.h"
#include "option.h"
#include "config.h"
#include "2410addr.h"
#include "2410lib.h"
#include "2410slib.h"
#include "timer.h"
#include "xmodem.h"

#define DOWNLOADSUCCESS 0
#define DOWNLOADFAILED 1
#define RECORDSUCCESS 2
#define RECORDFAILED 3

#define PLAY_BUFFER 0x31000000

#define PLAY_MODE 0
#define RECORD_MODE 1

#define L3C (0x1 << 4)            //GPB4 = L3CLOCK
#define L3D (0x1 << 3)            //GPB3 = L3DATA
#define L3M (0x1 << 2)            //GPB2 = L3MODE

//===========[iisInit]===============
//Description:make preparasion for the iis test
//Author:Decell.Zhou
//Version:
//parm:none
//return:none
//==================================
void iisInit(void);

//===========[iisDownloadFile]==========
//Discription:download a file through the serial port
//Author:Decell.Zhou
//Version:
//parm: none
//return:
//		DOWNLOADSUCCESS|char|download file complete successfully
//		DOWNLOADFILED|char|download file failed
//=====================================
char iisDownloadFile(void);

//=========[iisRecord]================
//Discription:record a sound file through the mic
//Author:Decell.Zhou
//Version:
//pram: none
//return:
//		RECORDSUCCESS|char|record a file successfully
//		RECORDFAILED|char|record a file failed
//======================================
char iisRecord(void);

//=============[iisPlay]=================
//Discription:play the sound file
//Author:Decell.Zhou
//Version:
//parm:none
//return:none
//======================================
void iisPlay(void);

⌨️ 快捷键说明

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