51uwb.cn

 找回密码
 立即注册
查看: 3812|回复: 1
打印 上一主题 下一主题

关于帧过滤功能的题问

[复制链接]

35

主题

76

帖子

197

积分

官方会员

Rank: 8Rank: 8

积分
197
跳转到指定楼层
楼主
发表于 2021-9-12 18:19:14 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
dwt_enableframefilter(DWT_FF_NOTYPE_EN);//关闭帧过滤功能

关于参数的定义如下
#define DWT_FF_NOTYPE_EN                        0x000                        // no frame types allowed (FF disabled)
#define DWT_FF_COORD_EN                                0x002                        // behave as coordinator (can receive frames with no dest address (PAN ID has to match))
#define DWT_FF_BEACON_EN                        0x004                        // beacon frames allowed
#define DWT_FF_DATA_EN                                0x008                        // data frames allowed
#define DWT_FF_ACK_EN                                0x010                        // ack frames allowed
#define DWT_FF_MAC_EN                                0x020                        // mac control frames allowed
#define DWT_FF_RSVD_EN                                0x040


可以简单解释一下帧过滤的功能和修改了参数的作用吗~
回复

使用道具 举报

35

主题

959

帖子

4036

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
4036
沙发
发表于 2021-9-12 19:24:50 | 只看该作者
  1. #define DWT_FF_NOTYPE_EN                        0x000                        // no frame types allowed (FF disabled)
  2. #define DWT_FF_COORD_EN                                0x002                        // behave as coordinator (can receive frames with no dest address (PAN ID has to match))
  3. #define DWT_FF_BEACON_EN                        0x004                        // beacon frames allowed
  4. #define DWT_FF_DATA_EN                                0x008                        // data frames allowed
  5. #define DWT_FF_ACK_EN                                0x010                        // ack frames allowed
  6. #define DWT_FF_MAC_EN                                0x020                        // mac control frames allowed
  7. #define DWT_FF_RSVD_EN                                0x040
复制代码
这些都是帧过滤Register 定义,可以看datasheet

帧过滤部分,你可以看下资料汇总“帧过滤”部分内容

蓝点资料汇总.pdf (819.42 KB, 下载次数: 25)

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

bphero Inc.  

GMT+8, 2024-4-24 23:01 , Processed in 0.013145 second(s), 5 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc. Template By 【未来科技】【 www.wekei.cn 】

快速回复 返回顶部 返回列表