Morse Micro IoT SDK  2.9.7
mm_app_loadconfig.h File Reference

Detailed Description

Helper functions for loading configuration

This API provides a set of helper functions for loading configuration from Morse Micro Persistent Configuration Store.

Definition in file mm_app_loadconfig.h.

#include "mmipal.h"
#include "mmwlan.h"
Include dependency graph for mm_app_loadconfig.h:

Go to the source code of this file.

Functions

const struct mmwlan_s1g_channel_listload_channel_list (void)
 Looks up country code and returns appropriate channel list. More...
 
void load_mmipal_init_args (struct mmipal_init_args *args)
 Loads the provided structure with initialization parameters read from config store. More...
 
void load_mmwlan_sta_args (struct mmwlan_sta_args *sta_config)
 Loads the provided structure with initialization parameters read from config store. More...
 
void load_mmwlan_settings (void)
 Loads various WLAN-specific settings from config store and applies them.
 
bool country_code_in_regulatory_domain (const char *code)
 Check whether the provided country code is within the current regulatory database. More...
 

Function Documentation

◆ country_code_in_regulatory_domain()

bool country_code_in_regulatory_domain ( const char *  code)

Check whether the provided country code is within the current regulatory database.

Parameters
codeCountry code to check
Returns
True if country code found in regulatory database

◆ load_channel_list()

const struct mmwlan_s1g_channel_list * load_channel_list ( void  )

Looks up country code and returns appropriate channel list.

Returns
A pointer to the channel list to load.

◆ load_mmipal_init_args()

void load_mmipal_init_args ( struct mmipal_init_args args)

Loads the provided structure with initialization parameters read from config store.

If a specific parameter is not found then default values are used. Use this function to load defaults before calling mmipal_init().

Parameters
argsA pointer to the mmipal_init_args to return the settings in.

◆ load_mmwlan_sta_args()

void load_mmwlan_sta_args ( struct mmwlan_sta_args sta_config)

Loads the provided structure with initialization parameters read from config store.

If a specific parameter is not found then default values are used. Use this function to load defaults before calling mmwlan_sta_enable().

Parameters
sta_configA pointer to the mmwlan_sta_args to return the settings in.