Intel
®
IXP400 Digital Signal Processing (DSP) Software Version 2.5
Complementary Functions
API Reference Manual 45
The hook states are defined as:
9.3 Cache Prompt Registration
Output None
Return
• XSUCC if successful
• Otherwise
XERROR
Description
This function is called by the SLIC driver to report the hook state changes via the event
message.
If an on-hook transition followed by an off-hook one within the time specified by the
XPARMID_NET_FLASH_HK parameter, a flash hook event is reported.
Prototype
Status_t xFlashHookDetect(UINT16 channel,
XHookState_t hookState, XUINT32 transId);
typedef enum{
XHOOK_STATE_ON = 0,
XHOOK_STATE_OFF,
XHOOK_STATE_FLASH
}XHookState_t;
Prototype
XMediaHandle_t xDspRegCachePrompt(XCachePromptDesc_t *pDesc);
Input pDesc – The pointer to structure XCachePromptDesc_t.
Output None
Return
XMediaHandle — Returns XMEDIA_HANDLE_NULL in the error case.
Description
This function is called to register a cached prompt for playing at a later time.
XCachePromptDesc_t describes the data required to register a cached prompt.
typedef struct{
UINT8 *pBuffer; /* Pointer to the play buffer. */
INT32 size; /* The size of play buffer. */
XCoderType_t type; /* The type of data in play buffer.
The valid types are
XCODER_TYPE_G711MU_10MS,
XCODER_TYPE_G711A_10MS and
XCODER_TYPE_G729A */
} XCachePromptDesc_t;