Morse Micro IoT SDK  2.9.7

Detailed Description

Functions

static enum mmagic_status mmagic_controller_get_wlan_country_code (struct mmagic_controller *controller, struct struct_country_code *var)
 Gets country_code setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_country_code (struct mmagic_controller *controller, struct struct_country_code *var)
 Sets country_code setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_ssid (struct mmagic_controller *controller, struct string32 *var)
 Gets ssid setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_ssid (struct mmagic_controller *controller, const char *var)
 Sets ssid setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_password (struct mmagic_controller *controller, struct string100 *var)
 Gets password setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_password (struct mmagic_controller *controller, const char *var)
 Sets password setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_security (struct mmagic_controller *controller, enum mmagic_security_type *var)
 Gets security setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_security (struct mmagic_controller *controller, enum mmagic_security_type var)
 Sets security setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_raw_priority (struct mmagic_controller *controller, int16_t *var)
 Gets raw_priority setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_raw_priority (struct mmagic_controller *controller, int16_t var)
 Sets raw_priority setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_bssid (struct mmagic_controller *controller, struct struct_mac_addr *var)
 Gets bssid setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_bssid (struct mmagic_controller *controller, struct struct_mac_addr *var)
 Sets bssid setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_pmf_mode (struct mmagic_controller *controller, enum mmagic_pmf_mode *var)
 Gets pmf_mode setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_pmf_mode (struct mmagic_controller *controller, enum mmagic_pmf_mode var)
 Sets pmf_mode setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_station_type (struct mmagic_controller *controller, enum mmagic_station_type *var)
 Gets station_type setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_station_type (struct mmagic_controller *controller, enum mmagic_station_type var)
 Sets station_type setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_rts_threshold (struct mmagic_controller *controller, uint32_t *var)
 Gets rts_threshold setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_rts_threshold (struct mmagic_controller *controller, uint32_t var)
 Sets rts_threshold setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_sgi_enabled (struct mmagic_controller *controller, bool *var)
 Gets sgi_enabled setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_sgi_enabled (struct mmagic_controller *controller, bool var)
 Sets sgi_enabled setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_subbands_enabled (struct mmagic_controller *controller, bool *var)
 Gets subbands_enabled setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_subbands_enabled (struct mmagic_controller *controller, bool var)
 Sets subbands_enabled setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_ampdu_enabled (struct mmagic_controller *controller, bool *var)
 Gets ampdu_enabled setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_ampdu_enabled (struct mmagic_controller *controller, bool var)
 Sets ampdu_enabled setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_power_save_mode (struct mmagic_controller *controller, enum mmagic_power_save_mode *var)
 Gets power_save_mode setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_power_save_mode (struct mmagic_controller *controller, enum mmagic_power_save_mode var)
 Sets power_save_mode setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_fragment_threshold (struct mmagic_controller *controller, uint32_t *var)
 Gets fragment_threshold setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_fragment_threshold (struct mmagic_controller *controller, uint32_t var)
 Sets fragment_threshold setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_cac_enabled (struct mmagic_controller *controller, bool *var)
 Gets cac_enabled setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_cac_enabled (struct mmagic_controller *controller, bool var)
 Sets cac_enabled setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_offload_arp_response (struct mmagic_controller *controller, bool *var)
 Gets offload_arp_response setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_offload_arp_response (struct mmagic_controller *controller, bool var)
 Sets offload_arp_response setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_offload_arp_refresh_s (struct mmagic_controller *controller, uint32_t *var)
 Gets offload_arp_refresh_s setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_offload_arp_refresh_s (struct mmagic_controller *controller, uint32_t var)
 Sets offload_arp_refresh_s setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_min_health_check_intvl_ms (struct mmagic_controller *controller, uint32_t *var)
 Gets min_health_check_intvl_ms setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_min_health_check_intvl_ms (struct mmagic_controller *controller, uint32_t var)
 Sets min_health_check_intvl_ms setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_max_health_check_intvl_ms (struct mmagic_controller *controller, uint32_t *var)
 Gets max_health_check_intvl_ms setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_max_health_check_intvl_ms (struct mmagic_controller *controller, uint32_t var)
 Sets max_health_check_intvl_ms setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_ndp_probe_enabled (struct mmagic_controller *controller, bool *var)
 Gets ndp_probe_enabled setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_ndp_probe_enabled (struct mmagic_controller *controller, bool var)
 Sets ndp_probe_enabled setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_sta_scan_interval_base_s (struct mmagic_controller *controller, uint16_t *var)
 Gets sta_scan_interval_base_s setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_sta_scan_interval_base_s (struct mmagic_controller *controller, uint16_t var)
 Sets sta_scan_interval_base_s setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_sta_scan_interval_limit_s (struct mmagic_controller *controller, uint16_t *var)
 Gets sta_scan_interval_limit_s setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_sta_scan_interval_limit_s (struct mmagic_controller *controller, uint16_t var)
 Sets sta_scan_interval_limit_s setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_qos_0_params (struct mmagic_controller *controller, struct string32 *var)
 Gets qos_0_params setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_qos_0_params (struct mmagic_controller *controller, const char *var)
 Sets qos_0_params setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_qos_1_params (struct mmagic_controller *controller, struct string32 *var)
 Gets qos_1_params setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_qos_1_params (struct mmagic_controller *controller, const char *var)
 Sets qos_1_params setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_qos_2_params (struct mmagic_controller *controller, struct string32 *var)
 Gets qos_2_params setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_qos_2_params (struct mmagic_controller *controller, const char *var)
 Sets qos_2_params setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_qos_3_params (struct mmagic_controller *controller, struct string32 *var)
 Gets qos_3_params setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_qos_3_params (struct mmagic_controller *controller, const char *var)
 Sets qos_3_params setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_mcs10_mode (struct mmagic_controller *controller, enum mmagic_mcs10_mode *var)
 Gets mcs10_mode setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_mcs10_mode (struct mmagic_controller *controller, enum mmagic_mcs10_mode var)
 Sets mcs10_mode setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_sta_evt_en (struct mmagic_controller *controller, bool *var)
 Gets sta_evt_en setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_sta_evt_en (struct mmagic_controller *controller, bool var)
 Sets sta_evt_en setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_get_wlan_duty_cycle_mode (struct mmagic_controller *controller, enum mmagic_duty_cycle_mode *var)
 Gets duty_cycle_mode setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_set_wlan_duty_cycle_mode (struct mmagic_controller *controller, enum mmagic_duty_cycle_mode var)
 Sets duty_cycle_mode setting for module wlan. More...
 
