Defines interface exposed by DSP sub-component.
============================================================================
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of Texas Instruments Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ============================================================================
#include <dsplink.h>
#include <_dspdefs.h>
Go to the source code of this file.
Functions | |
NORMAL_API Void | DSP_moduleInit (Void) |
Initializes the DSP module. | |
NORMAL_API Void | DSP_moduleExit (Void) |
Finalizes the DSP module. | |
NORMAL_API DSP_STATUS | DSP_init (IN ProcessorId dspId, IN DSP_Interface *interface) |
Resets the DSP and initializes the components required by DSP. Puts the DSP in RESET state. | |
NORMAL_API DSP_STATUS | DSP_exit (IN ProcessorId dspId) |
Resets the DSP and puts it into IDLE Mode. | |
NORMAL_API DSP_STATUS | DSP_start (IN ProcessorId dspId, IN Uint32 dspAddr) |
Causes DSP to start execution from the given DSP address. DSP is put to STARTED state after successful completion. | |
NORMAL_API DSP_STATUS | DSP_stop (IN ProcessorId dspId) |
Stops execution on DSP. DSP is put to STOPPED state after successful completion. | |
NORMAL_API DSP_STATUS | DSP_idle (IN ProcessorId dspId) |
Idles the DSP. DSP is put to IDLE state after successful completion. | |
NORMAL_API DSP_STATUS | DSP_intCtrl (IN ProcessorId dspId, IN Uint32 intId, IN DSP_IntCtrlCmd cmd, IN OUT Pvoid arg) |
Perform the specified DSP interrupt control activity. | |
NORMAL_API DSP_STATUS | DSP_read (IN ProcessorId dspId, IN Uint32 dspAddr, IN Endianism endianInfo, IN Uint32 numBytes, OUT Uint8 *buffer) |
Reads data from DSP. | |
NORMAL_API DSP_STATUS | DSP_write (IN ProcessorId dspId, IN Uint32 dspAddr, IN Endianism endianInfo, IN Uint32 numBytes, IN Uint8 *buffer) |
Writes data to DSP. | |
NORMAL_API Uint32 | DSP_addrConvert (IN ProcessorId dspId, IN Uint32 addr, IN DSP_AddrConvType type) |
Convert address between GPP and DSP address space. | |
NORMAL_API DSP_STATUS | DSP_control (IN ProcessorId dspId, IN Int32 cmd, Pvoid arg) |
Hook for performing device dependent control operation. |
NORMAL_API Void DSP_moduleInit | ( | Void | ) |
Initializes the DSP module.
============================================================================
NORMAL_API Void DSP_moduleExit | ( | Void | ) |
Finalizes the DSP module.
============================================================================
NORMAL_API DSP_STATUS DSP_init | ( | IN ProcessorId | dspId, |
IN DSP_Interface * | interface | ||
) |
Resets the DSP and initializes the components required by DSP. Puts the DSP in RESET state.
============================================================================
dspId | Processor Id. |
interface | Interface to DSP/DEVICE APIs. |
NORMAL_API DSP_STATUS DSP_exit | ( | IN ProcessorId | dspId ) |
Resets the DSP and puts it into IDLE Mode.
============================================================================
dspId | Processor Id. |
NORMAL_API DSP_STATUS DSP_start | ( | IN ProcessorId | dspId, |
IN Uint32 | dspAddr | ||
) |
Causes DSP to start execution from the given DSP address. DSP is put to STARTED state after successful completion.
============================================================================
dspId | Processor Id. |
dspAddr | Address to start execution from. |
NORMAL_API DSP_STATUS DSP_stop | ( | IN ProcessorId | dspId ) |
Stops execution on DSP. DSP is put to STOPPED state after successful completion.
============================================================================
dspId | Processor Id. |
NORMAL_API DSP_STATUS DSP_idle | ( | IN ProcessorId | dspId ) |
Idles the DSP. DSP is put to IDLE state after successful completion.
============================================================================
dspId | Processor Id. |
NORMAL_API DSP_STATUS DSP_intCtrl | ( | IN ProcessorId | dspId, |
IN Uint32 | intId, | ||
IN DSP_IntCtrlCmd | cmd, | ||
IN OUT Pvoid | arg | ||
) |
Perform the specified DSP interrupt control activity.
============================================================================
dspId | Processor ID. |
intId | Interrupt ID. |
cmd | Interrupt control command to be performed. |
arg | Optional input/output argument specific to each control command. |
NORMAL_API DSP_STATUS DSP_read | ( | IN ProcessorId | dspId, |
IN Uint32 | dspAddr, | ||
IN Endianism | endianInfo, | ||
IN Uint32 | numBytes, | ||
OUT Uint8 * | buffer | ||
) |
Reads data from DSP.
============================================================================
dspId | Processor ID. |
dspAddr | DSP address to read from. |
endianInfo | endianness of data - indicates whether swap is required or not. |
numBytes | Number of bytes to read. |
buffer | Buffer to hold the read data. |
NORMAL_API DSP_STATUS DSP_write | ( | IN ProcessorId | dspId, |
IN Uint32 | dspAddr, | ||
IN Endianism | endianInfo, | ||
IN Uint32 | numBytes, | ||
IN Uint8 * | buffer | ||
) |
Writes data to DSP.
============================================================================
dspId | Processor ID. |
dspAddr | DSP address to write to. |
endianInfo | endianness of data - indicates whether swap is required or not. |
numBytes | Number of bytes to write. |
buffer | Buffer containing data to be written. |
NORMAL_API Uint32 DSP_addrConvert | ( | IN ProcessorId | dspId, |
IN Uint32 | addr, | ||
IN DSP_AddrConvType | type | ||
) |
Convert address between GPP and DSP address space.
============================================================================
dspId | Processor Id. |
addr | Address to be converted. If DSP address, the addr parameter reflects the DSP MADU address. |
type | Type of address conversion. |
NORMAL_API DSP_STATUS DSP_control | ( | IN ProcessorId | dspId, |
IN Int32 | cmd, | ||
Pvoid | arg | ||
) |
Hook for performing device dependent control operation.
============================================================================
dspId | Processor ID. |
cmd | Command id. |
arg | Optional argument for the specified command. |