#include <dwc.h>
void DWC_Debug_DWCInitError( void* work, int dwc_init_error );
To get a return value other than DWC_INIT_RESULT_NOERROR
from the DWC_Init
function, the Wi-Fi connection information in the DS backup memory must first be destroyed. Once the error classification is specified with dwc_init_error
and this function is called, calling the DWC_Init
function returns the specified error type as the return value of the function.
However, to have DWC_INIT_RESULT_DESTROY_OTHER_SETTING returned as the error type, the Wi-Fi Connection configuration must be used beforehand to set up "Connection Target 1."
Once this function ends, you can release the buffer specified by work
. こThis buffer is accessed from the ARM7, so be sure to specify memory that can be accessed from the ARM7, such as main memory.
This function is for debugging, but it also works with the libraries of the final version of the ROM (FINALROM).
This function requires a PXI interrupt for synchronization. Do not call this function when PXI interrupts are disabled.
work |
Pointer to the buffer for temporary processing. Specify the 32 byte-aligned DWC_INIT_WORK_SIZE portion's buffer. |
dwc_init_error |
Error classification you want to create using the DWC_Init function. Specify one of the below.DWC_INIT_RESULT_CREATE_USERID DWC_INIT_RESULT_DESTROY_USERID DWC_INIT_RESULT_DESTROY_OTHER_SETTING |
None.
08/02/2006 Added a description about DWC_INIT_RESULT_DESTROY_OTHER_SETTING.
08/02/2006 Added description of buffer for initialization and cautions for the PXI interrupt.
12/16/2005 Initial version.
CONFIDENTIAL