Part Number: TM4C123GH6PM
We are developing a device Which consists of CAN and USB (device mode).USB is used to interface to PC. Via USB, CAN messages (baud rate can be up to 1Mbps and frequency can be up to 1 message/5milli second) and other data between PC and our H/W(Both directions).
Which is the better way for implementing USB driver (HID Device Class or Bulk Device Class or CDC Device Class or any other method) so that I can transmit all the messages to and from the PC as fast as possible.
We are also planning to develop a PC tool to display CAN messages and configure the H/W?
I am thinking about going to CDC Device Class? Because I think bulk transfer method is better than interrupt transfer method for my application and only Bulk Device Class and CDC Device Class are using it.
Compare to Bulk Device Class, CDC is a standard class and it does not need any driver and application development is also easy.
I used USB because 1) Avoid extra H/W between PC and our H/W (ex: USB to UART convertor),
2) Can transmit more data at a time than SPI and UART.
3) We are also planning for both device and Host support later.
Am I taking the correct decision? Please help me?