![]() |
RAFW Flexible Software Package Documentation
Release v2.1.0
|
|
Driver for the WIFI device on RA6W1/RA6W2. This module implements the WiFi Interface.
| Configuration | Options | Default | Description |
|---|---|---|---|
| Regulatory TX Power Override | |||
| Regulatory TX Power Override > FCC NCC IC ANATEL | |||
| Regulatory TX Power Override > FCC NCC IC ANATEL > 2.4 GHz OFDM | |||
| CH 1-11 (11 hex bytes, CSV) | Manual Entry | 0x09,0x09,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c | FCC 2.4 GHz OFDM CH 1-11 power words (uint8_t dBm; sentinels 0x1f=max, 0x7f=unused). |
| CH 12-14 (3 hex bytes, CSV) | Manual Entry | 0x7f,0x7f,0x7f | FCC 2.4 GHz OFDM CH 12-14 power words. |
| Regulatory TX Power Override > FCC NCC IC ANATEL > 2.4 GHz DSSS | |||
| CH 1-11 (11 hex bytes, CSV) | Manual Entry | 0x0c,0x0c,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11 | FCC 2.4 GHz DSSS CH 1-11 power words. |
| CH 12-14 (3 hex bytes, CSV) | Manual Entry | 0x7f,0x7f,0x7f | FCC 2.4 GHz DSSS CH 12-14 power words. |
| Regulatory TX Power Override > FCC NCC IC ANATEL > 5 GHz Low | |||
| UNII-1 CH 36-48 (4 hex bytes, CSV) | Manual Entry | 0x0c,0x0c,0x0c,0x0a | FCC 5 GHz UNII-1 (CH 36, 40, 44, 48) power words. |
| UNII-2 CH 52-64 DFS (4 hex bytes, CSV) | Manual Entry | 0x0b,0x0b,0x0b,0x09 | FCC 5 GHz UNII-2 DFS (CH 52, 56, 60, 64) power words. |
| Regulatory TX Power Override > FCC NCC IC ANATEL > 5 GHz Mid | |||
| UNII-2e CH 100-144 DFS (12 hex bytes, CSV) | Manual Entry | 0x0c,0x0c,0x0c,0x0c,0x12,0x12,0x12,0x12,0x12,0x12,0x0f,0x0f | FCC 5 GHz UNII-2e DFS (CH 100..144) power words. |
| UNII-3 CH 149-161 (4 hex bytes, CSV) | Manual Entry | 0x0a,0x0a,0x0c,0x0c | FCC 5 GHz UNII-3 (CH 149, 153, 157, 161) power words. |
| Regulatory TX Power Override > FCC NCC IC ANATEL > 5 GHz High | |||
| ISM CH 165 (1 hex byte) | Manual Entry | 0x0c | FCC 5 GHz ISM (CH 165) power word. |
| UNII-4-1 CH 169 (1 hex byte) | Manual Entry | 0x7f | FCC 5 GHz UNII-4-1 (CH 169) power word. |
| UNII-4-2 CH 173-177 (2 hex bytes, CSV) | Manual Entry | 0x7f,0x7f | FCC 5 GHz UNII-4-2 (CH 173, 177) power words. |
| Enable |
| Enabled | Enable the FCC override row. Affects countries: US, CA, BR, TW. |
| Regulatory TX Power Override > ETSI | |||
| Regulatory TX Power Override > ETSI > 2.4 GHz OFDM | |||
| CH 1-11 (11 hex bytes, CSV) | Manual Entry | 0x0d,0x0d,0x0e,0x0e,0x0e,0x0e,0x0e,0x0e,0x0e,0x0e,0x0e | ETSI 2.4 GHz OFDM CH 1-11 power words. |
| CH 12-14 (3 hex bytes, CSV) | Manual Entry | 0x0d,0x0d,0x7f | ETSI 2.4 GHz OFDM CH 12-14 power words. |
| Regulatory TX Power Override > ETSI > 2.4 GHz DSSS | |||
| CH 1-11 (11 hex bytes, CSV) | Manual Entry | 0x10,0x10,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c | ETSI 2.4 GHz DSSS CH 1-11 power words. |
| CH 12-14 (3 hex bytes, CSV) | Manual Entry | 0x0c,0x0c,0x7f | ETSI 2.4 GHz DSSS CH 12-14 power words. |
| Regulatory TX Power Override > ETSI > 5 GHz Low | |||
| UNII-1 CH 36-48 (4 hex bytes, CSV) | Manual Entry | 0x0b,0x0b,0x0b,0x0c | ETSI 5 GHz UNII-1 power words. |
| UNII-2 CH 52-64 DFS (4 hex bytes, CSV) | Manual Entry | 0x0b,0x0b,0x0b,0x0b | ETSI 5 GHz UNII-2 DFS power words. |
| Regulatory TX Power Override > ETSI > 5 GHz Mid | |||
| UNII-2e CH 100-144 DFS (12 hex bytes, CSV) | Manual Entry | 0x0b,0x0b,0x0b,0x0b,0x0b,0x0b,0x0b,0x0b,0x0b,0x0b,0x0b,0x0b | ETSI 5 GHz UNII-2e DFS power words. |
| UNII-3 CH 149-161 (4 hex bytes, CSV) | Manual Entry | 0x09,0x09,0x09,0x09 | ETSI 5 GHz UNII-3 power words. |
| Regulatory TX Power Override > ETSI > 5 GHz High | |||
| ISM CH 165 (1 hex byte) | Manual Entry | 0x09 | ETSI 5 GHz ISM power word. |
| UNII-4-1 CH 169 (1 hex byte) | Manual Entry | 0x7f | ETSI 5 GHz UNII-4-1 power word. |
| UNII-4-2 CH 173-177 (2 hex bytes, CSV) | Manual Entry | 0x7f,0x7f | ETSI 5 GHz UNII-4-2 power words. |
| Enable |
| Enabled | Enable the ETSI override row. Affects countries: EU. |
| Regulatory TX Power Override > Telec JP | |||
| Regulatory TX Power Override > Telec JP > 2.4 GHz OFDM | |||
| CH 1-11 (11 hex bytes, CSV) | Manual Entry | 0x0d,0x0d,0x0e,0x0e,0x0e,0x0e,0x0e,0x0e,0x0e,0x0e,0x0e | JP 2.4 GHz OFDM CH 1-11 power words. |
| CH 12-14 (3 hex bytes, CSV) | Manual Entry | 0x0d,0x0d,0x0a | JP 2.4 GHz OFDM CH 12-14 power words. |
| Regulatory TX Power Override > Telec JP > 2.4 GHz DSSS | |||
| CH 1-11 (11 hex bytes, CSV) | Manual Entry | 0x0e,0x0e,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12 | JP 2.4 GHz DSSS CH 1-11 power words. |
| CH 12-14 (3 hex bytes, CSV) | Manual Entry | 0x10,0x10,0x0a | JP 2.4 GHz DSSS CH 12-14 power words. |
| Regulatory TX Power Override > Telec JP > 5 GHz Low | |||
| UNII-1 CH 36-48 (4 hex bytes, CSV) | Manual Entry | 0x0a,0x0a,0x0a,0x04 | JP 5 GHz UNII-1 power words. |
| UNII-2 CH 52-64 DFS (4 hex bytes, CSV) | Manual Entry | 0x04,0x0a,0x0a,0x09 | JP 5 GHz UNII-2 DFS power words. |
| Regulatory TX Power Override > Telec JP > 5 GHz Mid | |||
| UNII-2e CH 100-144 DFS (12 hex bytes, CSV) | Manual Entry | 0x0a,0x0a,0x0a,0x0a,0x0a,0x0a,0x0a,0x0a,0x0a,0x0a,0x07,0x07 | JP 5 GHz UNII-2e DFS power words. |
| UNII-3 CH 149-161 (4 hex bytes, CSV) | Manual Entry | 0x7f,0x7f,0x7f,0x7f | JP 5 GHz UNII-3 power words. |
| Regulatory TX Power Override > Telec JP > 5 GHz High | |||
| ISM CH 165 (1 hex byte) | Manual Entry | 0x7f | JP 5 GHz ISM power word. |
| UNII-4-1 CH 169 (1 hex byte) | Manual Entry | 0x7f | JP 5 GHz UNII-4-1 power word. |
| UNII-4-2 CH 173-177 (2 hex bytes, CSV) | Manual Entry | 0x7f,0x7f | JP 5 GHz UNII-4-2 power words. |
| Enable |
| Enabled | Enable the Telec/Japan override row. Affects countries: JP. |
| Regulatory TX Power Override > KC Korea | |||
| Regulatory TX Power Override > KC Korea > 2.4 GHz OFDM | |||
| CH 1-11 (11 hex bytes, CSV) | Manual Entry | 0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10 | KC 2.4 GHz OFDM CH 1-11 power words. |
| CH 12-14 (3 hex bytes, CSV) | Manual Entry | 0x10,0x10,0x7f | KC 2.4 GHz OFDM CH 12-14 power words. |
| Regulatory TX Power Override > KC Korea > 2.4 GHz DSSS | |||
| CH 1-11 (11 hex bytes, CSV) | Manual Entry | 0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16 | KC 2.4 GHz DSSS CH 1-11 power words. |
| CH 12-14 (3 hex bytes, CSV) | Manual Entry | 0x16,0x16,0x7f | KC 2.4 GHz DSSS CH 12-14 power words. |
| Regulatory TX Power Override > KC Korea > 5 GHz Low | |||
| UNII-1 CH 36-48 (4 hex bytes, CSV) | Manual Entry | 0x0f,0x0f,0x0f,0x0c | KC 5 GHz UNII-1 power words. |
| UNII-2 CH 52-64 DFS (4 hex bytes, CSV) | Manual Entry | 0x0e,0x0e,0x0e,0x0e | KC 5 GHz UNII-2 DFS power words. |
| Regulatory TX Power Override > KC Korea > 5 GHz Mid | |||
| UNII-2e CH 100-144 DFS (12 hex bytes, CSV) | Manual Entry | 0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0e,0x0e,0x0e,0x0e | KC 5 GHz UNII-2e DFS power words. |
| UNII-3 CH 149-161 (4 hex bytes, CSV) | Manual Entry | 0x0e,0x0e,0x0e,0x0e | KC 5 GHz UNII-3 power words. |
| Regulatory TX Power Override > KC Korea > 5 GHz High | |||
| ISM CH 165 (1 hex byte) | Manual Entry | 0x0b | KC 5 GHz ISM power word. |
| UNII-4-1 CH 169 (1 hex byte) | Manual Entry | 0x7f | KC 5 GHz UNII-4-1 power word. |
| UNII-4-2 CH 173-177 (2 hex bytes, CSV) | Manual Entry | 0x7f,0x7f | KC 5 GHz UNII-4-2 power words. |
| Enable |
| Enabled | Enable the KC (Korea) override row. Affects countries: KR. Defaults are seeded from the existing in-tree KC baseline (def1). |
| Master Enable |
| Disabled | Master enable for the customer-editable Regulatory TX Power Override table. When disabled (default), no override macros take effect and the build is byte-identical to stock. |
| Parameter Checking |
| Default (BSP) | If selected code for parameter checking is included in the build. The Default (BSP) value is BSP_CFG_PARAM_CHECKING_ENABLE. It is the value of RRQ Common|Parameter checking under BSP |
| Watchdog Service Support |
| Enabled | Enable when using the Watchdog Service. |
| BLE CLI |
| Disabled | Enable BLE CLI support |
| Enable MQTT on WI-FI |
| Disabled | Enable MQTT on WIFI |
| ATCMD Task Support |
| Disable | Enable support for the AT interface. |
| Configuration | Options | Default | Description |
|---|---|---|---|
| General | |||
| Name | Name must be a valid C symbol | g_wifi0 | Module name. |
| Interrupts | |||
| Wi-Fi Interrupts Priority Level | MCU Specific Options | Select the interrupt priority | |
| Co-Existence | |||
| Co-Existence > Pins | |||
| Coex_ASC1 Port | Refer to the RAFW Configuration tool for available options. | 00 | Specify the antenna selection 1 port for Co-Existence. |
| Coex_ASC1 Pin | Refer to the RAFW Configuration tool for available options. | 07 | Specify the antenna selection 1 pin for Co-Existence. |
| Coex_ASC2 Port | Refer to the RAFW Configuration tool for available options. | 00 | Specify the antenna selection 2 port for Co-Existence. |
| Coex_ASC2 Pin | Refer to the RAFW Configuration tool for available options. | 06 | Specify the antenna selection 2 pin for Co-Existence. |
| BT_ACT Port | Refer to the RAFW Configuration tool for available options. | 01 | Specify the BT-ACT port for Co-Existence. |
| BT_ACT Pin | Refer to the RAFW Configuration tool for available options. | 15 | Specify the BT-ACT pin for Co-Existence. |
| Co-Existence > BLE Operation Mode | |||
| ASC1 Reset Value |
| High | Specify the value for antenna selection 1 in BLE operation for 5G. |
| ASC2 Reset Value |
| Low | Specify the value for antenna selection 2 in BLE operation for 5G. |
| ZigBee/Bluetooth Co-Existence |
| Disabled | Enable ZigBee/Bluetooth Co-Existence support |
This is a basic example of minimal use of WIFI STA.
Data Structures | |
| struct | wifi_coex_cfg_t |
| struct | WIFINetworkParamsExt_t |
Typedefs | |
| typedef void(* | WIFIEventExtHandler_t) (WIFIEventExt_t *xEventExt) |
| Wi-Fi Extended event handler definition. More... | |
Enumerations | |
| enum | e_wifi_device_mode_ext_t |
| enum | WIFIPmf_t |
| enum | WIFISecurityExt_t |
| enum | WIFIEventExtType_t |
| struct wifi_coex_cfg_t |
User configuration structure, used in open function
| struct WIFINetworkParamsExt_t |
Parameters passed to WIFI_ConfigureAPExt API for AP configuration
| Data Fields | ||
|---|---|---|
| WIFINetworkParams_t | xNetworkParams | Basic configuration. |
| WIFIEnterpriseNetParams_t | xEntNetParams | Enterprise security configuration. |
| WIFIApNetParams_t | xApNetParams | AP configuration. |
| WIFIBand_t | ucBand | Band to configure. |
| e_wifi_phy_mode_ext_t | ucWiFi_mode | Wi-Fi PHY mode to configure (a, b, g ,n, ...) |
| bool | hidden_ssid | AP is using hidden SSID. |
| WIFIPmf_t | pmf | Protected Management Frame mode. |
| char | sae_groups[wificonfigMAX_SAE_GROUPS_LEN] | String contains all the WPA3 sae group ids. |
| uint8_t | ucNumChannels | Number of channels to scan. |
| uint32_t * | pucChannelList | Pointer to list of channels to scan. |
| typedef void(* WIFIEventExtHandler_t) (WIFIEventExt_t *xEventExt) |
Wi-Fi Extended event handler definition.
| [in] | xEventExt | - Wi-Fi Extended event data structure. |
| enum WIFIPmf_t |
Wi-Fi PMF (Protected Management Frames) modes
| enum WIFISecurityExt_t |
Wi-Fi Security extended types, backwards compatible with WIFISecurity_t
| enum WIFIEventExtType_t |
| fsp_err_t rm_wifi_wep_network_params_check | ( | const WIFINetworkParams_t *const | pxNetworkParams | ) |
Checks the parameters of WEP security.
| [in] | pxNetworkParams | Network parameters. |
| FSP_SUCCESS | WIFI successfully configured. |
| FSP_ERR_WIFI_FAILED | The check of WEP network parameters have failed. |
| fsp_err_t rm_wifi_enterprise_network_params_check | ( | const WIFINetworkParamsExt_t *const | pxNetworkParamsExt | ) |
Checks the parameters of Enterprise WPA/WPA2/WAP3 security.
| [in] | pxNetworkParamsExt | Extended Network parameters. |
| FSP_SUCCESS | WIFI successfully configured. |
| FSP_ERR_WIFI_FAILED | The check of Enterprise network parameters have failed. |
| fsp_err_t rm_wifi_open | ( | wifi_cfg_t const *const | p_cfg | ) |
Opens and configures the WIFI module.
| [in] | p_cfg | Pointer to configuration structure. |
| FSP_SUCCESS | WIFI successfully configured. |
| FSP_ERR_ASSERTION | NULL pointer to configuration or watchdog service instance. |
| fsp_err_t rm_wifi_open_connect | ( | wifi_cfg_t const *const | p_cfg | ) |
Opens and configures the WIFI module, and connects to previously configured AP using rm_wifi_auto_config.
| [in] | p_cfg | Pointer to configuration structure. |
| FSP_SUCCESS | Function completed successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with retrieving AP parameters from NVRAM or with connection. |
| FSP_ERR_WIFI_CONFIG_FAILED | Error occurred with save_config. |
| FSP_ERR_WIFI_AP_NOT_CONNECTED | Error occurred with select_network |
| fsp_err_t rm_wifi_close | ( | ) |
Close WIFI module.
| FSP_SUCCESS | WIFI closed successfully. |
| fsp_err_t rm_wifi_connect | ( | const WIFINetworkParams_t *const | pxNetworkParams, |
| bool | hidden_ssid, | ||
| WIFIPmf_t | pmf, | ||
| const char * | sae_groups, | ||
| uint8_t | ucNumChannels, | ||
| uint32_t * | pucChannelList | ||
| ) |
Connects to the specified Wifi Access Point.
| [in] | pxNetworkParams | Network parameters validated by WIFI_NetworkParams_check(). |
| [in] | hidden_ssid | Connect to AP with hidden SSID. |
| [in] | pmf | Specify Protected Management Frames mode (only valid in some WIFISecurity modes) |
| [in] | sae_groups | Specify the SAE groups IDs (valid on WPA3 SAE security mode only) |
| [in] | ucNumChannels | Number of channels to scan (0 = scan all) |
| [in] | pucChannelList | Pointer to list of channels to scan (NULL = scan all) |
| FSP_SUCCESS | Function completed successfully. |
| FSP_ERR_WIFI_CONFIG_FAILED | Error occurred with save_config. |
| FSP_ERR_WIFI_AP_NOT_CONNECTED | Error occurred with select_network |
| fsp_err_t rm_wifi_connect_Ext | ( | const WIFINetworkParamsExt_t *const | pxNetworkParamsExt | ) |
Connects to the specified Wifi Access Point.
| [in] | pxNetworkParamsExt | Extended network parameters. |
| FSP_SUCCESS | Function completed successfully. |
| FSP_ERR_WIFI_CONFIG_FAILED | Error occurred with save_config. |
| FSP_ERR_WIFI_AP_NOT_CONNECTED | Error occurred with select_network |
| fsp_err_t rm_wifi_auto_config | ( | const WIFINetworkParams_t *const | pxNetworkParams | ) |
Sets the Wi-Fi Access Point (AP) parameters to be used when connecting using rm_wifi_open_connect.
| [in] | pxNetworkParams | Network parameters. |
| FSP_SUCCESS | Function completed successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred. |
| fsp_err_t rm_wifi_disconnect | ( | ) |
Disconnects from connected AP.
| FSP_SUCCESS | WIFI disconnected successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_set_mode | ( | e_wifi_device_mode_ext_t | xDeviceMode | ) |
Set WIFI Mode
| FSP_SUCCESS | Set Mode successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_get_mode | ( | e_wifi_device_mode_ext_t * | xDeviceModeExt | ) |
Get WIFI Mode
| FSP_SUCCESS | Get Mode successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_p2p | ( | unsigned char | oper_chan, |
| unsigned char | listen_chan, | ||
| unsigned char | go_intent, | ||
| const char * | ssid_postfix | ||
| ) |
WIFI P2P
| FSP_SUCCESS | Set P2P successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_p2p_find | ( | void | ) |
WIFI P2P find
| FSP_SUCCESS | Set P2P successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_p2p_connect | ( | const char * | p2p_addr, |
| const char * | wps_method | ||
| ) |
WIFI P2P connect
| FSP_SUCCESS | Connected to P2P device successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_p2p_group_remove | ( | void | ) |
WIFI P2P group remove
| FSP_SUCCESS | Removed P2P group successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_p2p_group_add | ( | void | ) |
WIFI P2P group add
| FSP_SUCCESS | Added P2P group successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_p2p_peers | ( | char * | reply | ) |
WIFI P2P peers
| FSP_SUCCESS | Listed known P2P peers successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_p2p_accept | ( | void | ) |
WIFI P2P accept
| FSP_SUCCESS | Accepted P2P connection successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_p2p_set_oper_chan | ( | unsigned char | channel | ) |
WIFI P2P Set Operating Channel
| FSP_SUCCESS | Set operating channel successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_p2p_set_listen_chan | ( | unsigned char | channel | ) |
WIFI P2P Set Listen Channel
| FSP_SUCCESS | Set listen channel successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_p2p_set_go_intent | ( | unsigned char | intent | ) |
WIFI P2P Set GO Intent
| FSP_SUCCESS | Set GO Intent successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_p2p_set_find_timeout | ( | unsigned char | intent | ) |
WIFI P2P Set Find Timeout
| FSP_SUCCESS | Set Find Timeout successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_p2p_set_ssid_postfix | ( | const char * | ssid_postfix | ) |
WIFI P2P Set SSID Postfix
| FSP_SUCCESS | Set SSID Postfix successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_p2p_get | ( | char * | p2pconfig | ) |
WIFI P2P Get Parameter
| FSP_SUCCESS | Retrieved P2P parameter successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_isolate | ( | bool | enable_isolation | ) |
Isolate STAs connected to the AP from each other (or cancel isolation).
| FSP_SUCCESS | Isolate/connect the STAs successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_acl_mac | ( | const char * | mac_addr | ) |
Register the MAC Address of a Station in the ACL
| FSP_SUCCESS | mac_addr added successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with adding to ACL. |
| fsp_err_t rm_wifi_acl | ( | const char * | filter_mode | ) |
Set ACL to allow/deny/clear"
| FSP_SUCCESS | Set the MAC Filtering to [filter_mode] successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with setting MAC Filtering to the mode. |
| fsp_err_t rm_wifi_wmm | ( | bool | enable_wmm | ) |
Set WMM function to enable/disable
| FSP_SUCCESS | WMM function set successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with setting WMM. |
| fsp_err_t rm_wifi_wmm_ps | ( | bool | enable_wmm_ps | ) |
Set WMM-PS function to enable/disable
| FSP_SUCCESS | WMM-PS function set successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with setting WMM-PS. |
| fsp_err_t rm_wifi_wps_pbc | ( | const char * | mac_addr | ) |
Initiate WPS Push Button Configuration (PBC)
| FSP_SUCCESS | WPS PBC was initiated successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with initiating WPS PBC. |
| fsp_err_t rm_wifi_wps_pin | ( | const char * | mac_addr, |
| const char * | pin, | ||
| char * | gen_pin | ||
| ) |
Initiate WPS PIN method
| FSP_SUCCESS | WPS PIN was initiated successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with initiating WPS PIN. |
| fsp_err_t rm_wifi_wps_cancel | ( | void | ) |
Cancel any ongoing WPS operation
| FSP_SUCCESS | WPS session was canceled successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with cancelling WPS. |
| fsp_err_t rm_wifi_wps_ap_pin | ( | const char * | state, |
| const char * | arg1, | ||
| const char * | arg2, | ||
| char * | gen_pin | ||
| ) |
Manage the WPS AP PIN state or value
| FSP_SUCCESS | Operation was completed successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with enabling/disabling/generating. |
| fsp_err_t rm_wifi_network_add | ( | const WIFINetworkProfile_t *const | pxNetworkProfile, |
| uint16_t | index | ||
| ) |
Add a network with the specified index.
| [in] | pxNetworkProfile | Pointer to a structure which holds the Wi-Fi network parameters. |
| [in] | index | network index. |
| FSP_SUCCESS | Function completed successfully. |
| FSP_ERR_WIFI_CONFIG_FAILED | Error occurred with save_config. |
| fsp_err_t rm_wifi_network_del | ( | uint16_t | index | ) |
Delete a network with specified index.
| [in] | index | network index. |
| FSP_SUCCESS | Function completed successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with remove_network. |
| fsp_err_t rm_wifi_mac_addr_get | ( | uint8_t * | p_macaddr | ) |
Get MAC address.
| [out] | p_macaddr | Pointer array to hold mac address. |
| FSP_SUCCESS | Function completed successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_scan | ( | WIFIScanResult_t * | p_results, |
| uint32_t | maxNetworks | ||
| ) |
Get the information about local Wifi Access Points.
| [out] | p_results | Pointer to a structure array holding scanned Access Points. |
| [in] | maxNetworks | Size of the structure array for holding APs. |
| FSP_SUCCESS | Function completed successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| FSP_ERR_OUT_OF_MEMORY | There is no more heap memory available. |
| FSP_ERR_WIFI_SCAN_COMPLETE | Wifi scan has completed. |
| fsp_err_t rm_wifi_scan_extended | ( | WIFIScanResult_t * | p_results, |
| uint32_t | maxNetworks, | ||
| WIFIScanExtendedConfig_t * | pxScanConfigExtended | ||
| ) |
Get the information about local Wifi Access Points.
| [out] | p_results | Pointer to a structure array holding scanned Access Points. |
| [in] | maxNetworks | Size of the structure array for holding APs. |
| [in] | pxScanConfigExtended | Wi-Fi scan extended configuration |
| FSP_SUCCESS | Function completed successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| FSP_ERR_OUT_OF_MEMORY | There is no more heap memory available. |
| FSP_ERR_WIFI_SCAN_COMPLETE | Wifi scan has completed. |
| fsp_err_t rm_wifi_start_ap | ( | ) |
Start SoftAP mode.
| FSP_SUCCESS | Start SoftAP mode successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_stop_ap | ( | ) |
Stop SoftAP mode.
| FSP_SUCCESS | Start SoftAP mode successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_configure_ap | ( | WIFINetworkParamsExt_t * | pxNetworkParamsExt | ) |
Configure SoftAP.
param[in] pxNetworkParams Network parameters.
| FSP_SUCCESS | Configure SoftAP successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_is_connected | ( | const WIFINetworkParams_t * | pxNetworkParams | ) |
Check if the Wi-Fi is connected and the AP configuration matches the query.
param[in] pxNetworkParams - Network parameters to query, if NULL then just check the Wi-Fi link status.
| FSP_SUCCESS | Wi-Fi is connected and the AP configuration matches the query. |
| FSP_ERR_OUT_OF_MEMORY | There is no more heap memory available. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| FSP_ERR_WIFI_AP_NOT_CONNECTED | No connection to access point has happened. |
| fsp_err_t rm_wifi_get_connection_info_ext | ( | WIFIConnectionInfoExt_t * | pxConnectionInfoExt, |
| int | iface_num | ||
| ) |
Get extended Wi-Fi info of the interfaces.
| FSP_SUCCESS | Get info successfully. |
| FSP_ERR_OUT_OF_MEMORY | There is no more heap memory available. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_get_connection_info | ( | WIFIConnectionInfo_t * | pxConnectionInfo, |
| int | iface_num | ||
| ) |
Get Wi-Fi info of the interfaces.
| FSP_SUCCESS | Get info successfully. |
| FSP_ERR_OUT_OF_MEMORY | There is no more heap memory available. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_get_rssi | ( | int8_t * | pcRSSI | ) |
Return the RSSI of the connected AP.
| [out] | pcRSSI | RSSI of the connected AP. |
| FSP_SUCCESS | Function completed successfully. |
| FSP_ERR_WIFI_AP_NOT_CONNECTED | No connection to access point has happened. |
| fsp_err_t rm_wifi_start_disconnect_station | ( | uint8_t * | pucMac | ) |
AP mode disconnecting a station.
| [in] | pucMac | Station MAC address do be disconnected. |
| FSP_SUCCESS | Disconnection was started successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred. |
| fsp_err_t rm_wifi_mac_addr_set | ( | uint8_t * | pucMac | ) |
Set Wi-Fi MAC addresses.
| [in] | pucMac | Station MAC address. |
| FSP_SUCCESS | Function completed successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_set_country_code | ( | const char * | pcCountryCode | ) |
Set country code.
| [in] | pcCountryCode | Country code (null-terminated string, e.g. "US", "CN". See ISO-3166). |
| FSP_SUCCESS | Function completed successfully. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| fsp_err_t rm_wifi_get_country_code | ( | char * | pcCountryCode | ) |
Return the country code.
| [out] | pcCountryCode | Null-terminated string to hold the country code (ISO-3166). Must be at least 4 bytes. |
| FSP_SUCCESS | Function completed successfully. |
| FSP_ERR_WIFI_AP_NOT_CONNECTED | No connection to access point has happened. |
| struct netif* rm_wifi_get_netif | ( | int | iface_index | ) |
Wrapper function to retrieve network interface.
| [in] | iface_index | Index of the desired interface. |
| The | output pointer. |
| WIFIReturnCode_t WIFI_ConfigureAPExt | ( | WIFINetworkParamsExt_t * | pxNetworkParamsExt | ) |
Configure SoftAP.
| [in] | pxNetworkParamsExt | - Network parameters to configure AP. |
Example
| fsp_err_t rm_wifi_get_station_list | ( | WIFIStationInfo_t * | pxStationList, |
| uint8_t * | pcStationListSize | ||
| ) |
Get connected station list in softAP mode.
| FSP_SUCCESS | Get connected station list successfully. |
| FSP_ERR_OUT_OF_MEMORY | There is no more heap memory available. |
| FSP_ERR_WIFI_FAILED | Error occurred with command to Wifi module. |
| WIFIReturnCode_t WIFI_RegisterEventExt | ( | WIFIEventExtType_t | xEventType, |
| WIFIEventExtHandler_t | xHandler | ||
| ) |
Register a Wi-Fi Extended event Handler.
| [in] | xEventType | - Wi-Fi Extended event type. |
| [in] | xHandler | - Wi-Fi Extended event handler. |