yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame] | 1 | /*********************************************************************** |
| 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 | |
| 22 | DWORD SLIC_Initial(VOID); |
| 23 | VOID SLIC_Release(VOID); |
| 24 | DWORD SLIC_Dev_Init(); |
| 25 | DWORD SLIC_ReleasePort(WORD wPort, BYTE bType); |
| 26 | DWORD SLIC_ResetPort(WORD wPort, BYTE bType); |
| 27 | VOID SLIC_DebugLevel(WORD wLevel); |
| 28 | DWORD SLIC_Show_Stat(WORD wPort, BYTE bType); |
| 29 | DWORD SLIC_Show_Err(WORD wFlag); |
| 30 | DWORD SLIC_Port_Lock(WORD wPort, BYTE bType); |
| 31 | DWORD SLIC_Port_UnLock(WORD wPort, BYTE bType); |
| 32 | DWORD SLIC_GetCallStatus(WORD wPort); |
| 33 | DWORD SLIC_FXS_PolarityReverse(WORD wPort); |
| 34 | DWORD SLIC_PolarityReverse(WORD wPort, int is_active); |
| 35 | DWORD SLIC_FXS_StartCollect(WORD wPort); |
| 36 | DWORD SLIC_FXS_StopCollect(WORD wPort); |
| 37 | DWORD SLIC_Play_Signal(WORD wPort, BYTE bType, SIGNAL_DATA *pSig); |
| 38 | DWORD SLIC_Stop_Signal(WORD wPort, BYTE bType); |
| 39 | DWORD SLIC_SelectTimeSlot(WORD wPort, BYTE bType, BYTE bTX, BYTE bRX); |
| 40 | DWORD SLIC_ReleaseTimeSlot(WORD wPort, BYTE bType); |
| 41 | DWORD SLIC_MsgRev(BYTE *bEvent, DWORD *pPayLoad); |
| 42 | DWORD SLIC_MsgClr(VOID); |
| 43 | |
| 44 | DWORD SLIC_Cfg_HookLowTime(WORD wPort, WORD wTime); |
| 45 | DWORD SLIC_Cfg_HookHighTime(WORD wPort, WORD wTime); |
| 46 | DWORD SLIC_Cfg_PreHookHighTime(WORD wPort, WORD wTime); |
| 47 | DWORD SLIC_Cfg_FlashLowMinTime(WORD wPort, WORD wTime); |
| 48 | DWORD SLIC_Cfg_FlashLowMaxTime(WORD wPort, WORD wTime); |
| 49 | DWORD SLIC_Cfg_FlashHighFixTime(WORD wPort, WORD wTime); |
| 50 | DWORD SLIC_Cfg_DialLowMinTime(WORD wPort, WORD wTime); |
| 51 | DWORD SLIC_Cfg_DialLowMaxTime(WORD wPort, WORD wTime); |
| 52 | DWORD SLIC_Cfg_DialHighMinTime(WORD wPort, WORD wTime); |
| 53 | DWORD SLIC_Cfg_DialHighFixTime(WORD wPort, WORD wTime); |
| 54 | |
| 55 | DWORD SLIC_112TestStart(WriteCmd_t *pCmd); |
| 56 | DWORD SLIC_112TestAbort( WORD wPort, BYTE bType ); |
| 57 | DWORD SLIC_112TestRead( WORD wPort, BYTE bType, TestResult_t *pResBuf); |
| 58 | |
| 59 | DWORD SLIC_Cfg_Codec(BYTE *pParm); |
| 60 | DWORD SLIC_Read_Codec(BYTE *pParm); |
| 61 | DWORD SLIC_Read_Ram(BYTE *pParm); |
| 62 | DWORD SLIC_Cfg_Ram(BYTE *pParm); |
| 63 | DWORD SLIC_Start_PCM(); |
| 64 | DWORD SLIC_Stop_PCM(); |
| 65 | DWORD SLIC_PCM_Set_NB(); |
| 66 | DWORD SLIC_PCM_Set_WB(); |
| 67 | DWORD SLIC_Read_Codec_ALL(VOID); |
| 68 | |
| 69 | |
| 70 | #endif /* _SLIC_INF_H */ |