static enum mmagic_status mmagic_controller_wlan_commit_all (struct mmagic_controller *controller)
 Saves all settings from persistent store. More...
 

Function Documentation

◆ mmagic_controller_get_wlan_ampdu_enabled()

static enum mmagic_status mmagic_controller_get_wlan_ampdu_enabled ( struct mmagic_controller *  controller,
bool *  var 
)
inlinestatic

Gets ampdu_enabled setting for module wlan.

Boolean value indicating whether AMPDU support should be enabled.

Parameters
controllerReference to the controller handle.
varReference to the bool to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1668 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_bssid()

static enum mmagic_status mmagic_controller_get_wlan_bssid ( struct mmagic_controller *  controller,
struct struct_mac_addr var 
)
inlinestatic

Gets bssid setting for module wlan.

BSSID of the ap to associate to, all 0x00 for any.

Parameters
controllerReference to the controller handle.
varReference to the struct_mac_addr to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1356 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_cac_enabled()

static enum mmagic_status mmagic_controller_get_wlan_cac_enabled ( struct mmagic_controller *  controller,
bool *  var 
)
inlinestatic

Gets cac_enabled setting for module wlan.

Whether Centralized Authentication Controlled is enabled on the STA.

Parameters
controllerReference to the controller handle.
varReference to the bool to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1826 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_country_code()

static enum mmagic_status mmagic_controller_get_wlan_country_code ( struct mmagic_controller *  controller,
struct struct_country_code var 
)
inlinestatic

Gets country_code setting for module wlan.

Two character country code used to identify the regulatory domain.

Parameters
controllerReference to the controller handle.
varReference to the struct_country_code to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1080 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_duty_cycle_mode()

static enum mmagic_status mmagic_controller_get_wlan_duty_cycle_mode ( struct mmagic_controller *  controller,
enum mmagic_duty_cycle_mode var 
)
inlinestatic

