NORDIC Thingy:52 蓝牙 BLE 服务 SoC 程序调用流程分析之三, User interface service

Nordic Thingy 52 BLE Services

* Thingy configuration service 

* Environment service 

* User interface service 

* Motion service 

* Sound service 

* Battery service 

* DFU service


* User interface service 

The UI module handles the onboard LEDs, buttons, and other potential UI components like a quadrature decoder, touchscreen etc. The UI module runs on top of the UI BLE Service (ble_uis), the LED and button drivers, and the UI flash storage with base UUID EF68xxxx-9B35-4933-9B10-52FFA9740042. This module enables RGB LED value setting and button event notifications via BLE. Button notification is enabled by writing 0x0001 to the CCCD of the button characteristic.

UI 模块处理板载的 LED、按键、 触摸屏操作等, UI 模块基于 UI BLE 服务 (ble_uis); LED 和按键的驱动,UI Flash 基于 UUID: EF68xxxx-9B35-4933-9B10-52FFA9740042 存储;UI 模块通过 BLE 使能 RGB LED 值设定和按键事件通知。按键通知使能是通过写入 0x0001 到按键特征的 CCCD。


服务 UUID 定义

文件: ble_uis.h

#define BLE_UIS_UUID_BASE        {{0x42, 0x00, 0x74, 0xA9, 0xFF, 0x52, 0x10, 0x9B, 0x33, 0x49, 0x35, 0x9B, 0x00, 0x00, 0x68, 0xEF}}

#define BLE_UIS_UUID_SERVICE     0x0300     /**< UUID for UI service */
#define BLE_UIS_UUID_LED_CHAR    0x0301     /**< UUID for LED characteristic. */
#define BLE_UIS_UUID_BUTTON_CHAR 0x0302     /**< UUID for button characteristic. */
#define BLE_UIS_UUID_PIN_CHAR    0x0303     /**< UUID for pin characteristic. */

程序功能调用流程

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值