source: svn/zas_dstar/hal/platform/dstddsys.h @ 22

Last change on this file since 22 was 22, checked in by phkim, 11 years ago
  1. phkim
  2. newcon3sk 를 kctv 로 브랜치 함
File size: 2.9 KB
Line 
1/******************************************************************************
2 *_Copyright (c) 2009 Digital Stream Technology Inc. All Rights Reserved.
3 *
4 * Module: dstddsys.h
5 *
6 * Description
7 *
8 * @author
9 * @version $Revision: 1.1 $
10 *
11 ******************************************************************************/
12
13#ifndef __DSTDDSYS_H__
14#define __DSTDDSYS_H__
15
16#if defined __cplusplus
17extern "C" {
18#endif
19
20DHL_RESULT DD_SYS_Initiate(void);
21DHL_RESULT DD_SYS_IsUsbValid(void);
22DHL_RESULT DD_SYS_Terminate(void);
23DHL_RESULT DD_SYS_SetDbgLvl(DS_U32 uDbgLvl);
24DHL_RESULT DD_SYS_Reset(void);
25DHL_RESULT DD_SYS_SetPWM(int Period, int Duty);
26DHL_RESULT DD_SYS_SetADIM(DS_U16 Period);
27DHL_RESULT DD_SYS_CheckDevice(void);
28DHL_RESULT DD_SYS_HDMI_TX_Init(void);
29
30DS_U32 DD_SYS_GetDrvDstVersion(void);
31DS_U32 DD_SYS_GetDrvVenVersion(void);
32DS_U32 DD_SYS_GetLoaderVer(void);
33
34// GPIO
35DHL_RESULT DD_SYS_SetGPIO( int GpioNum, int Value );
36int DD_SYS_GetGPIO( int GpioNum );
37int DD_SYS_GetGPIOOut(int pin);
38int DD_SYS_FindGPIONum( const char *gpioName );
39char *DD_SYS_GetGPIOName( int GpioNum );
40DHL_RESULT DD_SYS_SetGPIODefault( int GpioNum );
41
42int DD_SYS_IsR0_5(void);
43
44int DD_SYS_InitGPIOExtInt(void);
45int DD_SYS_IsGPIOExtInt(void);
46int DD_SYS_IsGPIOExtIntLow(void);
47int DD_SYS_IsGPIOExtIntHigh(void);
48DHL_RESULT DD_SYS_InitGPIO_MSP(void);
49
50
51// I2C
52int DD_SYS_MI2cWrite(unsigned char addr, unsigned char *buf, int len);
53int DD_SYS_I2cWrite(int i2cBus, unsigned char addr, int isSubAddress, int subAddress, unsigned char *buf, int len);
54int DD_SYS_MI2cRead(unsigned char addr, unsigned char *buf, int len);
55int DD_SYS_I2cRead(int i2cBus, unsigned char addr, int isSubAddress, int subAddress, unsigned char *buf, int len);
56DHL_RESULT DD_SYS_SetI2CSpeed(unsigned char bus, unsigned int speed);
57int DD_SYS_IsANX8775Exist(void);
58
59DHL_RESULT DD_SYS_IsSystemAlive(DS_U8 *pErrorCode);
60char *DD_SYS_GetSystemErrorCode(DS_U8 ErrorCode);
61
62int DD_SYS_I2cWriteAndRead(int i2cBus, unsigned char addr, int isSubAddress, int subAddress, unsigned char *buf, int len);
63
64void *DD_SYS_PhyMemAlloc(int size);
65void DD_SYS_PhyMemFree(void *addr);
66
67int DD_SYS_I2cRead2(int i2cBus, unsigned char addr, int isSubAddress, int subAddress, unsigned char *buf, int len);
68int DD_SYS_I2cRead3(int i2cBus, unsigned char addr, int isSubAddress,unsigned char *subAddress, unsigned char *buf, int len);
69int DD_SYS_I2cWrite2(int i2cBus, unsigned char addr, int isSubAddress, int subAddress, unsigned char *buf, int len);
70int DD_SYS_I2cWrite3(int i2cBus, unsigned char addr, int isSubAddress, unsigned char *subAddress, unsigned char *buf, int len);
71void DD_SYS_SetRegister8(DS_U32 Addr, DS_U8 Value);
72void DD_SYS_SetRegister16(DS_U32 Addr, DS_U16 Value);
73void DD_SYS_SetRegister32(DS_U32 Addr, DS_U32 value);
74
75DS_U8 DD_SYS_GetRegister8(DS_U32 Addr);
76DS_U16 DD_SYS_GetRegister16(DS_U32 Addr);
77DS_U32 DD_SYS_GetRegister32(DS_U32 Addr);
78
79void DD_DTV_SetDebugMode(int bOnOff);;
80
81#if defined __cplusplus
82}
83#endif
84
85#endif /* __DSTDDSYS_H__ */
Note: See TracBrowser for help on using the repository browser.