#include <dsplink.h>
Go to the source code of this file.
FnNotifyCbck | |||||||
Signature of the callback function to be registered with the NOTIFY component. ============================================================================
| |||||||
typedef void(* | FnNotifyCbck )(IN Uint32 eventNo, IN Pvoid arg, IN Pvoid info) | ||||||
DLLEXPORT DSP_STATUS | NOTIFY_register (IN ProcessorId dspId, IN Uint32 ipsId, IN Uint32 eventNo, IN FnNotifyCbck fnNotifyCbck, IN Pvoid cbckArg) | ||||||
This function registers a callback for a specific event with the NOTIFY component. | |||||||
DLLEXPORT DSP_STATUS | NOTIFY_unregister (IN ProcessorId dspId, IN Uint32 ipsId, IN Uint32 eventNo, IN FnNotifyCbck fnNotifyCbck, IN Pvoid cbckArg) | ||||||
This function unregisters a callback for a specific event with the NOTIFY component. | |||||||
DLLEXPORT DSP_STATUS | NOTIFY_notify (IN ProcessorId dspId, IN Uint32 ipsId, IN Uint32 eventno, IN Uint32 payload) | ||||||
This function sends a notification of an event to the DSP. |
typedef void(* FnNotifyCbck)(IN Uint32 eventNo, IN Pvoid arg, IN Pvoid info) |
DLLEXPORT DSP_STATUS NOTIFY_register | ( | IN ProcessorId | dspId, |
IN Uint32 | ipsId, | ||
IN Uint32 | eventNo, | ||
IN FnNotifyCbck | fnNotifyCbck, | ||
IN Pvoid | cbckArg | ||
) |
This function registers a callback for a specific event with the NOTIFY component.
============================================================================
dspId | DSP Identifier. |
ipsId | IPS Identifier. |
eventNo | Event No to be registered. |
fnNotifyCbck | Callback function to be registered for the specified event. |
cbckArg | Optional argument to the callback function to be registered for the specified event. This argument shall be passed to each invocation of the callback function. |
DLLEXPORT DSP_STATUS NOTIFY_unregister | ( | IN ProcessorId | dspId, |
IN Uint32 | ipsId, | ||
IN Uint32 | eventNo, | ||
IN FnNotifyCbck | fnNotifyCbck, | ||
IN Pvoid | cbckArg | ||
) |
This function unregisters a callback for a specific event with the NOTIFY component.
============================================================================
dspId | DSP Identifier. |
ipsId | IPS Identifier. |
event | Event to be unregistered. |
fnNotifyCbck | Callback function to be registered for the specified event. |
cbckArg | Optional argument to the callback function registered for the the specified event. |
DLLEXPORT DSP_STATUS NOTIFY_notify | ( | IN ProcessorId | dspId, |
IN Uint32 | ipsId, | ||
IN Uint32 | eventno, | ||
IN Uint32 | payload | ||
) |
This function sends a notification of an event to the DSP.
============================================================================
dspId | DSP Identifier. |
ipsId | IPS Identifier. |
eventno | Event to be notified to the DSP. |
payload | Data to be sent with Event (Optional). |