This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

packetFormat

Return WLAN packet format

Syntax

format = packetFormat(cfg)

Description

example

format = packetFormat(cfg) returns the WLAN packet format, based on the configuration of the object.

Examples

collapse all

Create an S1G configuration object with default settings for a single user and change the default property settings by using dot notation. Use the packetFormat object function to access the S1G packet format of the object.

Create an S1G configuration object with default settings. By default, the configuration object creates properties to model the short S1G packet format.

cfgS1G = wlanS1GConfig;
packetFormat(cfgS1G)
ans = 
'S1G-Short'

Modify the defaults by using the dot notation to specify a long preamble.

cfgS1G.Preamble = 'Long';
packetFormat(cfgS1G)
ans = 
'S1G-Long'

Input Arguments

collapse all

Configuration object, specified as a wlanS1GConfig, wlanHESUConfig, or wlanHEMUConfig object.

Output Arguments

collapse all

S1G packet format, specified as a character vector indicating the WLAN format of the configuration object.

  • For a wlanS1GConfig object the format is returned as 'S1G-1M', 'S1G-Short', or 'S1G-Long'.

  • For a wlanHESUConfig object the format is returned as 'HE-EXT-SU' or 'HE-SU'.

  • For a wlanHEMUConfig object the format is returned as 'HE-MU'.

Introduced in R2017b