Synergy Software Package User's Manual

RTOS-integrated WiFi On Chip Stack Framework example. Implementation of SILEX WiFi Driver. It implements the following interfaces: More...

Macros

#define SF_WIFI_QCA4010_ONCHIP_CODE_VERSION_MAJOR   (2U)
 
#define SF_WIFI_QCA4010_ONCHIP_CODE_VERSION_MINOR   (0U)
 

Functions

ssp_err_t SF_WIFI_QCA4010_ONCHIP_STACK_Open (sf_wifi_qca4010_onchip_stack_ctrl_t *p_ctrl, sf_wifi_qca4010_onchip_stack_cfg_t const *const p_cfg)
 Open the WiFi Device driver to use the Onchip stack support. More...
 
ssp_err_t SF_WIFI_QCA4010_ONCHIP_STACK_Close (sf_wifi_qca4010_onchip_stack_ctrl_t *const p_ctrl)
 Close the Wifi Device driver. More...
 
ssp_err_t SF_WIFI_QCA4010_ONCHIP_STACK_Ping (sf_wifi_qca4010_onchip_stack_ctrl_t *const p_ctrl, ULONG *p_ip_addr, uint32_t count, uint32_t interval_ms)
 
ssp_err_t SF_WIFI_QCA4010_ONCHIP_STACK_IPAddressConfigure (sf_wifi_qca4010_onchip_stack_ctrl_t *const p_ctrl, sf_wifi_qca4010_onchip_stack_ip_cfg_t *const p_ip_cfg)
 Configure static IP or enable DHCP. More...
 
ssp_err_t SF_WIFI_QCA4010_ONCHIP_STACK_VersionGet (ssp_version_t *const p_version)
 This function gets the version information of the underlying driver. More...
 
ssp_err_t SF_WIFI_QCA4010_ONCHIP_STACK_DhcpServerStart (sf_wifi_qca4010_onchip_stack_ctrl_t *const p_ctrl, ULONG *p_start_ip, ULONG *p_end_ip)
 Starts DHCP server. More...
 
ssp_err_t SF_WIFI_QCA4010_ONCHIP_STACK_DhcpServerStop (sf_wifi_qca4010_onchip_stack_ctrl_t *const p_ctrl, ULONG *p_start_ip, ULONG *p_end_ip)
 Stops DHCP server. More...
 

Detailed Description

RTOS-integrated WiFi On Chip Stack Framework example. Implementation of SILEX WiFi Driver. It implements the following interfaces:

Macro Definition Documentation

◆ SF_WIFI_QCA4010_ONCHIP_CODE_VERSION_MAJOR

#define SF_WIFI_QCA4010_ONCHIP_CODE_VERSION_MAJOR   (2U)

WiFi Interface. Major Version of code that implements the API defined in this file

◆ SF_WIFI_QCA4010_ONCHIP_CODE_VERSION_MINOR

#define SF_WIFI_QCA4010_ONCHIP_CODE_VERSION_MINOR   (0U)

Minor Version of code that implements the API defined in this file

Function Documentation

◆ SF_WIFI_QCA4010_ONCHIP_STACK_Close()

ssp_err_t SF_WIFI_QCA4010_ONCHIP_STACK_Close ( sf_wifi_qca4010_onchip_stack_ctrl_t *const  p_ctrl)

Close the Wifi Device driver.

Parameters
[in]p_ctrlWifi control block Implements sf_wifi_qca4010_onchip_stack_api_t::close Calls the low level wifi device driver's Close API to close the wifi Driver.
Return values
SSP_SUCCESSWifi Driver stop successfully.
SSP_ERR_NOT_OPENDevice is not opened.
SSP_ERR_ASSERTIONArgument NULL is passed
SSP_ERR_WIFI_FAILEDDriver De-initialization failed
SSP_ERR_IN_USEDevice already in use
SSP_ERR_INTERNALInternal Error occurred

Get Mutex

Close lower level wifi driver

Release the mutex

Delete Mutex

◆ SF_WIFI_QCA4010_ONCHIP_STACK_DhcpServerStart()

ssp_err_t SF_WIFI_QCA4010_ONCHIP_STACK_DhcpServerStart ( sf_wifi_qca4010_onchip_stack_ctrl_t *const  p_ctrl,
ULONG *  p_start_ip,
ULONG *  p_end_ip 
)

Starts DHCP server.

Implements sf_wifi_qca4010_onchip_stack_api_t::dhcpServerStart Starts DHCP server using on CHIP networking stack support.

Parameters
[in]p_ctrlWifi control block
[in]p_start_ipPointer to Start IP address
[in]p_end_ipPointer to End IP address
Return values
SSP_SUCCESSSuccessfully started DHCP Server
SSP_ERR_ASSERTIONArgument NULL is passed
SSP_ERR_NOT_OPENWiFi Driver in not open
SSP_ERR_IN_USEDevice already in use
SSP_ERR_WIFI_FAILEDError occurred with command to Wifi module.

Get the mutex

