?? dvb_replace.h
字號:
/*******************************************************************************************
Copyright(C) 2004 , HANGZHOU GUOXIN SCIENCE AND TECHNOLOGY CO.,LTD, all right reserved.
Product : DVB-S_GX1101 Demo Software
Date : 2005.07.12
Author : Guoxin
Purpose : Drive GX1101
*******************************************************************************************/
#ifndef _DVB_REPLACE_H
#define _DVB_REPLACE_H
/*******************************************************************************************/
u8 btGotKey;
#define CHECK_GOT_KEY (btGotKey==TRUE)
/*******************************************************************************************/
/* This module provides the Serial 2-Wire Control Bus(CB) access API.*/
bool8 DVB_CB_Write (u8 u8Deviceid, u8 u8Address, u8 u8Value);
/*
This is CB device byte write mode.
The CB device write data format as follow:
Byte Mode:
W
+--------+--------------+------+
| CB_ID | byte address |data |
+--------+--------------+------+
^ ^ ^ ^
start ack ack stop
u8Deviceid (Input): the CB device Address, Range: 0x00 ~ 0xFF.
The bit0 indicates the read or write operation. The driver will
modify this bit. The application must set to 0.
u8Address (Input): the address in CB device. This value's definition depends on device.
u8Value (Input): the data in address of CB device.
return TRUE - success
return FALSE - fail
*/
bool8 DVB_CB_Write_Burst (u8 u8Deviceid, u8 u8Address, u8 *pu8Buffer, u16 u16Length);
/*
Write the data to CB device in page mode or burst mode.
The CB device write data format as follow:
Burst Mode:
W
+--------+--------------+--------+--------+--------+-----+--------+
| CB_ID | byte address | data 0 | data 1 | data 2 | ... | data n |
+--------+--------------+--------+--------+--------+-----+--------+
^ ^ ^ ^ ^ ^ ^ ^
start ack ack ack ack ack ack stop
u8Deviceid (Input): the CB device Address, Range: 0x00 ~ 0xFF.
The bit0 indicates the read or write operation. The driver will
modify this bit. The application must set to 0.
u8Address (Input): the address in CB device. This value's definition depends on device.
pu8Buffer (Input): the pointer of buffer
u16Length (Input): the length of buffer
return TRUE - success
return FALSE - fail
*/
bool8 DVB_CB_WriteNoStop (u8 u8Deviceid, u8 u8Address);
/*
Write the address to CB device without the CB stop command. This function
is used before read operation.
Write No Stop Mode:
W
+--------+--------------+
| CB_ID | byte address |
+--------+--------------+
^ ^ ^
start ack ack
u8Deviceid (Input): the CB device Address, Range: 0x00 ~ 0xFF.
The bit0 indicates the read or write operation. The driver will
modify this bit. The application must set to 0.
u8Address (Input): the address in CB device. This value's definition depends on device.
return TRUE - success
return FALSE - fail
*/
bool8 DVB_CB_Read_Burst (u8 u8Deviceid, u8 *pu8Buffer, u16 u16Length);
/*
Read the CB device data by page mode or burst mode.
Burst Read Mode:
R
+--------+--------+--------+--------+-----+--------+
| CB_ID | data 0 | data 1 | data 2 | ... | data n |
+--------+--------+--------+--------+-----+--------+
^ ^ ^ ^ ^ ^ ^
start ack ack ack ack ack stop
u8Deviceid (Input): the CB device Address, Range: 0x00 ~ 0xFF.
The bit0 indicates the read or write operation. The driver will
modify this bit. The application must set to 1.
pu8Buffer (Output): the pointer of buffer
u16Length (Input): the length of buffer
return TRUE - success
return FALSE - fail
*/
void ScanProgress_Callback (u8 u8Percent);
bool8 ScanLocked_Callback (DVB_TPInfo *pstTP);
/*******************************************************************************************/
#endif /* _DVB_REPLACE_H */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -