/****************************************************************************** *_Copyright (c) 2009 Digital Stream Technology Inc. All Rights Reserved. * * Module: dstddsys.h * * Description * * @author * @version $Revision: 1.1 $ * ******************************************************************************/ #ifndef __DSTDDSYS_H__ #define __DSTDDSYS_H__ #if defined __cplusplus extern "C" { #endif DHL_RESULT DD_SYS_Initiate(void); DHL_RESULT DD_SYS_IsUsbValid(void); DHL_RESULT DD_SYS_Terminate(void); DHL_RESULT DD_SYS_SetDbgLvl(DS_U32 uDbgLvl); DHL_RESULT DD_SYS_Reset(void); DHL_RESULT DD_SYS_SetPWM(int Period, int Duty); DHL_RESULT DD_SYS_SetADIM(DS_U16 Period); DHL_RESULT DD_SYS_CheckDevice(void); DHL_RESULT DD_SYS_HDMI_TX_Init(void); DS_U32 DD_SYS_GetDrvDstVersion(void); DS_U32 DD_SYS_GetDrvVenVersion(void); DS_U32 DD_SYS_GetLoaderVer(void); // GPIO DHL_RESULT DD_SYS_SetGPIO( int GpioNum, int Value ); int DD_SYS_GetGPIO( int GpioNum ); int DD_SYS_GetGPIOOut(int pin); int DD_SYS_FindGPIONum( const char *gpioName ); char *DD_SYS_GetGPIOName( int GpioNum ); DHL_RESULT DD_SYS_SetGPIODefault( int GpioNum ); int DD_SYS_IsR0_5(void); int DD_SYS_InitGPIOExtInt(void); int DD_SYS_IsGPIOExtInt(void); int DD_SYS_IsGPIOExtIntLow(void); int DD_SYS_IsGPIOExtIntHigh(void); DHL_RESULT DD_SYS_InitGPIO_MSP(void); // I2C int DD_SYS_MI2cWrite(unsigned char addr, unsigned char *buf, int len); int DD_SYS_I2cWrite(int i2cBus, unsigned char addr, int isSubAddress, int subAddress, unsigned char *buf, int len); int DD_SYS_MI2cRead(unsigned char addr, unsigned char *buf, int len); int DD_SYS_I2cRead(int i2cBus, unsigned char addr, int isSubAddress, int subAddress, unsigned char *buf, int len); DHL_RESULT DD_SYS_SetI2CSpeed(unsigned char bus, unsigned int speed); int DD_SYS_IsANX8775Exist(void); DHL_RESULT DD_SYS_IsSystemAlive(DS_U8 *pErrorCode); char *DD_SYS_GetSystemErrorCode(DS_U8 ErrorCode); int DD_SYS_I2cWriteAndRead(int i2cBus, unsigned char addr, int isSubAddress, int subAddress, unsigned char *buf, int len); void *DD_SYS_PhyMemAlloc(int size); void DD_SYS_PhyMemFree(void *addr); int DD_SYS_I2cRead2(int i2cBus, unsigned char addr, int isSubAddress, int subAddress, unsigned char *buf, int len); int DD_SYS_I2cRead3(int i2cBus, unsigned char addr, int isSubAddress,unsigned char *subAddress, unsigned char *buf, int len); int DD_SYS_I2cWrite2(int i2cBus, unsigned char addr, int isSubAddress, int subAddress, unsigned char *buf, int len); int DD_SYS_I2cWrite3(int i2cBus, unsigned char addr, int isSubAddress, unsigned char *subAddress, unsigned char *buf, int len); void DD_SYS_SetRegister8(DS_U32 Addr, DS_U8 Value); void DD_SYS_SetRegister16(DS_U32 Addr, DS_U16 Value); void DD_SYS_SetRegister32(DS_U32 Addr, DS_U32 value); DS_U8 DD_SYS_GetRegister8(DS_U32 Addr); DS_U16 DD_SYS_GetRegister16(DS_U32 Addr); DS_U32 DD_SYS_GetRegister32(DS_U32 Addr); void DD_DTV_SetDebugMode(int bOnOff);; #if defined __cplusplus } #endif #endif /* __DSTDDSYS_H__ */