blob: 07fa4e0e52a12bb3868d576419d961f10246de65 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/***********************************************************************
2 *Project Linux H100
3 *Modual USRLINE
4 *FileName slc_inf.h
5 *Description SLIC module interface
6 *-----------------------------------------------------------------------
7 *modify History:
8 *
9 * Data author version modify description
10 * 2004/12/10 jiang.yuelong 1.0 create
11 ************************************************************************/
12#ifndef _SLIC_INF_H
13#define _SLIC_INF_H
14
15#include "112.h"
16#include "slic_type.h"
17
18#define SLIC_SUCCESS (0)
19#define SLIC_FAIL (-1)
20
21
22DWORD SLIC_Initial(VOID);
23VOID SLIC_Release(VOID);
24DWORD SLIC_Dev_Init();
25DWORD SLIC_ReleasePort(WORD wPort, BYTE bType);
26DWORD SLIC_ResetPort(WORD wPort, BYTE bType);
27VOID SLIC_DebugLevel(WORD wLevel);
28DWORD SLIC_Show_Stat(WORD wPort, BYTE bType);
29DWORD SLIC_Show_Err(WORD wFlag);
30DWORD SLIC_Port_Lock(WORD wPort, BYTE bType);
31DWORD SLIC_Port_UnLock(WORD wPort, BYTE bType);
32DWORD SLIC_GetCallStatus(WORD wPort);
33DWORD SLIC_FXS_PolarityReverse(WORD wPort);
34DWORD SLIC_PolarityReverse(WORD wPort, int is_active);
35DWORD SLIC_FXS_StartCollect(WORD wPort);
36DWORD SLIC_FXS_StopCollect(WORD wPort);
37DWORD SLIC_Play_Signal(WORD wPort, BYTE bType, SIGNAL_DATA *pSig);
38DWORD SLIC_Stop_Signal(WORD wPort, BYTE bType);
39DWORD SLIC_SelectTimeSlot(WORD wPort, BYTE bType, BYTE bTX, BYTE bRX);
40DWORD SLIC_ReleaseTimeSlot(WORD wPort, BYTE bType);
41DWORD SLIC_MsgRev(BYTE *bEvent, DWORD *pPayLoad);
42DWORD SLIC_MsgClr(VOID);
43
44DWORD SLIC_Cfg_HookLowTime(WORD wPort, WORD wTime);
45DWORD SLIC_Cfg_HookHighTime(WORD wPort, WORD wTime);
46DWORD SLIC_Cfg_PreHookHighTime(WORD wPort, WORD wTime);
47DWORD SLIC_Cfg_FlashLowMinTime(WORD wPort, WORD wTime);
48DWORD SLIC_Cfg_FlashLowMaxTime(WORD wPort, WORD wTime);
49DWORD SLIC_Cfg_FlashHighFixTime(WORD wPort, WORD wTime);
50DWORD SLIC_Cfg_DialLowMinTime(WORD wPort, WORD wTime);
51DWORD SLIC_Cfg_DialLowMaxTime(WORD wPort, WORD wTime);
52DWORD SLIC_Cfg_DialHighMinTime(WORD wPort, WORD wTime);
53DWORD SLIC_Cfg_DialHighFixTime(WORD wPort, WORD wTime);
54
55DWORD SLIC_112TestStart(WriteCmd_t *pCmd);
56DWORD SLIC_112TestAbort( WORD wPort, BYTE bType );
57DWORD SLIC_112TestRead( WORD wPort, BYTE bType, TestResult_t *pResBuf);
58
59DWORD SLIC_Cfg_Codec(BYTE *pParm);
60DWORD SLIC_Read_Codec(BYTE *pParm);
61DWORD SLIC_Read_Ram(BYTE *pParm);
62DWORD SLIC_Cfg_Ram(BYTE *pParm);
63DWORD SLIC_Start_PCM();
64DWORD SLIC_Stop_PCM();
65DWORD SLIC_PCM_Set_NB();
66DWORD SLIC_PCM_Set_WB();
67DWORD SLIC_Read_Codec_ALL(VOID);
68
69
70#endif /* _SLIC_INF_H */