![]() |
Morse Micro IoT SDK
2.10.4
|
API for general control and configuration that is not linked to a specific operational mode.
Data Structures | |
| struct | mmwlan_version |
| Structure for retrieving version information from the mmwlan subsystem. More... | |
| struct | mmwlan_bcf_metadata |
| Board configuration file (BCF) metadata. More... | |
| struct | mmwlan_qos_queue_params |
| Structure for storing QoS queue parameters More... | |
| struct | mmwlan_boot_args |
| Arguments data structure for mmwlan_boot(). More... | |
Macros | |
| #define | MMWLAN_MORSELIB_VERSION_MAXLEN (32) |
| Maximum length of the Morselib version string. More... | |
| #define | MMWLAN_FW_VERSION_MAXLEN (32) |
| Maximum length of the firmware version string. More... | |
| #define | MMWLAN_CHIP_ID_STRING_MAXLEN (32) |
| Maximum length of the chip id string. More... | |
| #define | MMWLAN_BCF_BOARD_DESC_MAXLEN (31) |
| Maximum length of a BCF board description string (excluding null terminator). More... | |
| #define | MMWLAN_BCF_BUILD_VERSION_MAXLEN (31) |
| Maximum length of a BCF build version string (excluding null terminator). More... | |
| #define | MMWLAN_MINIMUM_FRAGMENT_THRESHOLD (256) |
| Minimum value of fragmentation threshold that can be set with mmwlan_set_fragment_threshold(). More... | |
| #define | MMWLAN_QOS_QUEUE_NUM_ACIS 4 |
| The total number of mmwlan_qos_queue_params that exist. More... | |
| #define | MMWLAN_DEFAULT_MIN_HEALTH_CHECK_INTERVAL_MS 60000 |
| The default minimum interval to wait after the last health check before triggering another. More... | |
| #define | MMWLAN_DEFAULT_MAX_HEALTH_CHECK_INTERVAL_MS 120000 |
| The default maximum interval to wait after the last health check before triggering another. More... | |
| #define | MMWLAN_BOOT_ARGS_INIT { 0 } |
| Initializer for mmwlan_boot_args. More... | |
Enumerations | |
| enum | mmwlan_mcs10_mode { MMWLAN_MCS10_MODE_DISABLED = 0x00 , MMWLAN_MCS10_MODE_FORCED = 0x01 , MMWLAN_MCS10_MODE_AUTO = 0x02 } |
| Enumeration of configuration states for MCS10 behavior. More... | |
Functions | |
| enum mmwlan_status | mmwlan_get_version (struct mmwlan_version *version) |
| Retrieve version information from morselib and the connected Morse transceiver. More... | |
| enum mmwlan_status | mmwlan_get_bcf_metadata (struct mmwlan_bcf_metadata *metadata) |
| Read the metadata from the board configuration file (BCF). More... | |
| enum mmwlan_status | mmwlan_override_max_tx_power (uint16_t tx_power_dbm) |
| Override the maximum TX power. More... | |
| enum mmwlan_status | mmwlan_set_rts_threshold (unsigned rts_threshold) |
| Set the RTS threshold. More... | |
| enum mmwlan_status | mmwlan_set_sgi_enabled (bool sgi_enabled) |
| Sets whether or not Short Guard Interval (SGI) support is enabled. More... | |
| enum mmwlan_status | mmwlan_set_subbands_enabled (bool subbands_enabled) |
| Sets whether or not sub-band support is enabled for transmit. More... | |
| enum mmwlan_status | mmwlan_set_ampdu_enabled (bool ampdu_enabled) |
| Sets whether or not Aggregated MAC Protocol Data Unit (A-MPDU) support is enabled. More... | |
| enum mmwlan_status | mmwlan_set_fragment_threshold (unsigned fragment_threshold) |
| Set the Fragmentation threshold. More... | |
| enum mmwlan_status | mmwlan_set_default_qos_queue_params (const struct mmwlan_qos_queue_params *params, size_t count) |
| Updates the default QoS queue configuration to the given values. More... | |
| enum mmwlan_status | mmwlan_set_mcs10_mode (enum mmwlan_mcs10_mode mcs10_mode) |
| Configure the rate adaptation behavior around selecting MCS10. More... | |
| enum mmwlan_status | mmwlan_set_control_response_preamble_1mhz_out_en (bool enabled) |
| Enables the 1MHz control response override. More... | |
| enum mmwlan_status | mmwlan_set_health_check_interval (uint32_t min_interval_ms, uint32_t max_interval_ms) |
| Specify the upper and lower bound for the periodic health check interval. More... | |
| enum mmwlan_status | mmwlan_boot (const struct mmwlan_boot_args *args) |
| Boot the Morse Micro transceiver and leave it in an idle state. More... | |
| enum mmwlan_status | mmwlan_shutdown (void) |
| Perform a clean shutdown of the Morse Micro transceiver, including cleanly disconnecting from a connected AP, if necessary. More... | |
| enum mmwlan_status | mmwlan_get_vif_mac_addr (enum mmwlan_vif vif, uint8_t *mac_addr) |
| Gets the MAC address of the given interface. More... | |
| static enum mmwlan_status | mmwlan_get_mac_addr (uint8_t *mac_addr) |
| Gets the MAC address of the STA interface. More... | |
| #define MMWLAN_BCF_BOARD_DESC_MAXLEN (31) |
| #define MMWLAN_BCF_BUILD_VERSION_MAXLEN (31) |
| #define MMWLAN_BOOT_ARGS_INIT { 0 } |
| #define MMWLAN_CHIP_ID_STRING_MAXLEN (32) |
| #define MMWLAN_DEFAULT_MAX_HEALTH_CHECK_INTERVAL_MS 120000 |
| #define MMWLAN_DEFAULT_MIN_HEALTH_CHECK_INTERVAL_MS 60000 |
| #define MMWLAN_FW_VERSION_MAXLEN (32) |
| #define MMWLAN_MINIMUM_FRAGMENT_THRESHOLD (256) |
Minimum value of fragmentation threshold that can be set with mmwlan_set_fragment_threshold().
| #define MMWLAN_MORSELIB_VERSION_MAXLEN (32) |
| #define MMWLAN_QOS_QUEUE_NUM_ACIS 4 |
The total number of mmwlan_qos_queue_params that exist.
| enum mmwlan_mcs10_mode |
| enum mmwlan_status mmwlan_boot | ( | const struct mmwlan_boot_args * | args | ) |
Boot the Morse Micro transceiver and leave it in an idle state.
| args | Boot arguments. May be NULL, in which case default values will be used. |
| enum mmwlan_status mmwlan_get_bcf_metadata | ( | struct mmwlan_bcf_metadata * | metadata | ) |
Read the metadata from the board configuration file (BCF).
| metadata | Pointer to a metadata data structure to be filled out on success. |
MMWLAN_SUCCESS on success else an error code.
|
inlinestatic |
Gets the MAC address of the STA interface.
This function is equivalent to mmwlan_get_vif_mac_addr(MMWLAN_VIF_STA, mac_addr)
| mac_addr | Buffer to receive the MAC address. Length must be MMWLAN_MAC_ADDR_LEN. |
| enum mmwlan_status mmwlan_get_version | ( | struct mmwlan_version * | version | ) |
Retrieve version information from morselib and the connected Morse transceiver.
| version | The data structure to fill out with version information. |
fw_version field of version will be set to a zero length string.MMWLAN_SUCCESS on success else an error code. | enum mmwlan_status mmwlan_get_vif_mac_addr | ( | enum mmwlan_vif | vif, |
| uint8_t * | mac_addr | ||
| ) |
Gets the MAC address of the given interface.
The STA MAC address (vif = MMWLAN_VIF_STA) comes from one of the following sources, in descending priority order:
mmhal_read_mac_addr() 02:01:XX:XX:XX:XXmmhal_read_mac_addr()) then the transceiver must have been booted at least once before this function is invoked.The AP MAC address (vif = MMWLAN_VIF_AP) is equivalent to the BSSID.
| vif | The VIF to get the MAC address of. |
| mac_addr | Buffer to receive the MAC address. Length must be MMWLAN_MAC_ADDR_LEN. |
| enum mmwlan_status mmwlan_override_max_tx_power | ( | uint16_t | tx_power_dbm | ) |
Override the maximum TX power.
If no override is specified then the maximum TX power used will be the maximum TX power allowed for the channel in the current regulatory domain.
| tx_power_dbm | The maximum TX power override to set (in dBm). Set to zero to disable the override. |
| enum mmwlan_status mmwlan_set_ampdu_enabled | ( | bool | ampdu_enabled | ) |
Sets whether or not Aggregated MAC Protocol Data Unit (A-MPDU) support is enabled.
This defaults to enabled, if not set otherwise.
| ampdu_enabled | Boolean value indicating whether AMPDU support should be enabled. |
| enum mmwlan_status mmwlan_set_control_response_preamble_1mhz_out_en | ( | bool | enabled | ) |
Enables the 1MHz control response override.
This means that in response to directed packets, the control responses (e.g. an NDP ACK or Block ACK) will be sent at 1MHz.
| enabled | Whether to send control response preambles in 1MHz bandwidth. True to transmit in 1MHz. False to disable this override. |
| enum mmwlan_status mmwlan_set_default_qos_queue_params | ( | const struct mmwlan_qos_queue_params * | params, |
| size_t | count | ||
| ) |
Updates the default QoS queue configuration to the given values.
These values will be made active while the station is connecting to an Access Point.
| params | Array of QoS queue parameters. This array does not need to be sorted in Access Category Index (ACI) order, since the ACI is specified as part of the mmwlan_qos_queue_params structure. The same ACI must not be specified more than once in this array. If a parameter for a given ACI is not included in this list then its configuration will be left unchanged. |
| count | The number of elements in the params array. Must be at least 1 and no more than MMWLAN_QOS_QUEUE_NUM_ACIS. |
| enum mmwlan_status mmwlan_set_fragment_threshold | ( | unsigned | fragment_threshold | ) |
Set the Fragmentation threshold.
Maximum length of the frame, beyond which packets must be fragmented into two or more frames.
| fragment_threshold | The fragmentation threshold (in octets) to set, or zero to disable the fragmentation threshold. Minimum value (if not zero) is given by MMWLAN_MINIMUM_FRAGMENT_THRESHOLD. |
| enum mmwlan_status mmwlan_set_health_check_interval | ( | uint32_t | min_interval_ms, |
| uint32_t | max_interval_ms | ||
| ) |
Specify the upper and lower bound for the periodic health check interval.
To guarantee a specific interval set both min_interval_ms and max_interval_ms to the same value.
| min_interval_ms | Minimum value that the interval can be. |
| max_interval_ms | Maximum value that the interval can be. |
| enum mmwlan_status mmwlan_set_mcs10_mode | ( | enum mmwlan_mcs10_mode | mcs10_mode | ) |
Configure the rate adaptation behavior around selecting MCS10.
| mcs10_mode | Sets the MCS10 mode. See mmwlan_mcs10_mode for what each mode means. |
| enum mmwlan_status mmwlan_set_rts_threshold | ( | unsigned | rts_threshold | ) |
Set the RTS threshold.
When packets larger than the RTS threshold are transmitted they are protected by an RTS/CTS exchange.
| rts_threshold | The RTS threshold (in octets) to set, or 0 to disable. |
| enum mmwlan_status mmwlan_set_sgi_enabled | ( | bool | sgi_enabled | ) |
Sets whether or not Short Guard Interval (SGI) support is enabled.
Defaults to enabled if not set otherwise.
| sgi_enabled | Boolean value indicating whether SGI support should be enabled. |
| enum mmwlan_status mmwlan_set_subbands_enabled | ( | bool | subbands_enabled | ) |
Sets whether or not sub-band support is enabled for transmit.
Defaults to enabled if not set otherwise.
| subbands_enabled | Boolean value indicating whether sub-band support should be enabled. |
| enum mmwlan_status mmwlan_shutdown | ( | void | ) |
Perform a clean shutdown of the Morse Micro transceiver, including cleanly disconnecting from a connected AP, if necessary.
Has no effect if the transceiver is already shutdown.