Reg:如何在android中访问USB库的api

发布于 2024-11-27 20:13:54 字数 299 浏览 3 评论 0原文

我使用的是安卓2.2版本。我想在 Android 应用程序中使用 USB 相关的 API。但在 android 2.2 版本中,应用程序框架层中没有 API。它在 3.1 及更高版本的 android 中可用。

但在android源代码中我看到了USB库(API的格式为.c和.h文件)。我是否能够访问android应用程序层中的api。我想使用 USB 设备,例如 Test CDC 类。

例如:如果我想初始化 USB,那么我可以调用 USB.c 中的 USB_init() 函数。这可能吗???任何人请帮助我......

问候 内存

I am using android 2.2 version. I want to use the USB related API's in android application. but in android 2.2 version is not having the API's in the applicaition framework layer.It is available in 3.1 and newer version of android.

but in android source code i have seen libraries for USB (API 's in the format of .c and .h file).whether i can able to access the api in the application layer of the android. I want to use the USB device for example, Test CDC class.

For example : if i want to initalize the USB then i can able to call the USB_init() function which is in the USB.c.. Is this possible???? any one please help me.......

Regards
Ram

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文