Content originally posted in LPCWare by pra18 on Wed Aug 27 06:46:50 MST 2014
Hi,
Thanks for the reply
I went through the cdc_uart source but could not make out how it is done.
however I' ll try to explain the scenario on my side as below .
I am trying to migrate from UART to the USB on this lpc chip and thereby use UART style interfaces by making use of USB ROM APIs .
I see that there is a reduced flexibility to use one's own implementation since this USBD is ROM'ed in lpc43xx and only header files are exposed and when one tries to use the APIs provided by driver for e.g to read and write without little flexibility
in this case, for example to transmit / receive
Case 1 . a single a byte of data through the USB
Case 2 .a block of data through USB
what would be the correct approach. Can you give some examples?
how would one do it compared to the conventional UART on the lpc.
This becomes slightly complicated for someone who is trying to emulate this USB as a UART and
will try to use UART styed interface using the USB ROM API.
it is indeed good that USBD is located in ROM and reduces significant time in creating USB user apps.
Thansk in advance,