Gets duty_cycle_mode setting for module wlan.

The duty cycle air time distribution mode. The duty cycle mode can be set to spread, where the air time is spread evenly across the window; or burst, where air time is available to be consumed immediately.

Parameters
controllerReference to the controller handle.
varReference to the enum_duty_cycle_mode to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2666 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_fragment_threshold()

static enum mmagic_status mmagic_controller_get_wlan_fragment_threshold ( struct mmagic_controller *  controller,
uint32_t *  var 
)
inlinestatic

Gets fragment_threshold setting for module wlan.

Sets the 802.11 fragmentation threshold. The fragmentation threshold (in octets) to set, or 0 to disable.

Parameters
controllerReference to the controller handle.
varReference to the uint32_t to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1773 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_max_health_check_intvl_ms()

static enum mmagic_status mmagic_controller_get_wlan_max_health_check_intvl_ms ( struct mmagic_controller *  controller,
uint32_t *  var 
)
inlinestatic

Gets max_health_check_intvl_ms setting for module wlan.

The maximum interval to wait after the last health check before triggering another. If this parameter is 0 then periodic health checks will be disabled. min_interval_ms must always be less than or equal to max_interval_ms. Set this to UINT32_MAX to have the maximum unbounded. If only max_health_check_intvl_ms is specified, then min_health_check_intvl_ms is assumed to be 0.

Parameters
controllerReference to the controller handle.
varReference to the uint32_t to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2052 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_mcs10_mode()

static enum mmagic_status mmagic_controller_get_wlan_mcs10_mode ( struct mmagic_controller *  controller,
enum mmagic_mcs10_mode var 
)
inlinestatic

Gets mcs10_mode setting for module wlan.

The currently configured MCS10 behavior. This only takes effect after calling the WLAN connect command. This is an enum with 3 modes: disabled, which will never use MCS10, forced, which will always use MCS10 instead of MCS0 if the bandwidth is 1 MHz, and auto, which will use MCS10 on retries instead of MCS0 when the bandwidth is 1 MHz.

Parameters
controllerReference to the controller handle.
varReference to the enum_mcs10_mode to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2555 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_min_health_check_intvl_ms()

static enum mmagic_status mmagic_controller_get_wlan_min_health_check_intvl_ms ( struct mmagic_controller *  controller,
uint32_t *  var 
)
inlinestatic

Gets min_health_check_intvl_ms setting for module wlan.

The minimum interval to wait after the last health check before triggering another. If this parameter is 0 then health checks will always happen at the max_interval_ms value. min_interval_ms must always be less than or equal to max_interval_ms. If only min_health_check_intvl_ms is specified, then max_health_check_intvl_ms is assumed to be unbounded.

Parameters
controllerReference to the controller handle.
varReference to the uint32_t to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1992 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_ndp_probe_enabled()

static enum mmagic_status mmagic_controller_get_wlan_ndp_probe_enabled ( struct mmagic_controller *  controller,
bool *  var 
)
inlinestatic

Gets ndp_probe_enabled setting for module wlan.

Boolean value indicating whether NDP probe support should be enabled. Will only take effect after a connect or scan command is sent.

Parameters
controllerReference to the controller handle.
varReference to the bool to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2109 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_offload_arp_refresh_s()

static enum mmagic_status mmagic_controller_get_wlan_offload_arp_refresh_s ( struct mmagic_controller *  controller,
uint32_t *  var 
)
inlinestatic

Gets offload_arp_refresh_s setting for module wlan.

If non zero, enables ARP refresh offload with the specified interval in seconds. Note: ARP response offload needs to be enabled for this feature to work.

Parameters
controllerReference to the controller handle.
varReference to the uint32_t to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1934 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_offload_arp_response()

static enum mmagic_status mmagic_controller_get_wlan_offload_arp_response ( struct mmagic_controller *  controller,
bool *  var 
)
inlinestatic

Gets offload_arp_response setting for module wlan.

If true, enables ARP response offload which allows the Morse chip to directly respond to ARP requests without waking up the host processor.

Parameters
controllerReference to the controller handle.
varReference to the bool to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1879 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_password()

static enum mmagic_status mmagic_controller_get_wlan_password ( struct mmagic_controller *  controller,
struct string100 var 
)
inlinestatic

