#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 this function's return value. However, for the DWC_INIT_RESULT_DESTROY_OTHER_SETTING error type to be returned, "Connection Target 1" must be set up with the Wi-Fi Connection configuration ahead of time.
The buffer specified in work may be deallocated after this function is closed. Because this buffer is accessed from the ARM7, in the main memory specify a region that can be accessed from the ARM7.
This function is for debugging, but it also works with the libraries of the final version of ROM (FINALROM).
This function requires a PXI interrupt for synchronization; do not call it when PXI interrupts are prohibited.
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_USERIDDWC_INIT_RESULT_DESTROY_USERIDDWC_INIT_RESULT_DESTROY_OTHER_SETTING |
None.
2006/08/02 Added a description about DWC_INIT_RESULT_DESTROY_OTHER_SETTING.
2006/08/02 Added a description of buffer for initialization, and cautions for the PXI interrupt.
2005/12/16 Initial version.
CONFIDENTIAL