Intel
®
IXP400 Digital Signal Processing (DSP) Software Version 2.5
Complementary Functions
44 API Reference Manual
9.0 Complementary Functions
9.1 Direct Parameter Access
The user’s applications can bypass the message and directly access the DSP parameters. This allows
quicker access without having to send a message and receive a response. All parameters can be di-
rectly read but only some of them can be directly modified. The functions to access the parameters
are:
9.2 Flash Hook Detection
Prototype
XStatus_t xDspParmRead(UINT8 res, UINT16 inst, UINT16 parmId,
UINT16 *pParmVal);
Input
•
res – DSP resource ID
•
inst – Instance ID of the resource
•
parmId – Parameter ID
•
pParmVal – Pointer to the variable that receives the returned parameter value
Output Parameter value
Return
•
XSUCC if successful
• Otherwise
XERROR
Description This function retrieves the specified parameter value.
Prototype
XStatus_t xDspParmWrite(UINT8 res, UINT16 inst,
UINT16 parmId, UINT16 parmVal, UINT32 transId);
Input
•
res – DSP resource ID
•
inst – instaNce ID of the resource
•
parmId – Parameter ID
•
parmVal – Parameter value to be set
•
transId – Transaction ID
Output None
Return
•
XSUCC if successful
• Otherwise
XERROR
Description This function sets the value of the specified parameter.
Prototype
Status_t xFlashHookDetect(UINT16 channel,
XHookState_t hookState, XUINT32 transId);
Input
•
channel – Channel number starting from 1
•
hookState – Hook state, XHOOK_STATE_ON or XHOOK_STATE_OFF
• transId – Transaction ID