Gets password setting for module wlan.

Password used when associating, 1-100 characters long.

Parameters
controllerReference to the controller handle.
varReference to the string100 to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1192 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_pmf_mode()

static enum mmagic_status mmagic_controller_get_wlan_pmf_mode ( struct mmagic_controller *  controller,
enum mmagic_pmf_mode var 
)
inlinestatic

Gets pmf_mode setting for module wlan.

Protected Management Frame mode to use (802.11w).

Parameters
controllerReference to the controller handle.
varReference to the enum_pmf_mode to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1408 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_power_save_mode()

static enum mmagic_status mmagic_controller_get_wlan_power_save_mode ( struct mmagic_controller *  controller,
enum mmagic_power_save_mode var 
)
inlinestatic

Gets power_save_mode setting for module wlan.

Sets the 802.11 power save mode.

Parameters
controllerReference to the controller handle.
varReference to the enum_power_save_mode to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1720 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_qos_0_params()

static enum mmagic_status mmagic_controller_get_wlan_qos_0_params ( struct mmagic_controller *  controller,
struct string32 var 
)
inlinestatic

Gets qos_0_params setting for module wlan.

The default QoS queue configuration for Access Category 0 (AC_BE) that is active while the station is connecting to an Access Point. This is a string containing the following comma separated integer values (in order): aifs,cw_min,cw_max,txop_max_us. For example: 3,15,1023,15008. More information about the individual parameters can be found in the API documentation for mmwlan_qos_queue_params.

Parameters
controllerReference to the controller handle.
varReference to the string32 to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2280 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_qos_1_params()

static enum mmagic_status mmagic_controller_get_wlan_qos_1_params ( struct mmagic_controller *  controller,
struct string32 var 
)
inlinestatic

Gets qos_1_params setting for module wlan.

The default QoS queue configuration for Access Category 1 (AC_BK) that is active while the station is connecting to an Access Point. This is a string containing the following comma separated integer values (in order): aifs,cw_min,cw_max,txop_max_us. For example: 7,15,1023,15008. More information about the individual parameters can be found in the API documentation for mmwlan_qos_queue_params.

Parameters
controllerReference to the controller handle.
varReference to the string32 to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2349 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_qos_2_params()

static enum mmagic_status mmagic_controller_get_wlan_qos_2_params ( struct mmagic_controller *  controller,
struct string32 var 
)
inlinestatic

Gets qos_2_params setting for module wlan.

The default QoS queue configuration for Access Category 2 (AC_VI) that is active while the station is connecting to an Access Point. This is a string containing the following comma separated integer values (in order): aifs,cw_min,cw_max,txop_max_us. For example: 2,7,15,15008. More information about the individual parameters can be found in the API documentation for mmwlan_qos_queue_params.

Parameters
controllerReference to the controller handle.
varReference to the string32 to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2418 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_qos_3_params()

static enum mmagic_status mmagic_controller_get_wlan_qos_3_params ( struct mmagic_controller *  controller,
struct string32 var 
)
inlinestatic

Gets qos_3_params setting for module wlan.

The default QoS queue configuration for Access Category 3 (AC_VO) that is active while the station is connecting to an Access Point. This is a string containing the following comma separated integer values (in order): aifs,cw_min,cw_max,txop_max_us. For example: 2,3,7,15008. More information about the individual parameters can be found in the API documentation for mmwlan_qos_queue_params.

Parameters
controllerReference to the controller handle.
varReference to the string32 to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2487 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_raw_priority()

static enum mmagic_status mmagic_controller_get_wlan_raw_priority ( struct mmagic_controller *  controller,
int16_t *  var 
)
inlinestatic

Gets raw_priority setting for module wlan.

Priority to request if raw is supported by the AP. Valid priorities are 0-7. -1 disables RAW.

Parameters
controllerReference to the controller handle.
varReference to the int16_t to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1304 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_rts_threshold()

static enum mmagic_status mmagic_controller_get_wlan_rts_threshold ( struct mmagic_controller *  controller,
uint32_t *  var 
)
inlinestatic

Gets rts_threshold setting for module wlan.

The RTS threshold (in octets) to set, or 0 to disable.

Parameters
controllerReference to the controller handle.
varReference to the uint32_t to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1512 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_security()

static enum mmagic_status mmagic_controller_get_wlan_security ( struct mmagic_controller *  controller,
enum mmagic_security_type var 
)
inlinestatic

Gets security setting for module wlan.

Security type to used when associating.

Parameters
controllerReference to the controller handle.
varReference to the enum_security_type to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1252 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_sgi_enabled()

static enum mmagic_status mmagic_controller_get_wlan_sgi_enabled ( struct mmagic_controller *  controller,
bool *  var 
)
inlinestatic

Gets sgi_enabled setting for module wlan.

Boolean value indicating whether SGI support should be enabled.

Parameters
controllerReference to the controller handle.
varReference to the bool to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1564 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_ssid()

static enum mmagic_status mmagic_controller_get_wlan_ssid ( struct mmagic_controller *  controller,
struct string32 var 
)
inlinestatic

Gets ssid setting for module wlan.

SSID of the AP to connect to, can be 1-32 characters long.

Parameters
controllerReference to the controller handle.
varReference to the string32 to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1132 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_sta_evt_en()

static enum mmagic_status mmagic_controller_get_wlan_sta_evt_en ( struct mmagic_controller *  controller,
bool *  var 
)
inlinestatic

Gets sta_evt_en setting for module wlan.

When set to true, STA event notifications will be provided. Setting this to false will suppress these notifications. Defaults to false.

Parameters
controllerReference to the controller handle.
varReference to the bool to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2611 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_sta_scan_interval_base_s()

static enum mmagic_status mmagic_controller_get_wlan_sta_scan_interval_base_s ( struct mmagic_controller *  controller,
uint16_t *  var 
)
inlinestatic

Gets sta_scan_interval_base_s setting for module wlan.

The base scan interval (in seconds) to use when (re)connecting. See documentation of mmwlan_sta_args.scan_interval_base_s for further details. Note that changes will only take effect on invocation of wlan-connect.

Parameters
controllerReference to the controller handle.
varReference to the uint16_t to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2164 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_sta_scan_interval_limit_s()

static enum mmagic_status mmagic_controller_get_wlan_sta_scan_interval_limit_s ( struct mmagic_controller *  controller,
uint16_t *  var 
)
inlinestatic

Gets sta_scan_interval_limit_s setting for module wlan.

The maximum interval between scan attempts when (re)connecting. See documentation of mmwlan_sta_args.scan_interval_limit_s for further details. Note that changes will only take effect on invocation of wlan-connect.

Parameters
controllerReference to the controller handle.
varReference to the uint16_t to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2221 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_station_type()

static enum mmagic_status mmagic_controller_get_wlan_station_type ( struct mmagic_controller *  controller,
enum mmagic_station_type var 
)
inlinestatic

Gets station_type setting for module wlan.

S1G non-AP STA type.

Parameters
controllerReference to the controller handle.
varReference to the enum_station_type to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1460 of file mmagic_controller.h.

◆ mmagic_controller_get_wlan_subbands_enabled()

static enum mmagic_status mmagic_controller_get_wlan_subbands_enabled ( struct mmagic_controller *  controller,
bool *  var 
)
inlinestatic

Gets subbands_enabled setting for module wlan.

Boolean value indicating whether sub-band support should be enabled.

Parameters
controllerReference to the controller handle.
varReference to the bool to place the received data in.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1616 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_ampdu_enabled()

static enum mmagic_status mmagic_controller_set_wlan_ampdu_enabled ( struct mmagic_controller *  controller,
bool  var 
)
inlinestatic

Sets ampdu_enabled setting for module wlan.

Boolean value indicating whether AMPDU support should be enabled.

Parameters
controllerReference to the controller handle.
varThe bool to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1694 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_bssid()

static enum mmagic_status mmagic_controller_set_wlan_bssid ( struct mmagic_controller *  controller,
struct struct_mac_addr var 
)
inlinestatic

Sets bssid setting for module wlan.

BSSID of the ap to associate to, all 0x00 for any.

Parameters
controllerReference to the controller handle.
varReference to the struct_mac_addr to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1382 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_cac_enabled()

static enum mmagic_status mmagic_controller_set_wlan_cac_enabled ( struct mmagic_controller *  controller,
bool  var 
)
inlinestatic

Sets cac_enabled setting for module wlan.

Whether Centralized Authentication Controlled is enabled on the STA.

Parameters
controllerReference to the controller handle.
varThe bool to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1852 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_country_code()

static enum mmagic_status mmagic_controller_set_wlan_country_code ( struct mmagic_controller *  controller,
struct struct_country_code var 
)
inlinestatic

Sets country_code setting for module wlan.

Two character country code used to identify the regulatory domain.

Parameters
controllerReference to the controller handle.
varReference to the struct_country_code to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1106 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_duty_cycle_mode()

static enum mmagic_status mmagic_controller_set_wlan_duty_cycle_mode ( struct mmagic_controller *  controller,
enum mmagic_duty_cycle_mode  var 
)
inlinestatic

Sets duty_cycle_mode setting for module wlan.

The duty cycle air time distribution mode. The duty cycle mode can be set to spread, where the air time is spread evenly across the window; or burst, where air time is available to be consumed immediately.

Parameters
controllerReference to the controller handle.
varThe enum_duty_cycle_mode to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2694 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_fragment_threshold()

static enum mmagic_status mmagic_controller_set_wlan_fragment_threshold ( struct mmagic_controller *  controller,
uint32_t  var 
)
inlinestatic

Sets fragment_threshold setting for module wlan.

Sets the 802.11 fragmentation threshold. The fragmentation threshold (in octets) to set, or 0 to disable.

Parameters
controllerReference to the controller handle.
varThe uint32_t to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1800 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_max_health_check_intvl_ms()

static enum mmagic_status mmagic_controller_set_wlan_max_health_check_intvl_ms ( struct mmagic_controller *  controller,
uint32_t  var 
)
inlinestatic

Sets max_health_check_intvl_ms setting for module wlan.

The maximum interval to wait after the last health check before triggering another. If this parameter is 0 then periodic health checks will be disabled. min_interval_ms must always be less than or equal to max_interval_ms. Set this to UINT32_MAX to have the maximum unbounded. If only max_health_check_intvl_ms is specified, then min_health_check_intvl_ms is assumed to be 0.

Parameters
controllerReference to the controller handle.
varThe uint32_t to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2081 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_mcs10_mode()

static enum mmagic_status mmagic_controller_set_wlan_mcs10_mode ( struct mmagic_controller *  controller,
enum mmagic_mcs10_mode  var 
)
inlinestatic

Sets mcs10_mode setting for module wlan.

The currently configured MCS10 behavior. This only takes effect after calling the WLAN connect command. This is an enum with 3 modes: disabled, which will never use MCS10, forced, which will always use MCS10 instead of MCS0 if the bandwidth is 1 MHz, and auto, which will use MCS10 on retries instead of MCS0 when the bandwidth is 1 MHz.

Parameters
controllerReference to the controller handle.
varThe enum_mcs10_mode to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2584 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_min_health_check_intvl_ms()

static enum mmagic_status mmagic_controller_set_wlan_min_health_check_intvl_ms ( struct mmagic_controller *  controller,
uint32_t  var 
)
inlinestatic

Sets min_health_check_intvl_ms setting for module wlan.

The minimum interval to wait after the last health check before triggering another. If this parameter is 0 then health checks will always happen at the max_interval_ms value. min_interval_ms must always be less than or equal to max_interval_ms. If only min_health_check_intvl_ms is specified, then max_health_check_intvl_ms is assumed to be unbounded.

Parameters
controllerReference to the controller handle.
varThe uint32_t to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2022 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_ndp_probe_enabled()

static enum mmagic_status mmagic_controller_set_wlan_ndp_probe_enabled ( struct mmagic_controller *  controller,
bool  var 
)
inlinestatic

Sets ndp_probe_enabled setting for module wlan.

Boolean value indicating whether NDP probe support should be enabled. Will only take effect after a connect or scan command is sent.

Parameters
controllerReference to the controller handle.
varThe bool to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2136 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_offload_arp_refresh_s()

static enum mmagic_status mmagic_controller_set_wlan_offload_arp_refresh_s ( struct mmagic_controller *  controller,
uint32_t  var 
)
inlinestatic

Sets offload_arp_refresh_s setting for module wlan.

If non zero, enables ARP refresh offload with the specified interval in seconds. Note: ARP response offload needs to be enabled for this feature to work.

