USB编程 [英] USB programming

查看:133
本文介绍了USB编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想对微控制器(AVR)进行编程,以通过USB控制某些LED.只是对如何构建和编程USB设备没有兴趣. 有些AVR微控制器支持USB协议,或者我可以自己在另一个微控制器中实现USB协议,但是我不知道该如何在计算机上编写自己的驱动程序.

I want to program a microcontroller (AVR) to control some leds through USB. It's just out of interest in how to build and program USB devices. There are some AVR microcontrollers that support the USB protocol or I could implement the USB protocol in an another microcontroller myself, but I wonder what to use to write your own drivers on the computer.

我在系统编程方面的水平:完全没有知识(因此提出问题)

My level in system programming: total noob (hence the question)

那么,人们会建议您参考哪些文献来获得有关USB技术的良好知识,以及如何编写自己的驱动程序及以后的驱动程序?

So what is the literature you people would advice to get good knowledge of the USB technology and how to write your own drivers and beyond?

P.S .:我知道:

P.S.: I know:

  • C(可能在这里需要它)

  • C (probably will need it here)

Java(这里可能不需要它)

Java (probably won't need it here)

Python(希望可以在此处使用它)

Python (hope can use it here)

汇编程序(希望这里在XD中不需要它).

assembler (hopefully won't need it here XD).

...

P.P.S:驱动程序开发因不同的操作系统而异.我使用Linux和Windows,因此欢迎使用与这两个系统中的一个或两个相关的任何材料.

P.P.S: driver development differs for different OS's. I use Linux and Windows, so any material related to one or both of these systems is welcome.

推荐答案

好的,尽管您可以开发和编写自己的USB驱动程序,但USB的优点在于您无需编写自己的驱动程序. USB实施者论坛为所有标准设备类别定义了类别规范.如果您可以使设备适合标准设备类,则已经为您编写了驱动程序!

Well, although you can develop and write your own USB driver, the beauty of USB is that you don't need to write your own driver. the USB Implementers Forum has defined class specifications for all the standard device classes. If you can make your device fit into a standard device class the driver has already been written for you!

如果您真的想熟悉USB开发,则应先阅读 USB批准的班级规范文件.

If you truly want to become familiar with USB development, you should start by reviewing the USB approved class specification documents.

这篇关于USB编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