出于对知识与高薪资的追求,努力学习蓝牙及其规范ing再阅读之前,你需要:1. nimble 协议栈官方源码2. RTT的 nimble 移植工程 打开RTT的nimble 移植MDK工程。 查看RTT的nimble 工程的头文件包含目录(主要查看RTT包含了nimble官方源码的哪些头文件)
对照nimble协议栈官方源码可以发现,RTT的nimble 协议栈移植工程包含了: 1.Packages\NimBLE-lates: 整个nimble协议栈目录 2.Packages\NimBLE-lates\nimble\include:该文件目录包含了如许下头文件,类比nimble_npl.h,难道是要我们实现其他 .h文件定义的接口?
3.Packages\NimBLE-lates\nimble\host\include:这是 nimble 主机协议栈的头文件,包含了主机侧协议与配置文件。
4.Packages\NimBLE-lates\nimble\host\src:该目录是nimblede主机协议栈的代码实现,以及私有功能头文件? 5.Packages\NimBLE-lates\nimble\host\services\ans\include:警报通知服务 Alert Notification Service Server(ans) 6.Packages\NimBLE-lates\nimble\host\services\bas\include:电池电量服务 Battery Service(bas) 7.Packages\NimBLE-lates\nimble\host\services\bleuart\include:BLE 串口服务 8.Packages\NimBLE-lates\nimble\host\services\dis\include:设备信息服务实现 Device Information Service Implementation.(dis) 9.Packages\NimBLE-lates\nimble\host\services\gap\include:GAP 服务实现 10.Packages\NimBLE-lates\nimble\host\services\gatt\include:GATT 服务实现 11.Packages\NimBLE-lates\nimble\host\services\ias\include:即时警报服务 Immediate Alert Service Implementation(ias) 12.Packages\NimBLE-lates\nimble\host\services\ipss\include:对 ipss 服务的实现 13.Packages\NimBLE-lates\nimble\host\services\lls\include:链路丢失服务实现 Link Loss Service Implementation.(lls) 14.Packages\NimBLE-lates\nimble\host\services\tps\include:发送功率服务适配规范 Tx Power Service adopted specification (tps) 15.Packages\NimBLE-lates\nimble\host\store\ram\include:已淘汰,仅支持ram存储的ble ? 16.Packages\NimBLE-lates\nimble\host\util\include:Nimble 主机协议栈的辅助程序
17Packages\NimBLE-lates\porting\nimble\include:Nimble 移植剩余部分 18.Packages\NimBLE-lates\porting\npl\rtthread\include:这是RTT对nimble移植的接口实现,也是选择移植平台及其对应实现 19.Packages\NimBLE-lates\ext\tinycrypt\include:外部加密库实现 20.Packages\NimBLE-lates\nimble\transport\ram\include:主机与控制器之间的HCI接口选择,选择ram 21.Packages\NimBLE-lates\nimble\controller\include :控制器的协议栈实现 22.Packages\NimBLE-lates\nimble\drivers\nrf52\include:Nimble 协议栈的射频硬件平台 nrf52 23.Packages\NimBLE-lates\apps\blehr\src :RTT 协议栈移植工程使用Nimble 实现一个心率应用程序(BLE peripheral heartrate sensor.)
以上就是RTT一直工程对nimble官方协议栈所包含的头文件了。 共同学习,一起进步
|