Parameters
controllerReference to the controller handle.
varThe uint32_t to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1961 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_offload_arp_response()

static enum mmagic_status mmagic_controller_set_wlan_offload_arp_response ( struct mmagic_controller *  controller,
bool  var 
)
inlinestatic

Sets offload_arp_response setting for module wlan.

If true, enables ARP response offload which allows the Morse chip to directly respond to ARP requests without waking up the host processor.

Parameters
controllerReference to the controller handle.
varThe bool to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1906 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_password()

static enum mmagic_status mmagic_controller_set_wlan_password ( struct mmagic_controller *  controller,
const char *  var 
)
inlinestatic

Sets password setting for module wlan.

Password used when associating, 1-100 characters long.

Parameters
controllerReference to the controller handle.
varThe string100 to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1218 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_pmf_mode()

static enum mmagic_status mmagic_controller_set_wlan_pmf_mode ( struct mmagic_controller *  controller,
enum mmagic_pmf_mode  var 
)
inlinestatic

Sets pmf_mode setting for module wlan.

Protected Management Frame mode to use (802.11w).

Parameters
controllerReference to the controller handle.
varThe enum_pmf_mode to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1434 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_power_save_mode()

static enum mmagic_status mmagic_controller_set_wlan_power_save_mode ( struct mmagic_controller *  controller,
enum mmagic_power_save_mode  var 
)
inlinestatic

Sets power_save_mode setting for module wlan.

Sets the 802.11 power save mode.

Parameters
controllerReference to the controller handle.
varThe enum_power_save_mode to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1746 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_qos_0_params()

static enum mmagic_status mmagic_controller_set_wlan_qos_0_params ( struct mmagic_controller *  controller,
const char *  var 
)
inlinestatic

Sets qos_0_params setting for module wlan.

The default QoS queue configuration for Access Category 0 (AC_BE) that is active while the station is connecting to an Access Point. This is a string containing the following comma separated integer values (in order): aifs,cw_min,cw_max,txop_max_us. For example: 3,15,1023,15008. More information about the individual parameters can be found in the API documentation for mmwlan_qos_queue_params.

Parameters
controllerReference to the controller handle.
varThe string32 to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2310 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_qos_1_params()

static enum mmagic_status mmagic_controller_set_wlan_qos_1_params ( struct mmagic_controller *  controller,
const char *  var 
)
inlinestatic

Sets qos_1_params setting for module wlan.

The default QoS queue configuration for Access Category 1 (AC_BK) that is active while the station is connecting to an Access Point. This is a string containing the following comma separated integer values (in order): aifs,cw_min,cw_max,txop_max_us. For example: 7,15,1023,15008. More information about the individual parameters can be found in the API documentation for mmwlan_qos_queue_params.

Parameters
controllerReference to the controller handle.
varThe string32 to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2379 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_qos_2_params()

static enum mmagic_status mmagic_controller_set_wlan_qos_2_params ( struct mmagic_controller *  controller,
const char *  var 
)
inlinestatic

Sets qos_2_params setting for module wlan.

The default QoS queue configuration for Access Category 2 (AC_VI) that is active while the station is connecting to an Access Point. This is a string containing the following comma separated integer values (in order): aifs,cw_min,cw_max,txop_max_us. For example: 2,7,15,15008. More information about the individual parameters can be found in the API documentation for mmwlan_qos_queue_params.

Parameters
controllerReference to the controller handle.
varThe string32 to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2448 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_qos_3_params()

static enum mmagic_status mmagic_controller_set_wlan_qos_3_params ( struct mmagic_controller *  controller,
const char *  var 
)
inlinestatic

Sets qos_3_params setting for module wlan.

The default QoS queue configuration for Access Category 3 (AC_VO) that is active while the station is connecting to an Access Point. This is a string containing the following comma separated integer values (in order): aifs,cw_min,cw_max,txop_max_us. For example: 2,3,7,15008. More information about the individual parameters can be found in the API documentation for mmwlan_qos_queue_params.

Parameters
controllerReference to the controller handle.
varThe string32 to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2517 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_raw_priority()

static enum mmagic_status mmagic_controller_set_wlan_raw_priority ( struct mmagic_controller *  controller,
int16_t  var 
)
inlinestatic

