📄 seedpciapi.h
字号:
/************************************************************/
/* Filename: SeedPciApi.h */
/* Designor: cxh */
/* Date: 2006-02-23 */
/************************************************************/
#ifndef SeedPciApi_H
#define SeedPciApi_H
#include <csl.h>
#include <csl_dat.h>
#include <csl_cache.h>
#include <csl_pci.h>
#include <csl_irq.h>
#include <std.h>
#define min(x,y) ((x)<(y))?(x):(y)
/*******************************************************
--------- Abbreviation specification -------------------
Capture - Cap
Record - Rcd
Frame - Frm
Address - Add
Interrupt - Int
Flag - Flg
Channel - Chan
Ready - Rdy
Request - Req
Host - Hst
Logical - Log
Common - Cmn
Buffer - Buf
Length - Len
Ringbuffer - Rbf
Overflow - Ovf
Exchange - Exc
********************************************************/
// Define video channel enumeration structure
typedef enum tagCHANNUM
{
FIRCHN = 0, // First video channel
SECCHN, // Second video channel
THICHN, // Third video channel
FOUCHN // Fourth video channel
}CHANNUM;
/************************************************************
// Name: InitPciDrvLib
// Function: Initialize seed ti6x PCI interface library
// Parameter:
// None
// Return:
// None
************************************************************/
void InitPciDrvLib(void);
/************************************************************
// Name: IsCapStart
// Function: Judge video channel capture display if started
// Parameter:
// Num--Video channel number
// Return:
// If True, corresponding channel capture is started;
// else,corresponding channel capture is closed.
************************************************************/
Bool IsCapStart(CHANNUM Num);
/************************************************************
// Name: CheckPciDmaState
// Function: Chech pci dma transfer if busy
// Parameter:
// None
// Return:
// If True, pci dma busy;
// else, pci dma idle.
************************************************************/
Bool CheckPciDmaState(void);
/************************************************************
// Name: SetCapDmaSrcAdd
// Function: Setup dma transfer capture video data source address,
// Parameter:
// DspAdd--Captured video frame starting address
// Return:
// None
************************************************************/
void SetCapDmaSrcAdd(Uint32 DspAdd);
/************************************************************
// Name: IsRcdStart
// Function: Judge video channel record if started or stopped
// Parameter:
// Num--Video channel number
// Return:
// If True, corresponding channel record is started;
// else,corresponding channel record is closed.
************************************************************/
Bool IsRcdStart(CHANNUM Num);
/************************************************************
// Name: SendFrmRdy
// Function: Send corresponding video channel ready to capture command
// Parameter:
// Num--Video channel number
// Return:
// None
************************************************************/
void SendFrmRdy(CHANNUM Num);
/************************************************************
// Name: WaitFrmTransOvr
// Function: Waitting for frame transfer completed
// Parameter:
// None
// Return:
// None
************************************************************/
void WaitFrmTransOvr(void);
/************************************************************
// Name: SendEncodedData
// Function: Send corresponding video channel ready to capture command
// Parameter:
// Num--Video channel number
// DspAdd--Encoded data starting address
// DataLen--The data length of will transfer
// Return:
// None
************************************************************/
void SendEncodedData(CHANNUM Num, Uint32 DspAdd, Uint32 DataLen);
/************************************************************
// Name: TransCaptureFrm
// Function: Transfer corresponding video channel capture data to pc host
// Parameter:
// First--
// Num--Video channel number
// DspAdd--Captured video frame starting address
// Return:
// None
************************************************************/
void TransCaptureFrm(Bool First, CHANNUM Num, Uint32 DspAdd);
#endif
/************************************************************/
/* No more */
/************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -