systemfunc.h

来自「Cu1216 解调器驱动」· C头文件 代码 · 共 88 行

H
88
字号
/*****************************************************************************
*
* File : SystemFunc.h
* ----
*
* Copyright Statement :
* ------------------
* Copyright (c) Philips Semiconductor Rennes 2001
*
* This software is protected by Copyright and the information contained herein
* is confidential. The software may not be copied and information contained 
* herein may not be used or disclosed except with the written permission of 
* comatlas SA.
*
*
* Project : Front-end
* -------
* 
* Description :
* -----------
*
*
* Version : 1.0
* -------
*
* Modification History :
* --------------------
*
* Date		Version		Author			Details
* ----		-------		------			-------
* 16/03/01	1.0			XR				creation
*
******************************************************************************
*/

#ifndef __SYSTEMFUNC_H__
#define __SYSTEMFUNC_H__

typedef struct I2C_Conf_TAG 
{
    int             iLptPort;
    int             iI2cSpeed;
    unsigned char   bAutoInc;
    unsigned char   bVersion;
    unsigned char   bDebugTrace;
} I2C_Conf_T;

#ifdef __cplusplus
extern "C" 
{
#endif

//=================NULL=====================
Bool SY_OpenCom(void);
Bool SY_CloseCom(void);

UInt8 SY_SetComConfig(I2C_Conf_T);
void SY_GetComConfig(I2C_Conf_T*);

//================PORTING===================
Bool SY_WriteDemod(UInt32 uHwAddress, UInt32 uIndex, UInt32 uNBytes, UInt32 *puData);
Bool SY_WriteBitDemod(UInt32 uHwAddress, UInt32 uIndex, UInt32 uMask, UInt32 uData);
Bool SY_ReadDemod(UInt32 uHwAddress, UInt32 uIndex, UInt32 uNBytes, UInt32 *puData);

Bool SY_WriteTuner(UInt32 uHwAddress, UInt32 uIndex, UInt32 uNBytes, UInt32 *puData);
Bool SY_WriteBitTuner(UInt32 uHwAddress, UInt32 uIndex, UInt32 uMask, UInt32 uData);
Bool SY_ReadTuner(UInt32 uHwAddress, UInt32 uIndex, UInt32 uNBytes, UInt32 *puData);

UInt32 SY_GetTickTime(void);
UInt32 SY_GetTickPeriod(void);

//================SPARE===========================
Bool SY_WriteEeprom(UInt32 uHwAddress, UInt32 uIndex, UInt32 uNBytes, UInt32 *puData);
Bool SY_WriteBitEeprom(UInt32 uHwAddress, UInt32 uIndex, UInt32 uMask, UInt32 uData);
Bool SY_ReadEeprom(UInt32 uHwAddress, UInt32 uIndex, UInt32 uNBytes, UInt32 *puData);

void IIC_Start(void);
void IIC_Stop(void);
UInt8 IIC_WriteByte(UInt8 bBytes);
UInt8 IIC_ReadByte (UInt8* pbData);

UInt32 SY_GetComError(void);
#ifdef __cplusplus
}
#endif

#endif 

⌨️ 快捷键说明

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