51uwb.cn

 找回密码
 立即注册
查看: 3642|回复: 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

主题

941

帖子

3912

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3912
发表于 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
Image 4.png
帧过滤部分,你可以看下资料汇总“帧过滤”部分内容
Image 5.png
蓝点资料汇总.pdf (819.42 KB, 下载次数: 24)
回复

使用道具 举报

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

本版积分规则

bphero Inc.  

GMT+8, 2024-3-29 20:55 , Processed in 0.012240 second(s), 5 queries , File On.

Powered by Discuz! X3.3

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

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