DWC_InitInetEx

Syntax

#include <dwc.h> 
void DWC_InitInetEx(DWCInetControl *inetCntl,
                    u16 dmaNo,
                    u16 powerMode,
                    u16 ssl_priority);

Arguments

inetCntl Pointer to the automatic connection control object.
dmaNo DMA number used by automatic connection.
powerMode WM power mode during automatic connection. Always set this to 1.
ssl_priority SSL processing thread priority.

Return Values

None.

Description

Initializes the automatic connection control object specified by inetCntl. In the application, prepare a buffer that is the same size as the DWCInetControl structure.

Maintain the buffer for the automatic connection control object until the connection status is released using the DWC_CleanupInet function.

In the DWC_InitInetEx function, you can configure the DMA number used by automatic connection processing, the WM power mode, and the SSL processing thread priority. However, you must always set the WM power mode to 1.
The DWC_InitInet function calls the DWC_InitInetEx function in the library, with dma=3, powerMode=1, and ssl_priority=20 specified as the arguments.

Because the SSL processing takes time, its priority must be made lower than that of the main thread. Otherwise, it will affect the operation of the main thread.

See Also

DWC_CheckInet DWC_ProcessInet DWC_GetInetStatus DWC_CleanupInet DWC_CleanupInetAsync DWC_InitInet

Revision History

5.3
Deleted Description because the DWC_SetAuthServer function has been deprecated.

For the change log before 5.1 PR2, click here.   


CONFIDENTIAL