Which one is better for general purpose USB host application? CDC or PHDC?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Which one is better for general purpose USB host application? CDC or PHDC?

Jump to solution
1,434 Views
kai_liu
Senior Contributor I

The USB host application I am working on is Android ADB, which has dedicated interface with BulkIN/BulkOUT EPs.

Following instructions from FSL user manual for USB stack, the enumeration process works well. However, the class APIs are quite different. I want to refers some other class implementation as my code base.

Either CDC/PHDC use BulkIN/BulkOUT as main communication EPs, but their implemenations and structures definitions are quite complex.

Since ADB only requires a pair of Bulk EPs to send/receive messages, which one is more closer to my application? CDC or PHDC?

Tags (1)
0 Kudos
Reply
1 Solution
1,237 Views
Paul_Tian
NXP Employee
NXP Employee

Hi, Liu Kai

Yes, you are right. PHDC application expects minimum 2 endpoints, and one is bulk In and the other is bulk out. For detail, you can reference USB stack 4.1.1. and file name is usb_host_phdc.c

Hope my reply can help you.

Best Regards

Paul

View solution in original post

0 Kudos
Reply
3 Replies
1,237 Views
kai_liu
Senior Contributor I

PHDC is a better reference than CDC.

0 Kudos
Reply
1,238 Views
Paul_Tian
NXP Employee
NXP Employee

Hi, Liu Kai

Yes, you are right. PHDC application expects minimum 2 endpoints, and one is bulk In and the other is bulk out. For detail, you can reference USB stack 4.1.1. and file name is usb_host_phdc.c

Hope my reply can help you.

Best Regards

Paul

0 Kudos
Reply
1,237 Views
kai_liu
Senior Contributor I

Hi, Paul (Zhe Tian),

Thanks for your reply. After reading specification for CDC/PHDC, I have started to migrate my project based upon PHDC implementation. It is painful since FSL structure is complex and takes longer time to read code than my expectation.

I doubted if anyone can add more stacks on basis of FSL USB host, for example, Bluetooth and WiFi    dongles.

Allan K Liu

0 Kudos
Reply