通常一个CDC类又由两个接口子类组成通信接口类(Communication Interface Class)和数据接口类(Data Interface Class)。笔者主要通过通信接口类对设备进行管理和控制,而通过数据接口类传送数据。
基于16个网页-相关网页
对于类库来讲,可能没有一个单一接口与之通信,但往往却有‘ public’ API(可能被用到)和‘ private’ package(文档中说明了其用途)。
They may not all have a single interface to communicate with, but often will have ' public' APIs (which should be used) and ' private' packages which have documented use cases.
任何时候,当你需要配置类之间通信的时候,当你渴望得到比接口具有更低耦合性的时候,委托都是正确的选择。
Any time you need to configure the communication between classes and you desire less coupling than you get from interfaces, a delegate is the right choice.
用户接口设备(HID)配置文件描述了如何使用蓝牙链接与HID类设备通信。
The human interface device (HID) profile describes how to communicate with a HID class device using a Bluetooth link.
应用推荐