?? bst_api.h
字號:
/*-- ----------------------------------------------------------------
-- 藍拓撲MPEG2傳輸流發送卡
--
-- Bluetop Technology
-- Module : API header
-- time : 2002.8.11
-- -----------------------------------------------------------------*/
#ifndef _BST_API_H_
#define _BST_API_H_
#include <windows.h>
#include <winioctl.h>
#include <initguid.h>
#include <setupapi.h>
/*
* extern function declaration ...
*/
/*int bst_init(int DeviceId)
功能:對發送卡進行初始化.在所有的關于卡的操作之前調用一次.
參數:DeviceId:發送卡編號,0開始.
返回值:0表示成功.負數表示失敗.*/
extern __declspec(dllexport) int bst_init(int DeviceId);
/*int bst_fini(int DeviceId)
功能:對發送卡進行關閉和結束工作.在所有的關于卡的操作之后調用一次.
參數:DeviceId:發送卡編號,0開始.
返回值:0表示成功.負數表示失敗.*/
extern __declspec(dllexport) int bst_fini(int DeviceId);
/*int bst_start_transmit(float rate, int frame, int spi_asi,int DeviceId)
功能:發送卡準備發送和設置參數.在多次bst_transmit()調用的第一次之前調用一次.
參數: rate: 發送卡輸出信號的速率,bps為單位;
frame:發送卡輸出TS流的包長度,188或204;
spiasi :0表示SPI和ASI接口同時輸出,1表示只有ASI接口輸出,2表示只有SPI接口輸出.
DeviceId:發送卡編號,0開始.
返回值:0表示成功.負數表示失敗.*/
extern __declspec(dllexport) int bst_start_transmit(float rate, int frame, int spi_asi, int DeviceId);
//----------下面這個函數是為了對舊版本9080發送卡的程序兼容,新版本程序可以不調用它--------------
/*int bst_start_transmit(float rate, int frame,int DeviceId)
功能:發送卡準備發送和設置參數.在多次bst_transmit()調用的第一次之前調用一次.
等效于 bst_start_transmit(rate, frame, 0).
參數: rate: 發送卡輸出信號的速率,bps為單位;
frame:發送卡輸出TS流的包長度,188或204;
DeviceId:發送卡編號,0開始.
返回值:0表示成功.負數表示失敗.*/
extern __declspec(dllexport) int bst_start_transmit(float rate, int frame, int DeviceId);
//---------------------------------------------------------------------------------------------
/*int bst_transmit(void* pBuffer,int nLength,int DeviceId)
功能:發送卡發送數據.可以反復多次調用,建議nLength取值在20K到200K之間.
參數:pBuffer:待發送數據緩沖區的指針;
nLength:要發送的長度,字節單位,建議取值在20480到204800之間.
DeviceId:發送卡編號,0開始.
返回值:實際發送的數據長度,字節單位.負數表示操作出錯.*/
extern __declspec(dllexport) int bst_transmit(void* pBuffer,int nLength, int DeviceId);
/*int bst_stop_transmit(int DeviceId)
功能:發送卡結束發送.在多次bst_transmit()的最后一次之后調用一次.
參數:DeviceId:發送卡編號,0開始.
返回值:0表示成功.負數表示失敗.*/
extern __declspec(dllexport) int bst_stop_transmit(int DeviceId);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -