wlanMACFrame
Generate WLAN MAC frame (MPDU or A-MPDU)
生成 WLAN MAC 帧(MPDU 或 A-MPDU)
Syntax 语法
Description 描述
[
generates frame
,frameLength
] = wlanMACFrame(cfgMAC
)frame
, a WLAN medium access control (MAC) frame for the
specified MAC frame configuration object. The function generates a MAC protocol data unit
(MPDU) or an aggregate MPDU (A-MPDU), depending on the property values of the
cfgMAC
input. The function also returns
frameLength
, the total length of the generated MAC frame.
[
生成指定的 MAC 帧配置对象的 WLAN 介质访问控制(MAC)帧frame
,frameLength
] = wlanMACFrame(cfgMAC
)frame
。该函数根据cfgMAC
输入的属性值生成 MAC 协议数据单元(MPDU)或聚合 MPDU(A-MPDU)。该函数还返回生成的 MAC 帧的总长度frameLength
。
[
generates a WLAN MAC frame containing MAC service data units (MSDUs)
frame
,frameLength
] = wlanMACFrame(payload
,cfgMAC
)payload
. For the MAC frame to contain the MSDUs, you must set the
FrameType
property of the cfgMAC
input to
'Data'
or 'QoS Data'
. Otherwise, the function
ignores payload
.
[
生成包含 MAC 服务数据单元(MSDUs)的 WLAN MAC 帧 frame
,frameLength
] = wlanMACFrame(payload
,cfgMAC
)payload
。若要使 MAC 帧包含 MSDUs,您必须将 cfgMAC
输入的 FrameType
属性设置为 'Data'
或 'QoS Data'
。否则,该功能将会忽略 payload
。
[
generates a WLAN MAC frame for the physical layer (PHY) format and transmission parameters
specified in frame
,frameLength
] = wlanMACFrame(payload
,cfgMAC
,cfgPHY
)cfgPHY
. To generate A-MPDUs in high-efficiency (HE), very
high throughput (VHT) high-throughput (HT), or extremely high throughput single user (EHT
SU) frame formats, use this syntax.
[
生成符合 frame
,frameLength
] = wlanMACFrame(payload
,cfgMAC
,cfgPHY
)cfgPHY
中指定的物理层 (PHY) 格式和传输参数的 WLAN MAC 帧。要生成高效 (HE)、超高吞吐量 (VHT)、高吞吐量 (HT) 或极高吞吐量的单用户 (EHT SU) 帧格式的 A-MPDUs,请使用此语法。
[
generates a WLAN MAC trigger frame for the specified MAC and PHY configurations. To create a
MAC trigger frame, the frame
,frameLength
] = wlanMACFrame(cfgMAC
,cfgPHY
)cfgPHY
input must be a wlanNonHTConfig
object, and you must set the FrameType
property of the cfgMAC
input to 'Trigger'
.
[
为指定的 MAC 和 PHY 配置生成 WLAN MAC 触发帧。要创建 MAC 触发帧,frame
,frameLength
] = wlanMACFrame(cfgMAC
,cfgPHY
)cfgPHY
输入必须是一个 wlanNonHTConfig
对象,并且您必须将 cfgMAC
输入的 FrameType
属性设置为 'Trigger'
。
[
specifies the data format of the generated frame in addition to any input argument
combination from previous syntaxes.frame
,frameLength
] = wlanMACFrame(___,OutputFormat=format
)
[
指定了生成帧的数据格式,除了来自先前语法的任何输入参数组合。frame
,frameLength
] = wlanMACFrame(___,OutputFormat=format
)
Examples 例子
Input Arguments 输入参数
Output Arguments 输出参数
References 参考资料
[1] IEEE Std
802.11™-2020 (Revision of IEEE Std 802.11-2016). “Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer
(PHY) Specifications.” IEEE Standard for Information Technology —
Telecommunications and Information Exchange between Systems — Local and Metropolitan Area
Networks — Specific Requirements.
IEEE 标准 802.11™-2020(IEEE 标准 802.11-2016 修订版)。“第 11 部分:无线局域网介质访问控制(MAC)和物理层(PHY)规范。” 美国电气和电子工程师协会信息技术标准-系统之间电信和信息交换-局域和城域网络-具体要求。
[2]
IEEE® Std 802.11ax™-2021 (Amendment to IEEE Std 802.11-2020). “Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer
(PHY) Specifications. Amendment 1: Enhancements for High Efficiency WLAN.” IEEE Standard
for Information Technology — Telecommunications and Information Exchange between Systems.
Local and Metropolitan Area Networks — Specific Requirements.
[2] IEEE® Std 802.11ax™-2021(IEEE Std 802.11-2020 修正版)。"第 11 部分:无线局域网介质访问控制(MAC)和物理层(PHY)规范。修正版 1:高效率 WLAN 增强功能。"信息技术-系统间的电信和信息交换的 IEEE 标准。本地和城域网-特定要求。
Extended Capabilities 扩展功能
Version History 版本历史
Introduced in R2018b 在 R2018b 中引入
See Also 另请参阅
Objects 对象
wlanHTConfig
|wlanVHTConfig
|wlanHESUConfig
|wlanMACFrameConfig
|wlanMACManagementConfig
|wlanEHTMUConfig