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

📄 mvp_dma.h

📁 利用Ti公司的TMSvc320c6711开发板的基础上搭建的移动视频电话系统。程序中主要实现3个功能:实时捕捉视频和音频数据;能够对视频和音频数据进行解码和存储;能够通过GPRS通信口传输音/视频压缩
💻 H
字号:
/*
* File: MVPdma.h
*
* Author: Elliot Hill
*
* Description: This is the header file for the MVPdma module
* in the Mobile VideoPhone (MVP) Thesis.
*
* Last Modified: 28 September 2001
*/
#include <dma.h>
#include <mcbsp.h>
#include <timer.h>
#include <intr.h>
#include <common.h>
/*
* Typedef unsigned int into uint, makes for easy reading.
*/
typedef unsigned int uint;
/*
* Defines
*/
#define VIDEO_DMA DMA_CH0
#define AUDIO_DMA DMA_CH1
#define DATA_DMA DMA_CH2
#define INT_DATA_DMA DMA_CH3
#define FRAMES_PER_BLOCK 125
#define NUM_ELEMENTS 144
#define AUD_ELEM_NUM 0xFA0
#define DATA_ELEM_NUM 1760 // Number of 16-bit elements in the stream
#define DMA_VIDEO_SRC_ADDR 0x01000000 // First address of the CE1 space
#define UARTRECADDR 0x033FFC80 // Address for the storage of our receive
//buffer for serial data, at the end of
//SDRAM bank 1
#define DATASTORAGEADDR 0x03000000 // Start of SDRAM bank 1
#define END_OF_FRAME_ADJ 0
#define ABS(X) (((X) > 0) ? (X) : (-(X)))
#define XCTRL0_HIGH()(CSET_BIT(0x01780000, 6))
#define XCTRL0_LOW() (CCLR_BIT(0x01780000, 6))
#define XCTRL1_HIGH()(CSET_BIT(0x01780000, 7))
#define XNTRL1_LOW() (CCLR_BIT(0x01780000, 7))
/*
* Function Definitions
*/
int initialise_DMA(uint vid_addr0, uint aud_addr);
interrupt void refresh_video_DMA();
interrupt void start_video_transfer();
interrupt void refresh_audio_DMA();
interrupt void refresh_and_manip_data_DMA();
void init_int_data_dma(float *dest, int destStep, float *source, int sourceStep, int floats, int frames, int
frameStep);

⌨️ 快捷键说明

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