![]() |
Synergy Software Package User's Manual
|
RTOS-integrated WiFi Framework example. Implementation of Silex ULPGN WiFi Driver. It implements the following interfaces: More...
Data Structures | |
| struct | sf_wifi_qca4010_instance_cfg_t |
Macros | |
| #define | SF_WIFI_QCA4010_CODE_VERSION_MAJOR (2U) |
| #define | SF_WIFI_QCA4010_CODE_VERSION_MINOR (0U) |
RTOS-integrated WiFi Framework example. Implementation of Silex ULPGN WiFi Driver. It implements the following interfaces:
| #define SF_WIFI_QCA4010_CODE_VERSION_MAJOR (2U) |
WiFi Interface. Major Version of code that implements the API defined in this file
| #define SF_WIFI_QCA4010_CODE_VERSION_MINOR (0U) |
Minor Version of code that implements the API defined in this file
| ssp_err_t SF_WiFi_QCA4010_Close | ( | sf_wifi_qca4010_ctrl_t *const | p_ctrl | ) |
Stop Wifi QCA4010 driver functionality.
Implements sf_wifi_qca4010_api_t::close De-initializes the lower level interface
| [in] | p_ctrl | Wifi control block |
| SSP_SUCCESS | Wifi Driver stop successfully. |
| SSP_ERR_NOT_OPEN | Device is not opened. |
| SSP_ERR_ASSERTION | Argument NULL is passed |
| SSP_ERR_WIFI_FAILED | Driver De-initialization failed |
| SSP_ERR_IN_USE | Device already in use |
| SSP_ERR_INTERNAL | Internal Error occurred |
Get Mutex
Disconnect from the access point
close module
Set module open flag to false and delete mutex
Release the mutex
Delete the mutex
| ssp_err_t SF_Wifi_QCA4010_CommandSend | ( | sf_wifi_qca4010_ctrl_t *const | p_ctrl, |
| sf_wifi_qca4010_cmd_resp_t *const | p_input_at_command, | ||
| sf_wifi_qca4010_cmd_resp_t *const | p_output, | ||
| uint32_t const | timeout | ||
| ) |
Send custom AT command to SX-ULPGN module.
This API will send AT command provided by user to the SX-ULPGN and will collect the response from the modem and will send it back to the user. If silex is in Data Mode when this API is called then Framework will first switch Modem to Command Mode, then send the AT command and collect the response and then switches the Modem back to Data Mode.
| [in] | p_ctrl | Pointer to the wifi control block |
| [in] | p_input_at_command | Pointer to structure which contains command to send |
| [in,out] | p_output | Pointer to buffer in which response will be sent to user, Also user will pass the size of the buffer which is pointed by p_output |
| [in] | timeout | Timeout for which framework will wait for response in milliseconds |
| SSP_SUCCESS | Successfully sent AT command and collected response |
| SSP_ERR_WIFI_FAILED | Failed to either send AT command or collect response |
| SSP_ERR_NOT_OPEN | Device is not opened |
| SSP_ERR_ASSERTION | Argument NULL is passed |
| SSP_ERR_IN_USE | Device already in use |
Get Mutex
Send AT command
Release the mutex
| ssp_err_t SF_WiFi_QCA4010_Open | ( | sf_wifi_qca4010_ctrl_t * | p_ctrl, |
| sf_wifi_qca4010_cfg_t const *const | p_cfg | ||
| ) |
Initialize WiFi module.
Implements sf_wifi_qca4010_api_t::open This function performs the following tasks: Initializes WiFi module and Configure the parameters as per the p_cfg Update global variables for future use.
| [out] | p_ctrl | Wifi control block |
| [in] | p_cfg | Wifi configuration structure |
| SSP_SUCCESS | Module initialization successful |
| SSP_ERR_ALREADY_OPEN | WiFi module is already opened |
| SSP_ERR_WIFI_INIT_FAILED | WiFi module initialization failed |
| SSP_ERR_ASSERTION | Argument NULL is passed |
| SSP_ERR_IN_USE | Module in use |
| SSP_ERR_WIFI_FAILED | Module initialization failed |
| SSP_ERR_INTERNAL | Internal Error occurred |
Create Mutex for Synchronization
Get Mutex Lock
Open and configure the wifi module
Release Mutex
| ssp_err_t SF_WiFi_QCA4010_ProvisioningSet | ( | sf_wifi_qca4010_ctrl_t *const | p_ctrl, |
| sf_wifi_qca4010_provisioning_t const *const | p_wifi_provisioning | ||
| ) |
Sets the provisioning information.
Implements sf_wifi_qca4010_api_t::provisioningSet Sets Wifi's provisioning information
| [in] | p_ctrl | Wifi control block |
| [in] | p_wifi_provisioning | Wifi provisioning structure |
| SSP_SUCCESS | Successfully set the provisioning information. |
| SSP_ERR_NOT_OPEN | Device not opened |
| SSP_ERR_ASSERTION | Argument NULL is passed |
| SSP_ERR_WIFI_FAILED | Provisioning failed |
| SSP_ERR_IN_USE | Device already in use |
| SSP_ERR_INTERNAL | Internal Error occurred |
| SSP_ERR_INVALID_ARGUMENT | Invalid input value or No commas are accepted in the SSID or key. |
Get Mutex
Provision in AP or client mode
Release the mutex
| ssp_err_t SF_WiFi_QCA4010_Scan | ( | sf_wifi_qca4010_ctrl_t * | p_ctrl, |
| sf_wifi_qca4010_scan_t *const | p_scan, | ||
| uint8_t | count | ||
| ) |
Scans for available APs.
Implements sf_wifi_qca4010_api_t::scan Scan for available AP's SSID and return the list to caller.
| [in] | p_ctrl | Wifi control block |
| [out] | p_scan | Wifi scan structure |
| [in] | count | Number of access points to be scanned |
| SSP_SUCCESS | Successfully scan the network for available APs |
| SSP_ERR_NOT_OPEN | Driver not opened |
| SSP_ERR_WIFI_FAILED | Failed to scan |
| SSP_ERR_ASSERTION | Argument NULL is passed |
| SSP_ERR_IN_USE | Module in use |
| SSP_ERR_INTERNAL | Internal Error occurred |
Get Mutex
Scan for available access points
Release the mutex
| ssp_err_t SF_WiFi_QCA4010_VersionGet | ( | ssp_version_t *const | p_version | ) |
Set driver version based on compile time macros. Implements sf_wifi_qca4010_api_t::versionGet.
| [in] | p_version | Wifi version |
| SSP_SUCCESS | Version information retrieved successfully. |
| SSP_ERR_ASSERTION | The parameter p_version is NULL. |
| ssp_err_t SF_WiFi_QCA4010_WifiStatusGet | ( | sf_wifi_qca4010_ctrl_t *const | p_ctrl, |
| sf_wifi_qca4010_status_t *const | p_wifi_status | ||
| ) |
Get the network information.
Implements sf_wifi_qca4010_api_t::statisticsGet Collect the statistics information of WiFi interface
| [in] | p_ctrl | Wifi control block |
| [out] | p_wifi_status | Wifi status structure |
| SSP_SUCCESS | Successfully get the Statistics information. |
| SSP_ERR_NOT_OPEN | Device not opened |
| SSP_ERR_ASSERTION | Argument NULL is passed |
| SSP_ERR_IN_USE | Module in use |
| SSP_ERR_WIFI_FAILED | Failed reading WiFi statistics information |
| SSP_ERR_INTERNAL | Internal Error occurred |
Get Mutex
Get Wifi Network information
Release the mutex