USB programming in the embedded system to send some data for printing

I was tasked with writing a USB driver for our firmware to send raw data to Host. This will be used to send some logging data to the host. We use iMX31 litekit for development.

From the documents that I read on USB, I understand that the built-in device will only be in device mode. He will also only communicate with the host machine.

So can anyone visit me here? Any article, link or code is welcome.

+3
source share
1 answer

Some things to consider:

, , ?

, nofollow noreferrer → HID. , , , , .. , , , . , HID. , USB, HID-, .

- , , . , , Mass Storage , . , , , ( ) .

, USB-, HID Mass Storage.

, . libusb , . Windows USB-, , User Mode Driver Framework, libusb, Windows.

, , Cypress, DLL, . , - , .

" USB" , , USB .

+1

Source: https://habr.com/ru/post/1760062/


All Articles