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