有没有办法存储和加载不同的配置文件?例如,如果我有两个隐藏在GATT配置文件(一个鼠标,另一个为GAMEPAD)有一种方法来存储在闪存,并选择它们在启动?
GT.>您可以使用BLE组件来支持HID鼠标和GAMEPAD报表映射和报告,但是选择性地使用CybLyGATSDSDababl属性和CyByLyGATEnEnable属性API来实现报表特性中的一个或两个。
这两个API函数接受一个属性句柄作为参数和禁用/启用所有属性指定属性处理基础。如果属性句柄参数是一个服务处理,然后完成服务启用/禁用,如果属性句柄参数特征处理,完整的特点是启用/禁用。
以上来自于百度翻译
以下为原文
Is there a way to store and load different profiles? For example if I had two HID over GATT profiles (one for mouse, another for gamepad) is there a way to store both in flash and select them on boot?
>> You can cofigure the BLE component to support both the HID Mouse and the Gamepad report maps and reports, but selectively enable either or both the report Characteristics using CyBle_GattsDisableAttribute and CyBle_GattsEnableAttribute APIs.
These two APIs accepts an attribute handle as the parameter and disables/enables all the attributes underlying the specified attribute handle. If the attribute handle parameter is a Service handle, then the complete service is enabled/disabled, if the attribute handle parameter is a Characteristic handle, the complete Characteristic is enabled/disabled.
有没有办法存储和加载不同的配置文件?例如,如果我有两个隐藏在GATT配置文件(一个鼠标,另一个为GAMEPAD)有一种方法来存储在闪存,并选择它们在启动?
GT.>您可以使用BLE组件来支持HID鼠标和GAMEPAD报表映射和报告,但是选择性地使用CybLyGATSDSDababl属性和CyByLyGATEnEnable属性API来实现报表特性中的一个或两个。
这两个API函数接受一个属性句柄作为参数和禁用/启用所有属性指定属性处理基础。如果属性句柄参数是一个服务处理,然后完成服务启用/禁用,如果属性句柄参数特征处理,完整的特点是启用/禁用。
以上来自于百度翻译
以下为原文
Is there a way to store and load different profiles? For example if I had two HID over GATT profiles (one for mouse, another for gamepad) is there a way to store both in flash and select them on boot?
>> You can cofigure the BLE component to support both the HID Mouse and the Gamepad report maps and reports, but selectively enable either or both the report Characteristics using CyBle_GattsDisableAttribute and CyBle_GattsEnableAttribute APIs.
These two APIs accepts an attribute handle as the parameter and disables/enables all the attributes underlying the specified attribute handle. If the attribute handle parameter is a Service handle, then the complete service is enabled/disabled, if the attribute handle parameter is a Characteristic handle, the complete Characteristic is enabled/disabled.
举报