DWC_InitInet

Syntax

#include <dwc.h> 
void DWC_InitInet(DWCInetControl *inetCntl);

Arguments

inetCntl Pointer to the automatic connection control object.

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_InitInetEx

Revision History

For the change log before 5.1 PR2, click here.   


CONFIDENTIAL