How to code a logical collection with both input and output items?

未关闭
#23 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
25/100
Issue 类型
文档
描述清晰度
需要澄清
活跃度
停滞
技术栈
csharp
领域
tooling

调研方向

从 issue 中包含的 Waratah 描述符语法和 Braille 行示例开始。由于没有指定文件或测试,首先定位与逻辑集合和输入/输出项处理相关的部分,然后验证文档所述的方法会生成一个同时包含两种项类型的集合。

由索引模型根据 Issue 内容生成。

描述

I am rewriting the descriptor for a Braille display with Waratah. As part of my pre-existing descriptor, I have the following:
0x05, 0x41, // Usage Page (Braille Display Page)
0x09, 0x02, // Usage (Braille Row)
0xA1, 0x02, // Collection (Logical)
0x09, 0x05, // Usage (Number of Braille Cells)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x01, // Report Count (1)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x09, 0x03, // Usage (8 Dot Braille Cell)
0x15, 0x00, // Logical Minimum (0)
0x26, 0xFF, 0x00, // Logical Maximum (255)
0x75, 0x08, // Report Size (8)
0x95, 0x28, // Report Count (40)
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x09, 0xFA, // Usage (Router Set 1)
0xA1, 0x02, // Collection (Logical)
0x0A, 0x00, 0x01, // Usage (Router Button)
0x15, 0x00, // Logical Minimum (0)
0x25, 0x01, // Logical Maximum (1)
0x75, 0x01, // Report Size (1)
0x95, 0x28, // Report Count (40)
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0, // End Collection
In short, I have a logical collection (a Braille row) grouping output items (Braille cells) with input items (routing buttons).
The standard demands that I group the Braille cells and the routing buttons under the same Braille row logical collection.
How do I write this in Waratah?

主要语言
C#
星标
296
派生
39
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/hidtools 的其他 Issue

查看 microsoft/hidtools 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。