nn::dsp::CTR::LoadComponent Function

Syntax

nn::Result LoadComponent(
     const u8 pComponent[],
     size_t size,
     bit16 maskPram = 0xff,
     bit16 maskDram = 0xff
);

Arguments

Name Description
in pComponent[] Component file address.
in size Component file size.
in maskPram Specifies the DSP-Pram blocks to use. Starting at the LSB, bits 0-7 indicate blocks 0-7, respectively. Bits 8-15 are ignored.
in maskDram Specifies the DSP-Dram blocks to use. See maskDram.

Return Values

Returns the result of the operation.

Description

Loads a DSP component file and starts the DSP.

This function is provided to allow user applications to load the appropriate component when, in the future, the SDK provides DSP components other than the default. There are no plans to release the DSP development environment to users.

The return value details are as follows.

LevelSummaryModuleDescriptionContent
LEVEL_SUCCESSSUMMARY_SUCCESSMODULE_COMMONDESCRIPTION_SUCCESSProcess succeeded.
LEVEL_STATUSSUMMARY_INVALID_STATEMODULE_NN_DSPDESCRIPTION_NOT_INITIALIZEDThe DSP library is not initialized.
LEVEL_STATUSSUMMARY_INVALID_STATEMODULE_NN_DSPDESCRIPTION_ALREADY_EXISTSAlready loaded.

Revision History

2010/01/29
Initial version.

CONFIDENTIAL