Sets raw_priority setting for module wlan.

Priority to request if raw is supported by the AP. Valid priorities are 0-7. -1 disables RAW.

Parameters
controllerReference to the controller handle.
varThe int16_t to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1330 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_rts_threshold()

static enum mmagic_status mmagic_controller_set_wlan_rts_threshold ( struct mmagic_controller *  controller,
uint32_t  var 
)
inlinestatic

Sets rts_threshold setting for module wlan.

The RTS threshold (in octets) to set, or 0 to disable.

Parameters
controllerReference to the controller handle.
varThe uint32_t to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1538 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_security()

static enum mmagic_status mmagic_controller_set_wlan_security ( struct mmagic_controller *  controller,
enum mmagic_security_type  var 
)
inlinestatic

Sets security setting for module wlan.

Security type to used when associating.

Parameters
controllerReference to the controller handle.
varThe enum_security_type to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1278 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_sgi_enabled()

static enum mmagic_status mmagic_controller_set_wlan_sgi_enabled ( struct mmagic_controller *  controller,
bool  var 
)
inlinestatic

Sets sgi_enabled setting for module wlan.

Boolean value indicating whether SGI support should be enabled.

Parameters
controllerReference to the controller handle.
varThe bool to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1590 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_ssid()

static enum mmagic_status mmagic_controller_set_wlan_ssid ( struct mmagic_controller *  controller,
const char *  var 
)
inlinestatic

Sets ssid setting for module wlan.

SSID of the AP to connect to, can be 1-32 characters long.

Parameters
controllerReference to the controller handle.
varThe string32 to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1158 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_sta_evt_en()

static enum mmagic_status mmagic_controller_set_wlan_sta_evt_en ( struct mmagic_controller *  controller,
bool  var 
)
inlinestatic

Sets sta_evt_en setting for module wlan.

When set to true, STA event notifications will be provided. Setting this to false will suppress these notifications. Defaults to false.

Parameters
controllerReference to the controller handle.
varThe bool to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2638 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_sta_scan_interval_base_s()

static enum mmagic_status mmagic_controller_set_wlan_sta_scan_interval_base_s ( struct mmagic_controller *  controller,
uint16_t  var 
)
inlinestatic

Sets sta_scan_interval_base_s setting for module wlan.

The base scan interval (in seconds) to use when (re)connecting. See documentation of mmwlan_sta_args.scan_interval_base_s for further details. Note that changes will only take effect on invocation of wlan-connect.

Parameters
controllerReference to the controller handle.
varThe uint16_t to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2192 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_sta_scan_interval_limit_s()

static enum mmagic_status mmagic_controller_set_wlan_sta_scan_interval_limit_s ( struct mmagic_controller *  controller,
uint16_t  var 
)
inlinestatic

Sets sta_scan_interval_limit_s setting for module wlan.

The maximum interval between scan attempts when (re)connecting. See documentation of mmwlan_sta_args.scan_interval_limit_s for further details. Note that changes will only take effect on invocation of wlan-connect.

Parameters
controllerReference to the controller handle.
varThe uint16_t to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2249 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_station_type()

static enum mmagic_status mmagic_controller_set_wlan_station_type ( struct mmagic_controller *  controller,
enum mmagic_station_type  var 
)
inlinestatic

Sets station_type setting for module wlan.

S1G non-AP STA type.

Parameters
controllerReference to the controller handle.
varThe enum_station_type to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1486 of file mmagic_controller.h.

◆ mmagic_controller_set_wlan_subbands_enabled()

static enum mmagic_status mmagic_controller_set_wlan_subbands_enabled ( struct mmagic_controller *  controller,
bool  var 
)
inlinestatic

Sets subbands_enabled setting for module wlan.

Boolean value indicating whether sub-band support should be enabled.

Parameters
controllerReference to the controller handle.
varThe bool to write.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 1642 of file mmagic_controller.h.

◆ mmagic_controller_wlan_commit_all()

static enum mmagic_status mmagic_controller_wlan_commit_all ( struct mmagic_controller *  controller)
inlinestatic

Saves all settings from persistent store.

Parameters
controllerReference to the controller handle.
Returns
MMAGIC_STATUS_OK on success, else an error code.

Definition at line 2717 of file mmagic_controller.h.