![]() |
Synergy Software Package User's Manual
|
RTOS-integrated WiFi Framework example. Implementation of Atheros WiFi Driver. It implements the following interfaces: More...
Data Structures | |
| struct | sf_wifi_on_gt202_cfg_t |
Macros | |
| #define | SF_WIFI_GT202_CODE_VERSION_MAJOR (2U) |
| #define | SF_WIFI_GT202_CODE_VERSION_MINOR (0U) |
Functions | |
| ssp_err_t | SF_WIFI_GT202_Open (sf_wifi_ctrl_t *p_ctrl, sf_wifi_cfg_t const *const p_cfg) |
| Initialize WiFi module. More... | |
| ssp_err_t | SF_WIFI_GT202_Close (sf_wifi_ctrl_t *const p_ctrl) |
| Stop WiFi module functionality. More... | |
| ssp_err_t | SF_WIFI_GT202_ProvisioningSet (sf_wifi_ctrl_t *const p_ctrl, sf_wifi_provisioning_t const *const p_wifi_provisioning) |
| Provisions the WiFi module. More... | |
| ssp_err_t | SF_WIFI_GT202_ProvisioningGet (sf_wifi_ctrl_t *const p_ctrl, sf_wifi_provisioning_t *const p_wifi_provisioning) |
| Reads the current WiFi Provisioning information of the WiFi module. More... | |
| ssp_err_t | SF_WIFI_GT202_MulticastListAdd (sf_wifi_ctrl_t *const p_ctrl, uint8_t const *const p_mac_addr) |
| Add MAC address in multicast list. More... | |
| ssp_err_t | SF_WIFI_GT202_MulticastListDelete (sf_wifi_ctrl_t *const p_ctrl, uint8_t const *const p_mac_addr) |
| Delete MAC address from multicast list. More... | |
| ssp_err_t | SF_WIFI_GT202_StatisticsGet (sf_wifi_ctrl_t *const p_ctrl, sf_wifi_stats_t *const p_wifi_device_stats) |
| Get the interface statistics. More... | |
| ssp_err_t | SF_WIFI_GT202_Transmit (sf_wifi_ctrl_t *const p_ctrl, uint8_t *const p_buf, uint32_t length) |
| Transmit data packets. More... | |
| ssp_err_t | SF_WIFI_GT202_InfoGet (sf_wifi_ctrl_t *const p_ctrl, sf_wifi_info_t *const p_wifi_info) |
| Get WiFi module information. More... | |
| ssp_err_t | SF_WIFI_GT202_Scan (sf_wifi_ctrl_t *const p_ctrl, sf_wifi_scan_t *const p_scan, uint8_t *const p_cnt) |
| Scans for available APs. More... | |
| ssp_err_t | SF_WIFI_GT202_ACLAdd (sf_wifi_ctrl_t *const p_ctrl, uint8_t const *const p_mac) |
| Add MAC address from Access control list. More... | |
| ssp_err_t | SF_WIFI_GT202_ACLDelete (sf_wifi_ctrl_t *const p_ctrl, uint8_t const *const p_mac) |
| Delete MAC address from Access control list. More... | |
| ssp_err_t | SF_WIFI_GT202_MACAddressSet (sf_wifi_ctrl_t *const p_ctrl, uint8_t const *const p_mac) |
| Set MAC address of WiFi module. More... | |
| ssp_err_t | SF_WIFI_GT202_MACAddressGet (sf_wifi_ctrl_t *const p_ctrl, uint8_t *const p_mac) |
| Get MAC address of WiFi module. More... | |
| ssp_err_t | SF_WIFI_GT202_WpsStart (sf_wifi_ctrl_t *const p_ctrl, sf_wifi_wps_t const *const p_wps) |
| Start WiFi WPS. More... | |
| ssp_err_t | SF_WIFI_GT202_VersionGet (ssp_version_t *const p_version) |
| Set driver version based on compile time macros. Implements sf_wifi_api_t::versionGet. More... | |
RTOS-integrated WiFi Framework example. Implementation of Atheros WiFi Driver. It implements the following interfaces:
| #define SF_WIFI_GT202_CODE_VERSION_MAJOR (2U) |
WiFi Interface. Major Version of code that implements the API defined in this file
| #define SF_WIFI_GT202_CODE_VERSION_MINOR (0U) |
Minor Version of code that implements the API defined in this file
| ssp_err_t SF_WIFI_GT202_ACLAdd | ( | sf_wifi_ctrl_t *const | p_ctrl, |
| uint8_t const *const | p_mac | ||
| ) |
Add MAC address from Access control list.
Implements sf_wifi_api_t::ACLAdd Add specified mac address in access control list
| SSP_ERR_UNSUPPORTED | Functionality is not supported. |
| ssp_err_t SF_WIFI_GT202_ACLDelete | ( | sf_wifi_ctrl_t *const | p_ctrl, |
| uint8_t const *const | p_mac | ||
| ) |
Delete MAC address from Access control list.
Implements sf_wifi_api_t::ACLDelete Delete specified mac address from access control list
| SSP_ERR_UNSUPPORTED | Functionality is not supported. |
| ssp_err_t SF_WIFI_GT202_Close | ( | sf_wifi_ctrl_t *const | p_ctrl | ) |
Stop WiFi module functionality.
Implements sf_wifi_api_t::close This function performs the following tasks: Update global variables for future use. Disable the Interrupt and suspend the driver task thread.
| SSP_SUCCESS | Suspend the driver functionality. |
| SSP_ERR_NOT_OPEN | Device is not opened. |
| SSP_ERR_ASSERTION | Argument NULL is passed |
| SSP_ERR_IN_USE | Module in use |
| SSP_ERR_WIFI_FAILED | Failed to close |
Dis-associate or Stop Access Point
Stop WiFi Driver
Delete byte pool used by WiFi driver
Terminate and Delete WiFi Driver task thread
Set init done flag to false and driver handle to NULL
| ssp_err_t SF_WIFI_GT202_InfoGet | ( | sf_wifi_ctrl_t *const | p_ctrl, |
| sf_wifi_info_t *const | p_wifi_info | ||
| ) |
Get WiFi module information.
Implements sf_wifi_api_t::infoGet Get WiFi module information like chipset/driver information, RSSI, noise level, link quality
| SSP_SUCCESS | Successfully get the WiFi information |
| SSP_ERR_NOT_OPEN | Driver not opened. |
| SSP_ERR_ASSERTION | Argument NULL is passed |
| SSP_ERR_WIFI_FAILED | Failed reading WiFi information |
| SSP_ERR_IN_USE | Module in use |
| ssp_err_t SF_WIFI_GT202_MACAddressGet | ( | sf_wifi_ctrl_t *const | p_ctrl, |
| uint8_t *const | p_mac | ||
| ) |
Get MAC address of WiFi module.
Implements sf_wifi_api_t::getMACAddress Read configured MAC address of the WiFi module.
| SSP_SUCCESS | Successfully reads the mac address. |
| SSP_ERR_WIFI_FAILED | Failed to read mac address |
| SSP_ERR_NOT_OPEN | Driver not opened |
| SSP_ERR_IN_USE | Module in use |
| SSP_ERR_ASSERTION | Argument NULL is passed |
Driver param structure for ioctl
| ssp_err_t SF_WIFI_GT202_MACAddressSet | ( | sf_wifi_ctrl_t *const | p_ctrl, |
| uint8_t const *const | p_mac | ||
| ) |
Set MAC address of WiFi module.
Implements sf_wifi_api_t::setMACAddress Configure MAC address of the WiFi module.
| SSP_ERR_UNSUPPORTED | Functionality is not supported. |
| ssp_err_t SF_WIFI_GT202_MulticastListAdd | ( | sf_wifi_ctrl_t *const | p_ctrl, |
| uint8_t const *const | p_mac_addr | ||
| ) |
Add MAC address in multicast list.
Implements sf_wifi_api_t::multicastListAdd Adds specified MAC address in Multicast list
| SSP_ERR_UNSUPPORTED | Functionality is not supported by WiFi module |
| ssp_err_t SF_WIFI_GT202_MulticastListDelete | ( | sf_wifi_ctrl_t *const | p_ctrl, |
| uint8_t const *const | p_mac_addr | ||
| ) |
Delete MAC address from multicast list.
Implements sf_wifi_api_t::multicastListDelete Deletes specified MAC Address from Multicast list
| SSP_ERR_UNSUPPORTED | Functionality is not supported. |
| ssp_err_t SF_WIFI_GT202_Open | ( | sf_wifi_ctrl_t * | p_ctrl, |
| sf_wifi_cfg_t const *const | p_cfg | ||
| ) |
Initialize WiFi module.
Implements sf_wifi_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.
| SSP_SUCCESS | Module initialization successful |
| SSP_ERR_ALREADY_OPEN | WiFi module is already opened |
| SSP_ERR_WIFI_CONFIG_FAILED | WiFi module Configuration failed |
| 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 | Failed to initialize |
| SSP_ERR_UNSUPPORTED | Unsupported Parameter configuration |
| SSP_ERR_INTERNAL | Extended Configuration is NULL |
| ssp_err_t SF_WIFI_GT202_ProvisioningGet | ( | sf_wifi_ctrl_t *const | p_ctrl, |
| sf_wifi_provisioning_t *const | p_wifi_provisioning | ||
| ) |
Reads the current WiFi Provisioning information of the WiFi module.
Implements sf_wifi_api_t::provisioningGet Reads the provisioning information
| SSP_SUCCESS | Successfully reads provisioning information |
| SSP_ERR_NOT_OPEN | Device is not opened |
| SSP_ERR_WIFI_FAILED | Failed to get provisioning information |
| SSP_ERR_ASSERTION | Argument NULL is passed |
| ssp_err_t SF_WIFI_GT202_ProvisioningSet | ( | sf_wifi_ctrl_t *const | p_ctrl, |
| sf_wifi_provisioning_t const *const | p_wifi_provisioning | ||
| ) |
Provisions the WiFi module.
Implements sf_wifi_api_t::provisioningSet This function performs the following tasks: Provisions the WiFi driver. Start WiFi interface in AP or Client mode as provisioned.
| SSP_SUCCESS | Successfully provisioned the driver. |
| SSP_ERR_ASSERTION | Argument NULL is passed |
| SSP_ERR_NOT_OPEN | Device is not opened |
| SSP_ERR_WIFI_FAILED | Failed to set provisioning configuration. |
| SSP_ERR_INVALID_SIZE | Invalid length of security key |
| SSP_ERR_INVALID_ARGUMENT | Invalid encryption type for given security |
| SSP_ERR_IN_USE | Module in use |
if is_opened
| ssp_err_t SF_WIFI_GT202_Scan | ( | sf_wifi_ctrl_t *const | p_ctrl, |
| sf_wifi_scan_t *const | p_scan, | ||
| uint8_t *const | p_cnt | ||
| ) |
Scans for available APs.
Implements sf_wifi_api_t::scan Scan for available AP's SSID and return the list to caller.
| 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_t SF_WIFI_GT202_StatisticsGet | ( | sf_wifi_ctrl_t *const | p_ctrl, |
| sf_wifi_stats_t *const | p_wifi_device_stats | ||
| ) |
Get the interface statistics.
Implements sf_wifi_api_t::statisticsGet Collect the statistics information of WiFi interface
| SSP_SUCCESS | Successfully get the Statistics information. |
| SSP_ERR_UNSUPPORTED | Functionality is not supported. |
| 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 |
Statistics are not available in case of On chip Stack
| ssp_err_t SF_WIFI_GT202_Transmit | ( | sf_wifi_ctrl_t *const | p_ctrl, |
| uint8_t *const | p_buf, | ||
| uint32_t | length | ||
| ) |
Transmit data packets.
Implements sf_wifi_api_t::transmit Adds packets in transmit Queue.
| SSP_SUCCESS | Successfully added the packet in transmit queue |
| SSP_ERR_NOT_OPEN | WiFi driver is not opened |
| SSP_ERR_OUT_OF_MEMORY | Memory allocation failed |
| SSP_ERR_WIFI_TRANSMIT_FAILED | Transmission failed |
| SSP_ERR_ASSERTION | Argument NULL is passed |
| SSP_ERR_IN_USE | Module in use |
| SSP_ERR_WIFI_FAILED | Failed to transmit |
| SSP_ERR_UNSUPPORTED | When using On-Chip stack |
Transmit function will be used only when using NSAL
| ssp_err_t SF_WIFI_GT202_VersionGet | ( | ssp_version_t *const | p_version | ) |
Set driver version based on compile time macros. Implements sf_wifi_api_t::versionGet.
| SSP_SUCCESS | Successful close. |
| SSP_ERR_ASSERTION | The parameter p_version is NULL. |
| ssp_err_t SF_WIFI_GT202_WpsStart | ( | sf_wifi_ctrl_t *const | p_ctrl, |
| sf_wifi_wps_t const *const | p_wps | ||
| ) |
Start WiFi WPS.
Implements sf_wifi_api_t::wpsStart Start WPS to connect device.
| SSP_SUCCESS | WPS started Successfully and device is able to connect |
| SSP_ERR_INTERNAL | Internal error |
| SSP_ERR_WIFI_FAILED | Failed to connect WiFi module using WPS method |
| SSP_ERR_NOT_OPEN | Driver not opened |
| SSP_ERR_IN_USE | Module in use |
| SSP_ERR_ASSERTION | Argument NULL is passed |
| SSP_ERR_INVALID_ARGUMENT | Invalid input parameters |
| SSP_ERR_WIFI_WPS_MULTIPLE_PB_SESSIONS | Another Push button session is already in progress |
| SSP_ERR_TIMEOUT | WPS Timer expired |
| SSP_ERR_WIFI_WPS_M2D_RECEIVED | M2D Error code received which means Registrar is unable to authenticate with the Enrollee |
| SSP_ERR_WIFI_WPS_AUTHENTICATION_FAILED | WPS authentication failed |
| SSP_ERR_WIFI_WPS_CANCELLED | WPS Request was not accepted by underlying driver |
| SSP_ERR_WIFI_WPS_INVALID_PIN | Invalid WPS Pin |