Start DHCP server

Release the mutex

◆ SF_WIFI_QCA4010_ONCHIP_STACK_DhcpServerStop()

ssp_err_t SF_WIFI_QCA4010_ONCHIP_STACK_DhcpServerStop ( sf_wifi_qca4010_onchip_stack_ctrl_t *const  p_ctrl,
ULONG *  p_start_ip,
ULONG *  p_end_ip 
)

Stops DHCP server.

Implements sf_wifi_qca4010_onchip_stack_api_t::dhcpServerStop Stops DHCP server using on CHIP networking stack support.

Parameters
[in]p_ctrlWifi control block
[in]p_start_ipPointer to Start IP
[in]p_end_ipPointer to End IP
Return values
SSP_SUCCESSSuccessfully stopped DHCP Server
SSP_ERR_ASSERTIONArgument NULL is passed
SSP_ERR_NOT_OPENWiFi Driver is not open
SSP_ERR_IN_USEDevice already in use
SSP_ERR_WIFI_FAILEDError occurred with command to Wifi module.

Get mutex

Stop DHCP server

Release the mutex

◆ SF_WIFI_QCA4010_ONCHIP_STACK_IPAddressConfigure()

ssp_err_t SF_WIFI_QCA4010_ONCHIP_STACK_IPAddressConfigure ( sf_wifi_qca4010_onchip_stack_ctrl_t *const  p_ctrl,
sf_wifi_qca4010_onchip_stack_ip_cfg_t *const  p_ip_cfg 
)

Configure static IP or enable DHCP.

Implements sf_wifi_qca4010_onchip_stack_api_t::ipAddressConfigure Configures the IP address of the interface or enables DHCP using on CHIP networking stack support.

Parameters
[in]p_ctrlWifi control block
[out]p_ip_cfgPointer to IP Address configuration structure
Return values
SSP_SUCCESSSuccessfully configured IP address.
SSP_ERR_ASSERTIONArgument NULL is passed
SSP_ERR_NOT_OPENWiFi Driver in not open
SSP_ERR_UNSUPPORTEDFunctionality Unsupported
SSP_ERR_IN_USEDevice already in use
SSP_ERR_WIFI_FAILEDIP configuration failed.
SSP_ERR_INTERNALInternal Error occurred

Get Mutex

Configure static IP or enable DHCP

Release the mutex

◆ SF_WIFI_QCA4010_ONCHIP_STACK_Open()

ssp_err_t SF_WIFI_QCA4010_ONCHIP_STACK_Open ( sf_wifi_qca4010_onchip_stack_ctrl_t p_ctrl,
sf_wifi_qca4010_onchip_stack_cfg_t const *const  p_cfg 
)

Open the WiFi Device driver to use the Onchip stack support.

Implements sf_wifi_qca4010_onchip_stack_api_t::open Calls the low level WiFi device driver's Open API to Initialize the WiFi Device Driver, for using onchip stack.

Return values
SSP_SUCCESSModule initialization successful
SSP_ERR_ALREADY_OPENWiFi module is already opened
SSP_ERR_WIFI_INIT_FAILEDWiFi module initialization failed
SSP_ERR_ASSERTIONArgument NULL is passed
SSP_ERR_IN_USEModule in use
SSP_ERR_WIFI_FAILEDFailed to initialize
SSP_ERR_INTERNALInternal Error occurred

Create Mutex for Synchronization

Get Mutex Lock

Initialize Wifi module

Initialize Socket Interface global variable , if module open is successful or already open

Release Mutex

◆ SF_WIFI_QCA4010_ONCHIP_STACK_Ping()

ssp_err_t SF_WIFI_QCA4010_ONCHIP_STACK_Ping ( sf_wifi_qca4010_onchip_stack_ctrl_t *const  p_ctrl,
ULONG *  p_ip_addr,
uint32_t  count,
uint32_t  interval_ms 
)

Ping an IP address on the network.

Parameters
[in]p_ctrlPointer to control structure.
[in]p_ip_addrPointer to IP address.
[in]countNumber of ping attempts.
[in]interval_msInterval between ping attempts.
Return values
SSP_SUCCESSFunction completed successfully.
SSP_ERR_WIFI_FAILEDError occurred with command to Wifi module.
SSP_ERR_ASSERTIONAssertion error occurred.
SSP_ERR_NOT_OPENThe instance has not been opened.
SSP_ERR_IN_USEDevice already in use

Get Mutex

Ping specified IP address

Release the mutex

◆ SF_WIFI_QCA4010_ONCHIP_STACK_VersionGet()

ssp_err_t SF_WIFI_QCA4010_ONCHIP_STACK_VersionGet ( ssp_version_t *const  p_version)

This function gets the version information of the underlying driver.

Implements sf_wifi_qca4010_onchip_stack_api_t::versionGet

Parameters
[out]p_versionDriver version information
Return values
SSP_ERR_ASSERTIONArgument NULL is passed
SSP_SUCCESSSuccessfully read version information